How to click the mouse without moving the pointer

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Gibbons
Posts: 93
Joined: 20 Sep 2016, 20:39

How to click the mouse without moving the pointer

13 Aug 2018, 18:43

Is there any easy way to click the mouse without moving the pointer?

Ideally I'd like a thread to be running on one screen while I work with mouse on another screen.

Possible?

Thanks,
Gibbons
KiritoSanPlays
Posts: 28
Joined: 13 Jun 2018, 16:24

Re: How to click the mouse without moving the pointer

13 Aug 2018, 18:44

not possible unless you have a viritual machine or have knowledge about injecting a mouse in a window
scriptors
Posts: 227
Joined: 25 Feb 2016, 09:01

Re: How to click the mouse without moving the pointer

14 Aug 2018, 08:41

first use

Code: Select all

WinGetPos
then use

Code: Select all

ControlClick
KiritoSanPlays
Posts: 28
Joined: 13 Jun 2018, 16:24

Re: How to click the mouse without moving the pointer

18 Aug 2018, 09:56

scriptors wrote:first use

Code: Select all

WinGetPos
then use

Code: Select all

ControlClick
won't help him since it will still use the mouse which he doesn't want
Boxof
Posts: 5
Joined: 16 Aug 2018, 06:47

Re: How to click the mouse without moving the pointer

18 Aug 2018, 10:23

It isn't possible but you can do something like this:

Code: Select all

SetMouseDelay, 0
MouseGetPos, x, y
Click, 100, 100
MouseMove, x, y, 0
Change 100 to position you want click.
Be creative! :)
User avatar
BriHecato
Posts: 124
Joined: 18 Jul 2017, 07:17

Re: How to click the mouse without moving the pointer

19 Aug 2018, 15:57

You can click without moving - just controlclik.
I've set that way one "Realm Grinder" game on Kongregate - in browser on my second monitor - each click in any windows apart of browser made 3 clicks in browser in given coordinates (inside game area).

With virtual machine there could be a little problem - you need run script inside that machine and be able to move mouse out without broke the script (then you can even move VM window out of the screen edge).
With independent thread it is higher coding and you need know what you want and if this is possible with controlsend, controlclick etc. at all (so you need to know AHK little more than little).
User avatar
jeeswg
Posts: 6902
Joined: 19 Dec 2016, 01:58
Location: UK

Re: How to click the mouse without moving the pointer

19 Aug 2018, 16:09

I have some examples, which may or may not work for you, here, under 'click without moving the cursor':
jeeswg's documentation extension tutorial - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=7&t=33596
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Anput, ArkuS, Nerafius, sofista and 115 guests