Sorry for my bad english...
So... after I formatted my computer, none of my AHK scripts run when i hit F5, not even new ones... anyone know what is that?
I have the same problem with both versions of autohotkey... The image below is just an example when i press F5.
Cant' run scripts
-
- Posts: 3
- Joined: 14 Mar 2023, 13:15
Cant' run scripts
- Attachments
-
- imagem_2023-03-14_152123006.png (32.95 KiB) Viewed 1637 times
Re: Cant' run scripts
That script could never work even before you formatted your computer because you have a line at the top forcing it to use AHK v2, but you have v1 code shown below it. What happens if you run it without the #Requires line? Or you change it to #Requires AutoHotkey v1.1?
-
- Posts: 3
- Joined: 14 Mar 2023, 13:15
Re: Cant' run scripts
The same problem... with or without #Requires...
I tried install other versios too, but the error continues
I tried install other versios too, but the error continues
Re: Cant' run scripts
Can you run it by double-clicking on the .ahk file in File Explorer instead of running it from SciTE4AutoHotkey and show that error message, if any? Maybe your editor is set up to run with a certain AHK binary. Plus, I'd rather see the standard AHK error message box.
-
- Posts: 3
- Joined: 14 Mar 2023, 13:15
Re: Cant' run scripts
i tried it, just dont open, nothing happens...
i already tried use others editors too, sublime, vscode... it says "2023-03-17 11:55:46 Autohotkey Execute Bin Not Found : C:/Program Files/AutoHotkey/AutoHotkeyU64.exe"
i already tried use others editors too, sublime, vscode... it says "2023-03-17 11:55:46 Autohotkey Execute Bin Not Found : C:/Program Files/AutoHotkey/AutoHotkeyU64.exe"
Re: Cant' run scripts
Are you sure it's not running? Nothing is supposed to happen in the script you showed until you press the hotkey, although as I mentioned, it should show an error message if you keep the #Requires line saying to use v2 when it contains code written with v1 syntax. If it really isn't running, there is either something wrong with your AHK installation, or with your association of .ahk files in Windows, or both. What does File Explorer say in the "Type" column for a .ahk file in a "Details" view in File Explorer?morielo_aut wrote: ↑ i tried it, just dont open, nothing happens...
You should get your basic AHK installation working before trying to get the extensions in editors to run your scripts.morielo_aut wrote: ↑ i already tried use others editors too, sublime, vscode... it says "2023-03-17 11:55:46 Autohotkey Execute Bin Not Found : C:/Program Files/AutoHotkey/AutoHotkeyU64.exe"