What am i doing wrong.. The prog wont quit using my hotkey! *cry*
; Emergency Exit HotKeySet
HotKeySet ( "{f4}" , "Snoopy" )
; Activate Game Window
$winwake=WinExists ( "The Lord of the Rings Online™: Shadows of Angmar™" )
if $winwake=0 then
Exit
endif
if $winwake=1 then
WinActivate ( "The Lord of the Rings Online™: Shadows of Angmar™" )
endif
;The Large Mainloop Starts Here
While WinExists ( "The Lord of the Rings Online™: Shadows of Angmar™" )
sleep(1000);
send ("{f10}")
Wend
; Snoopy Just Exits The Program

Func Snoopy()
exit
EndFunc
[/code]