Page 1 of 1

How to click the mouse without moving the pointer

Posted: 13 Aug 2018, 18:43
by Gibbons
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

Re: How to click the mouse without moving the pointer

Posted: 13 Aug 2018, 18:44
by KiritoSanPlays
not possible unless you have a viritual machine or have knowledge about injecting a mouse in a window

Re: How to click the mouse without moving the pointer

Posted: 14 Aug 2018, 08:41
by scriptors
first use

Code: Select all

WinGetPos
then use

Code: Select all

ControlClick

Re: How to click the mouse without moving the pointer

Posted: 18 Aug 2018, 09:56
by KiritoSanPlays
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

Re: How to click the mouse without moving the pointer

Posted: 18 Aug 2018, 10:23
by Boxof
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! :)

Re: How to click the mouse without moving the pointer

Posted: 19 Aug 2018, 15:57
by BriHecato
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).

Re: How to click the mouse without moving the pointer

Posted: 19 Aug 2018, 16:09
by jeeswg
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