Page 1 of 1

autoit hotkey help

Posted: June 21st, 2007, 2:37 pm
by mak364
ok so ive made my GUI ive got my macro working when i press start on it now i just need to make a hotkey that starts it and stops and i havnt got a clue how to do it, anyone got any ideas?

Posted: June 22nd, 2007, 6:00 pm
by Tault_admin
What game?

Posted: June 23rd, 2007, 3:09 am
by mak364
eve online, but it doesnt really matter what game i jsut need to get the hotkey code working

Posted: June 24th, 2007, 12:44 pm
by Tault_admin
What you need to do is submit some stuff for a simple premium and use the stuff we have there.

Posted: June 25th, 2007, 9:18 am
by dlm_bittersweet
I actually submitted a guide for this in the Guild Wars Submissions section, I use it for skill chaining. I'm not sure if I'm allowed to send it around since it still hasn't been yay'd or nay'd...

Posted: June 25th, 2007, 10:45 am
by Tault_admin
link?

Posted: June 25th, 2007, 11:50 am
by dlm_bittersweet
It's kinda basic, but here's the link to the post: Register to unlock hidden link
Of course, this won't help the guys without premium, but it could help others who need it.

Re: autoit hotkey help

Posted: June 25th, 2007, 12:20 pm
by kourath
mak364 wrote:ok so ive made my GUI ive got my macro working when i press start on it now i just need to make a hotkey that starts it and stops and i havnt got a clue how to do it, anyone got any ideas?

Code: Register to unlock hidden link

HotKeySet("{PAUSE}", "_Toggle") ; "Pause break" key

$RunScript = False ;controls when the script enters and exits the while loop that contains the macro

while 1
	sleep (50)
	while $RunScript = True
		sleep(1)
		;ADD YOUR MACRO HERE
	WEnd
WEnd

Func _Toggle() ;changes $runscript to the opposite of what it currently is
	If $Runscript = False Then
		$RunScript = True
	Else
		$Runscript = False
	EndIf
EndFunc
if you need any help reading or understanding the code, just ask.