AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

step thru program

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
playfullscientist



Joined: 20 Apr 2005
Posts: 22
Location: Princeton NJ USA

PostPosted: Mon Apr 25, 2005 5:02 pm    Post subject: step thru program Reply with quote

Hi...I would like to add a line of code at special places in my program so that it will stop and continue running only after I hit one particular key on the keyboard. This will help me debug my program. Is this possible? Thanks. playfullscientist
_________________
I am a playful scientist
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
TeknoMusicMan



Joined: 14 Apr 2005
Posts: 188
Location: Wisconsin, USA

PostPosted: Mon Apr 25, 2005 5:05 pm    Post subject: Reply with quote

just add the hotkey

Code:
Pause::Pause


now the pause/break key will pause your script at any point
_________________

"Make it idiot-proof, and someone will make a better idiot."
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
playfullscientist



Joined: 20 Apr 2005
Posts: 22
Location: Princeton NJ USA

PostPosted: Mon Apr 25, 2005 5:23 pm    Post subject: step thru program Reply with quote

Hi...I understand the idea behind

pause::pause

but which key do I hit on my keyboard to make the program continue. I don't see a pause/break key on my keyboard. Am I missing something?
Thanks. playfullscientist
_________________
I am a playful scientist
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
TeknoMusicMan



Joined: 14 Apr 2005
Posts: 188
Location: Wisconsin, USA

PostPosted: Mon Apr 25, 2005 5:45 pm    Post subject: Reply with quote

the command Pause is a toggle

so Pause::Pause means if you hit the pause key on your keyboard it will pause your script. then if you hit the pause key again the script will resume where it left off.
_________________

"Make it idiot-proof, and someone will make a better idiot."
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
jonny



Joined: 13 Nov 2004
Posts: 3004
Location: Minnesota

PostPosted: Mon Apr 25, 2005 6:39 pm    Post subject: Reply with quote

I think he's saying he doesn't have a pause key on his keyboard. Don't worry, playfullscientist, it will work with any hotkey:

space::pause

^!p::pause

Heck, it would probably even work with a hotsring:

::pause::
pause
return
Back to top
View user's profile Send private message
Loriss



Joined: 26 Jul 2004
Posts: 64

PostPosted: Mon Apr 25, 2005 10:57 pm    Post subject: For my the comand Pause do not work properly Reply with quote

If I put Pause::Pause at top af my script, the script do not run if I start It.
If I now press the key Pause, the icon become red (is now in pause),
If I press again the key Pause , the icon is not red now, (now in not in pause) , but the script do not run ........

For my the comand Pause do not work properly
_________________
Loriss
Back to top
View user's profile Send private message AIM Address
jonny



Joined: 13 Nov 2004
Posts: 3004
Location: Minnesota

PostPosted: Mon Apr 25, 2005 11:07 pm    Post subject: Reply with quote

Try putting it at the bottom instead, after everything else.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group