I know that you can pause and unpause a script, I know that you can asign a key to do it e.g
pause::
pause
And I know about sleep to pause/delay for a set amount of time
What I want though is to activate a hotkey so it'll send some text which is obviously easy, but I want it to send a couple of lines of text and then pause, which i've managed to do, then I want to be able to manually put a players ID number in after the word "eject", then when I unpause I want it to continue with the rest of the script
I tried assigning the pause key to pause and unpause the script, I activated the hotkey and it sent the text and paused like I wanted it to but when I pressed pause to unpause the script and carry on it restarted the hotkey from the start again and repaused after "eject" again, how do I prevent this from happening and make it carry on from after the word pause?
!e:: sleep, 200 send t/me leans over and flings the passenger door open{enter} sleep, 500 send t/me shoves the passenger out{enter} sleep, 200 send t/eject pause ; This is where I want it to continue from when I unpause send {enter} send t/s ask to get in next time{enter} return
Just to make it a little more complicated haha, i'd quite like to be able to press Enter after putting the ID in to enter the text into the game and then automatically unpause the script, but only while that specific hotkey is activated so enter doesn't alway pause and unpause my script everytime I press Enter during the game
I hope all that made some kind of sense