Page 1 of 1

Pausing my bot by pressing a key

Posted: Sat Nov 13, 2010 9:06 pm
by Exempt
Well, I'm trying to make a way to pause my bot so I don't have to fight like crazy to make it stop. I figured out how to catch user input and close my bot but it requires my bot program to be in focus which defeats the point really.

How could I make a pause or exit on key press function that doesn't require my bot tobe in focus?

Thanks.