Jump to content

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

Hold 2 buttons for 4 Seconds.


  • Please log in to reply
1 reply to this topic
lokipoki
  • Members
  • 1 posts
  • Last active: Apr 01 2013 09:50 AM
  • Joined: 31 Mar 2013

Hi there.

 

What I want to achieve:

 

My controller (F710) has  LT (Joy 7) und RT (Joy 8) buttons. Right now I hold LT and when I press RT its simulating esc. Here the script:

 

$Joy7::
send {Joy7}
GetKeyState, state, Joy8
if state = D
send {esc}
return

Now, I want to press LT and RT (after I pressed LT first) and hold for 4 seconds to simulate esc.

 

I hope its clear what Im trying to achieve. Im new so be kind with me wink.png

 

Cheers.



HotKeyIt
  • Moderators
  • 7439 posts
  • Last active: Jun 22 2016 09:14 PM
  • Joined: 18 Jun 2008
~$Joy7::
start:=A_TickCount
KeyWait,Joy8,DT0.5
If !ErrorLevel{
   KeyWait,Joy7
   If (A_TickCount-start>4000)
      send {esc}
}
return

Not tested!