 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Holy Macro
Joined: 09 Jan 2009 Posts: 11
|
Posted: Wed Jan 14, 2009 3:32 pm Post subject: Button Loop |
|
|
After pushing this button once, and then pushing it again, i want the code to rerun. But after its pushed once it cant be pushed again until the code has run all the way through. How do i get it to rerun when its pushed multiple times without waiting for the rest of the code to finish?
| Code: |
!r::
Gui, Show, Options X5 Y5 W500 H200, Somename,
Gui, Add, Button, X445 Y5 W50 H30, Run
Return
ButtonRun:
IfExist C:\Users\%A_UserName%\Desktop\Someprogram.exe
Run, C:\Users\%A_UserName%\Desktop\Someprogram.exe |
And seriously, i know theirs a quick fix to this to this so please answer with some kind of help.[/code]
Last edited by Holy Macro on Thu Jan 15, 2009 12:47 am; edited 1 time in total |
|
| Back to top |
|
 |
Cephei1
Joined: 04 Aug 2008 Posts: 199 Location: UK
|
Posted: Wed Jan 14, 2009 3:51 pm Post subject: |
|
|
| Oh wait what is the rest of the code |
|
| Back to top |
|
 |
Z_Gecko Guest
|
Posted: Wed Jan 14, 2009 5:25 pm Post subject: |
|
|
| Code: | #MaxThreadsPerHotkey 9
ButtonRun:
IfExist C:\Users\%A_UserName%\Desktop\Someprogram.exe
Run, C:\Users\%A_UserName%\Desktop\Someprogram.exe
return |
|
|
| Back to top |
|
 |
Holy Macro
Joined: 09 Jan 2009 Posts: 11
|
Posted: Wed Jan 14, 2009 8:09 pm Post subject: |
|
|
Ok my mistake, sorry, heres the entire piece.
| Code: | !r::
Gui, Show, Options X5 Y5 W500 H200, Somename,
Gui, Add, Button, X445 Y5 W50 H30, Run
Return
ButtonRun:
IfExist C:\Users\%A_UserName%\Desktop\Someprogram.exe
Run, C:\Users\%A_UserName%\Desktop\Someprogram.exe
Return
|
|
|
| Back to top |
|
 |
Holy Macro
Joined: 09 Jan 2009 Posts: 11
|
Posted: Thu Jan 15, 2009 12:42 pm Post subject: |
|
|
| ... |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|