Hi. I'm fairly new to creating/making scripts since I just discovered this about a month ago and I noticed most of the people in the game I'm playing are using AHK.
Could anyone help me or it is even possible to make a script that when pressing the desired key will make a 'left click' on a specified position on the screen?
For example, when I click number 4 it will move the cursor at the center of the screen and will automatically press left click?
Thank you so much in advance to anyone who can enlighten me on this topic!
[Mod edit: Replaced subject "I'm a newbie. I need help pelase." with descriptive subject.]
Left click in specified location when key is pressed
Re: I'm a newbie. I need help pelase.
Code: Select all
CoordMode, Mouse, Screen
4::Click % (A_ScreenWidth / 2) "," (A_ScreenHeight / 2)
Re: Left click in specified location when key is pressed
@gelobello - Please note that the subject was changed from "I'm a newbie. I need help pelase." Everyone posting in the "help" part of the forums needs help. Please use a subject that is descriptive of your problem like the one it was replaced with. Thank you.