I am having an issue where a script will only run the first two run items and nothing else.
For example for a script to reload scripts.
#F9::
run, "C:\Drive\AHK\phrases.ahk"
run, "C:\Drive\AHK\macro.ahk"
run, "C:\Drive\AHK\autocorrect.ahk"
run http://www.google.com/
return
Only the first two items will run.
Thank you and sorry for any inconvenience.
Script will only run the first two run items and nothing else
-
- Posts: 3
- Joined: 29 Dec 2017, 06:09
Re: Script will only run the first two run items and nothing else
Try if each and every one of them will run separately. How much of AHK's tray icons are displayed once you trigger the hotkey?
-
- Posts: 9
- Joined: 29 Dec 2017, 14:57
Re: Script will only run the first two run items and nothing else
you may be run other programs from the script "autocorrect.ahk"
Re: Script will only run the first two run items and nothing else
There was no problem. Press F9
F9::
run http://www.yahoo.com/
run http://www.google.com/
run http://www.cnn.com/
run http://www.autohotkey.com/
return
F9::
run http://www.yahoo.com/
run http://www.google.com/
run http://www.cnn.com/
run http://www.autohotkey.com/
return
Re: Script will only run the first two run items and nothing else
Try adding some Sleep lines.
I use Run to open tabs in Internet Explorer, I'm currently using a Sleep of 400 ms, if I don't, some tabs seem to not get opened, or, seem to open in the wrong order. Cheers.
Code: Select all
#F9::
run, "C:\Drive\AHK\phrases.ahk"
Sleep, 200
run, "C:\Drive\AHK\macro.ahk"
Sleep, 200
run, "C:\Drive\AHK\autocorrect.ahk"
Sleep, 200
run http://www.google.com/
return
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
-
- Posts: 3
- Joined: 29 Dec 2017, 06:09
Re: Script will only run the first two run items and nothing else
I was an idiot, the script was rerunning itself, which canceled subsequent actions.
Moving run, "C:\Drive\AHK\macro.ahk" to the end of the task list solves the problem.
Moving run, "C:\Drive\AHK\macro.ahk" to the end of the task list solves the problem.
- KuroiLight
- Posts: 327
- Joined: 12 Apr 2015, 20:24
- Contact:
Re: Script will only run the first two run items and nothing else
Reload will accomplish the same.
Windows 10, Ryzen 1600, 16GB G.Skill DDR4, 8GB RX 480 | [MyScripts][MySublimeSettings] [Unlicense][MIT License]
01/24/18
[/color]Who is online
Users browsing this forum: Decar, doodles333, Google [Bot], mikeyww, Tupper and 222 guests