Need Help for 2 locations click Script (new to AHK)

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Psyqu1k
Posts: 1
Joined: 17 Oct 2017, 22:00

Need Help for 2 locations click Script (new to AHK)

17 Oct 2017, 22:29

hey guys, trying for hours now to make simple mouse clicks script and I just don't get it :oops: I'm new to this program.. and never really scripted.

It should be an easy script I guess; left mouse click at x:1111 y:1291 then left mouse click at x:1111 y:241 (bind to F1)

my script by in program tutorial is not working at all :headwall: (nothing happen)

f1::
{
mousegetpos, 1111, 1291
mouseclick, left, 1, 0
mousemove, 1111, 244, 0
mouseclick, left, 1, 0
}
return


help Please, :roll:
Peter
BoBo
Posts: 6564
Joined: 13 May 2014, 17:15

Re: Need Help for 2 locations click Script (new to AHK)

18 Oct 2017, 04:05

MouseGetPos is > getting < values (let's guess that's why it's named that way), therefore there needs to be something defined that keeps/contains those values AKA > variables. You've set numbers as variable names, not the most intuitive thing to go for. Especially in the beginning you should work with a ToolTip/MsgBox to control received/set values. Good luck.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: mebelantikjaya and 329 guests