Jump to content


Photo

[Help]Adding "conditions"


  • Please log in to reply
1 reply to this topic

#1 IdleChatMeister

IdleChatMeister
  • Members
  • 2 posts

Posted 30 December 2012 - 09:16 PM

Hello,

 

I require some help for adding a few "conditions" (idk if it's actualy called that way in the programing code of autohotkey) to the following code:

Del::
If NotPushed := Not NotPushed
Send {Del Down}
Else
Send {Del Up}
Return

 

Is it possible to add a condition that when Left shift or R are pressed, a Del up action to be executed?

 

I'm very new at this so please excuse any newbyness on my part.



#2 Sanctus

Sanctus
  • Members
  • 155 posts

Posted 30 December 2012 - 10:18 PM

Is this what your looking for?

 

 

~*R::Delete
return

 

And if you want it toggled

~*R::
if toggle := !toggle
Send, {Delete down}
else
Send, {Delete up}
return

Enjoy