Hack Forums
How do I make this AHK script auto exit my game client? - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Coders Lounge (https://hackforums.net/forumdisplay.php?fid=5)
+---- Thread: How do I make this AHK script auto exit my game client? (/showthread.php?tid=5979101)



How do I make this AHK script auto exit my game client? - Parkway - Jun 12, 2019

I'm using an autoclicker to train my stats in a game called Runescape, and when my character dies I would like for the script to exit the client. I know this is possible because I remember seeing someone with a script that did that, but I have no clue how to make it work

This is the script I'm using:
Code
   #SingleInstance Force

RandomSleep(min, max) {

   Random, rand, min, max

   Sleep rand

}


Delete::
Loop
{
RandomSleep(25000, 49673)
Click
Sleep, 10
RandomSleep(93, 1666)
Click
}
return

End::Pause,Toggle