Script not running
Script not running
Hello
I have been using autohotkey without issues for quite some times, but today my script couldn't run.
In fact, in doesnt even appear in windows task manager.
I tried uninstalling/reinstalling it, running as administrator, opening with autohotkey...Nothing works.
Thanks for helping me
I have been using autohotkey without issues for quite some times, but today my script couldn't run.
In fact, in doesnt even appear in windows task manager.
I tried uninstalling/reinstalling it, running as administrator, opening with autohotkey...Nothing works.
Thanks for helping me
Re: Script not running
Hello,
You could add the process or folder as an exclusion to your antivirus software. After doing that, test a one-line hotkey subroutine that displays a message box.
You could add the process or folder as an exclusion to your antivirus software. After doing that, test a one-line hotkey subroutine that displays a message box.
Re: Script not running
hello
i tried to exclude both the script and the autohotkey folder from my antivirus. I also tried completely disabling it, and it still doesn't work :/
i tried to exclude both the script and the autohotkey folder from my antivirus. I also tried completely disabling it, and it still doesn't work :/
Re: Script not running
When you look in Task Manager, what do you seek for verification that AutoHotkey is running?
You can test a batch file that runs AutoHotkey, using your script on the command line. https://www.autohotkey.com/docs/Scripts.htm#cmd
In a reply below, you can post the code for the script that you are running.
Does one specific script fail to run, or all scripts?
What is your file extension for scripts?
What version of AHK have you uninstalled and reinstalled?
Are multiple versions of AutoHotkey installed, or multiple locations?
You can test a batch file that runs AutoHotkey, using your script on the command line. https://www.autohotkey.com/docs/Scripts.htm#cmd
In a reply below, you can post the code for the script that you are running.
Does one specific script fail to run, or all scripts?
What is your file extension for scripts?
What version of AHK have you uninstalled and reinstalled?
Are multiple versions of AutoHotkey installed, or multiple locations?
Re: Script not running
Some games' anti cheat platforms will forcibly prevent AHK from running while the game is open. Could it be something like that?
Re: Script not running
geek, I am curious to know which games do that.
Re: Script not running
Hello, thank you for your answers
When you look in Task Manager, what do you seek for verification that AutoHotkey is running?
Background processes and running applications
Does one specific script fail to run, or all scripts?
None of my scripts are currently working
What is your file extension for scripts?
.ahk
What version of AHK have you uninstalled and reinstalled?
1.1.35
Are multiple versions of AutoHotkey installed, or multiple locations?
No just one
Some games' anti cheat platforms will forcibly prevent AHK from running while the game is open. Could it be something like that?
I've tried the script when no game is running, same result
Here's the script i'm trying to use, it is a very simple one:
Send {S 4}
When you look in Task Manager, what do you seek for verification that AutoHotkey is running?
Background processes and running applications
Does one specific script fail to run, or all scripts?
None of my scripts are currently working
What is your file extension for scripts?
.ahk
What version of AHK have you uninstalled and reinstalled?
1.1.35
Are multiple versions of AutoHotkey installed, or multiple locations?
No just one
Some games' anti cheat platforms will forcibly prevent AHK from running while the game is open. Could it be something like that?
I've tried the script when no game is running, same result
Here's the script i'm trying to use, it is a very simple one:
Send {S 4}
Re: Script not running
As I mentioned, try running a hotkey subroutine that displays a message box.
When you run the script, see if AutoHotkey.exe is present in the Details tab of Task Manager.
If you have games running, you can close them first.
This is a one-line script, with no other code, and no other scripts running.
You also try from CMD command-shell window.
That is the path to my script; you would replace it with yours.
Code: Select all
F3::MsgBox, 64, Test, Test!
If you have games running, you can close them first.
This is a one-line script, with no other code, and no other scripts running.
You also try from CMD command-shell window.
Code: Select all
"c:\Program Files\AutoHotkey\AutoHotkey.exe" "d:\temp2\temp23.ahk"
Re: Script not running
Your script is running fine, but mine still doesn't work somehow.
I can't figure what is wrong with it though.
I can't figure what is wrong with it though.
Re: Script not running
Now we're getting somewhere.
Some possibilities:
1. When you send text, the wrong window is active. This can be determined by activating Notepad before you trigger your hotkey (as a test). Unless your script activates a window, waits for a window, specifies a target window in some other way, or uses a hotkey, the wrong window is likely to be active at any moment.
2. Your target window is elevated or blocks scripting. This can be determined if the script works in other windows. You can try UI Access (admin as a last resort). See documentation.
3. Your script exits or is terminated before you can notice anything. This can be determined by verifying that the script is still running.
a. Another program terminates your script.
b. Your script exits or ends itself. The script that you posted is not persistent and so will exit when the end of the script is reached. A different script may have different results (as you saw from my script).
4. The script contains a bug.
Whenever I see a post that says, "My script worked yesterday but not today", it's usually because the author changed the script!
Some possibilities:
1. When you send text, the wrong window is active. This can be determined by activating Notepad before you trigger your hotkey (as a test). Unless your script activates a window, waits for a window, specifies a target window in some other way, or uses a hotkey, the wrong window is likely to be active at any moment.
2. Your target window is elevated or blocks scripting. This can be determined if the script works in other windows. You can try UI Access (admin as a last resort). See documentation.
3. Your script exits or is terminated before you can notice anything. This can be determined by verifying that the script is still running.
a. Another program terminates your script.
b. Your script exits or ends itself. The script that you posted is not persistent and so will exit when the end of the script is reached. A different script may have different results (as you saw from my script).
4. The script contains a bug.
Whenever I see a post that says, "My script worked yesterday but not today", it's usually because the author changed the script!
Re: Script not running
example for test , send to notepad > SSSSHere's the script i'm trying to use, it is a very simple one:
Send {S 4}
Code: Select all
#persistent
run,notepad
return
$F9::
Send {S 4}
return
esc::exitapp
Re: Script not running
These are probably not the kind of games you’re thinking of or that geek is referring to, but the geolocation software in New Jersey that ensures you are within the state’s boundaries when playing their online casino/poker games also does a check for AHK processes and will not let you make real money bets while one is running. However, compiled AHK scripts are not detected.
I am guessing that the other states that have legalized online gambling have implemented the same or similar software. I know they do the geofencing part.
Re: Script not running
Hello
Thanks to everyone's help, i just changed my script to
$S::
Send {S 4}
and it now works !
Thanks to everyone's help, i just changed my script to
$S::
Send {S 4}
and it now works !
Re: Script not running
Since the script did not appear in Task Manager, the most likely event is that the script ran, sent the key to the wrong window, and immediately exited. Glad it works now!
Thanks, boiler, for the interesting information about the NJ casino. Regarding games, geek referred to
Thanks, boiler, for the interesting information about the NJ casino. Regarding games, geek referred to
That sounds like a game that would actually terminate an AHK process, so I was curious if there were any of those. The NJ system sounds like games that instead alter their own behavior in the presence of an AHK process.forcibly prevent AHK from running
Re: Script not running
Ah, I missed that distinction. Thanks for pointing that out.