| View previous topic :: View next topic |
| Author |
Message |
playfullscientist
Joined: 20 Apr 2005 Posts: 22 Location: Princeton NJ USA
|
Posted: Mon Apr 25, 2005 5:02 pm Post subject: step thru program |
|
|
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 |
|
 |
TeknoMusicMan
Joined: 14 Apr 2005 Posts: 188 Location: Wisconsin, USA
|
Posted: Mon Apr 25, 2005 5:05 pm Post subject: |
|
|
just add the hotkey
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 |
|
 |
playfullscientist
Joined: 20 Apr 2005 Posts: 22 Location: Princeton NJ USA
|
Posted: Mon Apr 25, 2005 5:23 pm Post subject: step thru program |
|
|
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 |
|
 |
TeknoMusicMan
Joined: 14 Apr 2005 Posts: 188 Location: Wisconsin, USA
|
Posted: Mon Apr 25, 2005 5:45 pm Post subject: |
|
|
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 |
|
 |
jonny
Joined: 13 Nov 2004 Posts: 3004 Location: Minnesota
|
Posted: Mon Apr 25, 2005 6:39 pm Post subject: |
|
|
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 |
|
 |
Loriss
Joined: 26 Jul 2004 Posts: 64
|
Posted: Mon Apr 25, 2005 10:57 pm Post subject: For my the comand Pause do not work properly |
|
|
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 |
|
 |
jonny
Joined: 13 Nov 2004 Posts: 3004 Location: Minnesota
|
Posted: Mon Apr 25, 2005 11:07 pm Post subject: |
|
|
| Try putting it at the bottom instead, after everything else. |
|
| Back to top |
|
 |
|