Jump to content


Photo

remaping key goes infinite loop


  • Please log in to reply
3 replies to this topic

#1 Azevedo

Azevedo
  • Members
  • 59 posts

Posted 25 May 2012 - 08:21 PM

hey everyone!

the code below goes in loop.
how can i fix that?

F1::
WinGetClass, tmp, A
if (tmp == "FullScreenClass")
	send +{1}
[color=#FF0000]else
	send {F1}[/color]
return

thanks

#2 Pasukun

Pasukun
  • Members
  • 89 posts

Posted 25 May 2012 - 09:25 PM

Try using #UseHook On

#UseHook On

F1::
WinGetClass, tmp, A
if (tmp == "FullScreenClass")
   send +{1}
else
   send {F1}
return


#3 TakeNoPrisoners

TakeNoPrisoners
  • Guests

Posted 26 May 2012 - 01:19 AM


[color=#BF0000]$[/color]F1::

WinGetClass, tmp, A

if (tmp == "FullScreenClass")

   send +{1}

else

   send {F1}

return



#4 Azevedo

Azevedo
  • Members
  • 59 posts

Posted 26 May 2012 - 06:39 PM

Worked. Thanks!