Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

[Help]Adding "conditions"


  • Please log in to reply
1 reply to this topic
IdleChatMeister
  • Members
  • 2 posts
  • Last active: Dec 30 2012 09:16 PM
  • Joined: 27 Dec 2012

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.



Sanctus
  • Members
  • 267 posts
  • Last active: Yesterday, 01:40 PM
  • Joined: 30 Nov 2012

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