Help with simple script

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
kkmarcelokk
Posts: 4
Joined: 15 Jul 2017, 21:46

Help with simple script

Post by kkmarcelokk » 20 Oct 2021, 15:14

Hi, I would like to create a script that when I pressed "P" it would press "Esc" and after 0,5 second it would left click on 682, 338 coordinate.

I tried doing if myself, but no success.

User avatar
mikeyww
Posts: 26883
Joined: 09 Sep 2014, 18:38

Re: Help with simple script

Post by mikeyww » 20 Oct 2021, 17:05

Code: Select all

p::
Send {Esc}
Sleep, 500
Click, 682 338 ; Coordinates are relative to the active window
Return

kkmarcelokk
Posts: 4
Joined: 15 Jul 2017, 21:46

Re: Help with simple script

Post by kkmarcelokk » 20 Oct 2021, 18:31

It works perfectly! Thank you very much! <3

Post Reply

Return to “Ask for Help (v1)”