Holding Down Left Click Issue

Ask gaming related questions (AHK v1.1 and older)
Link123801
Posts: 1
Joined: 14 Aug 2022, 15:29

Holding Down Left Click Issue

Post by Link123801 » 14 Aug 2022, 15:31

I assume my situation is pretty common here. I'm using Bluestacks and emulating a game. The game has a D-pad designed for a touch screen. I have done a bit of trial and error. What I am trying to do is make an .ahk file to move my cursor to a specific position when I press the "a" key, left click, and hold it down until i release the "a" key. Currently I am only having trouble with the holding down until I release the "a" key part.

This is what I have so far:

Code: Select all

a::
Send, {Control up}
MouseClick, left, 100, 850
Send, {Control down}
Last edited by gregster on 14 Aug 2022, 15:32, edited 1 time in total.
Reason: Topic moved from 'Scripts and Functions > Gaming'.

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

Re: Holding Down Left Click Issue

Post by mikeyww » 14 Aug 2022, 16:06

Welcome to this AutoHotkey forum!

See :arrow: KeyWait.

Hotkey routines typically end in Return.

Post Reply

Return to “Gaming Help (v1)”