Jump to content

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

need script to perform action after specific key press


  • Please log in to reply
1 reply to this topic
durtydingus
  • New members
  • 1 posts
  • Last active: Oct 12 2015 02:49 PM
  • Joined: 12 Oct 2015

Let me start off by saying that i am not even kind of good at this but have been slowly learning different things on my own. currently i have a program that i am running and i need a script that after i press and release the enter button there is a 5 second delay and then left click a specific coordinate. i have been trying to research this in the help section and reading over lots of material but i cant seem to figure this out. please help



JMeneses
  • Members
  • 161 posts
  • Last active: Oct 30 2015 02:10 PM
  • Joined: 17 Feb 2011

Hi dirty dingus this is a wrong section
The correct is subforum Ask Questions
And so you will answer before

 

We used this?

#NoEnv
#persistent
#singleinstance force
settitlematchmode,2        ; A window's title can contain WinTitle anywhere inside it to be a match.

CoordMode, Screen
xPos := 300
yPos := 500
Return

#If WinActive("test")    ; Only window contain in WinTitle "test"
~Enter::
KeyWait, Enter           ; Wait until key Enter released.
Sleep , 5000             ; Wait 5 seconds
Click %xPos% , %yPos%    ; Left click to xPos and Ypos coordinates
Return
#If