Search found 139 matches

by kiwichick
30 minutes ago
Forum: Ask for Help (v2)
Topic: Problems using #Include
Replies: 6
Views: 83

Re: Problems using #Include

you better use " ini " file format to store Variable because it can be used outside AHK it is same as your include but it can't be used outside AHK so that's why you better pick ini. if you have to much data you better use good db like SQLite but in your case ini is good Thanks, I have used ini fil...
by kiwichick
31 minutes ago
Forum: Ask for Help (v2)
Topic: Problems using #Include
Replies: 6
Views: 83

Re: Problems using #Include

#Include works as if it's performing a copy and paste of the file's data directly where the #Include is, and is intended for use with other AHK scripts. One way you could assign all of those images to variables would be by performing a Loop Files ImageArray := [] Loop Files, A_ScriptDir "\images\ba...
by kiwichick
32 minutes ago
Forum: Ask for Help (v2)
Topic: Problems using #Include
Replies: 6
Views: 83

Re: Problems using #Include

#Include is for including the code lines from another file into this one. Nothing else. Yes, I do know that's what it's for. I just misunderstood how it actually works. SetFont does not set the background color. It is only for setting the characteristics of the font characters, including their colo...
by kiwichick
14 Apr 2024, 21:43
Forum: Ask for Help (v2)
Topic: Problems using #Include
Replies: 6
Views: 83

Problems using #Include

I know I'm probably misunderstanding how to use #Include so I'm hoping someone will help me. 1. I have a list of variables for files that are in the same folder. This is how I currently declare the variables: background_image1 := A_ScriptDir . "\images\backgrounds\blue.jpg" background_image2 := A_Sc...
by kiwichick
10 Apr 2024, 04:12
Forum: Ask for Help (v2)
Topic: Problem converting one part of script to v2
Replies: 8
Views: 137

Re: Problem converting one part of script to v2

boiler wrote:
10 Apr 2024, 04:10
The way to indicate a quantity of one or two digits with the braces approach is \d{1,2}.
Thank you :D
by kiwichick
10 Apr 2024, 02:27
Forum: Ask for Help (v2)
Topic: Problem converting one part of script to v2
Replies: 8
Views: 137

Re: Problem converting one part of script to v2

You can have it handle 1 or 2 digits by changing the regex needle: If !(dob_enter ~= "^(\d\d?\/\d\d?\/\d{4})$") Thank you, thank you, thank you!!!!! I tried using If !(dob_enter ~= "^(\d{1}|\d{2}\/\d{1}|\d{2}\d{4})$") but it didn't work. I'm not very good with regex and had forgotten about using ?
by kiwichick
10 Apr 2024, 01:03
Forum: Ask for Help (v2)
Topic: Problem converting one part of script to v2
Replies: 8
Views: 137

Re: Problem converting one part of script to v2

If !(dob_enter ~= "^(\d\d\/\d\d\/\d{4})$") { MsgBox("An invalid date of birth was entered. Please re-enter your date of birth.") Reload() } You can probably replace all the others checks with just this one. HTH Thanks again but, unfortunately, it will only work if the day or month contains two digi...
by kiwichick
08 Apr 2024, 18:55
Forum: Ask for Help (v2)
Topic: Problem converting one part of script to v2
Replies: 8
Views: 137

Re: Problem converting one part of script to v2

if (dob_enter := "") Is assigning the variable dob_enter to be blank. try: if (dob_enter = "") Same goes for the next 2 comparisons. HTH Thank you very much for that. I had tried that and it didn't work but something else that I've subsequently fixed must have had an effect on it. I now have the fi...
by kiwichick
07 Apr 2024, 23:10
Forum: Ask for Help (v2)
Topic: Problem converting one part of script to v2
Replies: 8
Views: 137

Problem converting one part of script to v2

I have a script that I'm trying to convert to v2. It takes a date of birth and returns the corresponding astrological sign. I'm having a problem with the section of code that performs error checks for the entered dob. If I exclude that section of code, the script works (as long as a legitimate dob i...
by kiwichick
16 Mar 2024, 21:34
Forum: Ask for Help (v2)
Topic: Get IP Address for specific adapter
Replies: 0
Views: 59

Get IP Address for specific adapter

Is it possible to get the IP Address for a specific adapter, using the adapter name, description, MAC Address, or any other means? I've tried the SysGetIPAddresses() function example in the Help file but it returns all IPv4 addresses (as it's supposed to do) but is there any way to refine which one ...
by kiwichick
26 Feb 2024, 02:36
Forum: Ask for Help (v2)
Topic: Error in converted script
Replies: 2
Views: 94

Re: Error in converted script

mikeyww wrote:
25 Feb 2024, 22:00
Solution: define your variable.
Thanks, much appreciated. I did that and the script now works :thumbup:
by kiwichick
25 Feb 2024, 20:44
Forum: Ask for Help (v2)
Topic: Error in converted script
Replies: 2
Views: 94

Error in converted script

I used the AHK-v2-script-converter on one of my scripts. The script checks an ini file to see if the port number entered there matches the one allocated by my VPN. There are three possible options from there: 1) If it's the same number, do nothing and exit the script. If it's not the same, check if ...
by kiwichick
07 Feb 2024, 03:36
Forum: Off-topic Discussion
Topic: Rosetta Code for v2
Replies: 5
Views: 662

Re: Rosetta Code for v2

That's unfortunate. v2 should not be listed there. Rosetta Code has pages for implementations , and pages for languages . All versions of AHK are part of the same language . Different versions should be noted as separate implementations . It certainly doesn't help if things aren't where they're mea...
by kiwichick
06 Feb 2024, 17:42
Forum: Off-topic Discussion
Topic: Rosetta Code for v2
Replies: 5
Views: 662

Re: Rosetta Code for v2

I have not seen any posts there for v2 yet. The AutoHotkey 1.1 page still says that it's the current version. It hasn't been updated. Posts should be using the Works with template to identify the version. For example, link . Unfortunately, this only happens the minority of the time. Even with v1.1 ...
by kiwichick
05 Feb 2024, 01:42
Forum: Off-topic Discussion
Topic: Rosetta Code for v2
Replies: 5
Views: 662

Rosetta Code for v2

Sorry if this has been asked before.

Are any of the Rosetta Code AutoHotkey scripts for v2? I've downloaded 8 random scripts and none of them work with v2 but all work with v1.
by kiwichick
05 Apr 2023, 02:35
Forum: General Discussion
Topic: AutoHotkey v2 icon
Replies: 3
Views: 903

Re: AutoHotkey v2 icon

neogna2 wrote:
04 Apr 2023, 11:02
SVG source for the icon
Thank you so much!!!
by kiwichick
04 Apr 2023, 02:23
Forum: General Discussion
Topic: AutoHotkey v2 icon
Replies: 3
Views: 903

AutoHotkey v2 icon

Does anyone have, or know where I can get, a large version (at least 150x150) of the AutoHotkey v2 icon? I want to create a custom folder icon and need a larger version than 64x64, which is the largest in the exe file.
AutoHotkey2 64x64.png
AutoHotkey2 64x64.png (1.25 KiB) Viewed 903 times
by kiwichick
16 Oct 2022, 20:33
Forum: Ask for Help (v1)
Topic: Windows 10 run script as admin Topic is solved
Replies: 3
Views: 1137

Re: Windows 10 run script as admin Topic is solved

mikeyww wrote:
11 Oct 2022, 19:44
use the admin code from the documentation.
I replaced the run as admin section I had with the one in the docs, placed a shortcut in the Startup folder and it works perfectly! Thank you very much.
by kiwichick
13 Oct 2022, 19:55
Forum: Ask for Help (v1)
Topic: Script 'save windows size' not working
Replies: 4
Views: 420

Re: Script 'save windows size' not working

boiler wrote:
13 Oct 2022, 18:37
You can check the value of the built-in variable A_ScreenDPI the ratio of it to 96 to determine the scaling factor for that system. You can then set your GUI size accordingly. Also see the discussion here about DPI scaling.
Thank you!
by kiwichick
13 Oct 2022, 16:42
Forum: Ask for Help (v1)
Topic: Script 'save windows size' not working
Replies: 4
Views: 420

Re: Script 'save windows size' not working

It would appear that you are not taking into account the Windows scaling factor on your new PC. It looks like it's probably set at 150% scaling, and the reason the ratios from one iteration to the next are not exactly 1.5:1 is that you are adjusting for the borders and caption bar. You are absolute...

Go to advanced search