-
Autoit3 has source codes and more examples then you could imagine about scripting anything.
Ive personally seen and looked at an example in autoit where it would send mouseclicks to a minimized window, which I thjink is what the poster is asking.
Just look up autoit and research their forums how to do it.
-
Ah but using autoit is bannable according to blizzard
I guess ultimately it depends on whether you use it to break the TOS but ultimately is it worth that risk?
-
Maybe keyclone could add mouseclone? It only really need duplicate clicks. But they have to be synched properly.
In linux this would likely be much easier.
-
AHK can send clicks to another app...
I successfully wrote a demo in AHK to send a mouse click to an offset screen location as well as a click at the current location...
I didn't get around to playing with it with wow though as I don't really need it as shammies have no targetted AOE
-
had a few moments to throw this together... it is not elegant but it works
I will try and get one working with ControlClick so that it is not necessary to activate the window.
[code:1]; This script will click in 2 windows
; it is not fast but could be used for AOE targetting
; use CTRL and Right Click to select the 2nd window
; use CTRL+ALT and left or right click to click in the window
^!LButton::
coordmode, mouse, relative
MouseGetPos, xpos, ypos, id, control
Winactivate, ahk_id %target%
Click, %xpos%, %ypos%, 1
MouseGetPos, xpos, ypos, dummy, control
Winactivate, ahk_id %id%
Click, %xpos%, %ypos%, 1
return
^!RButton::
coordmode, mouse, relative
MouseGetPos, xpos, ypos, id, control
Winactivate, ahk_id %target%
Click, %xpos%, %ypos%, 1, Right
MouseGetPos, xpos, ypos, dummy, control
Winactivate, ahk_id %id%
Click, %xpos%, %ypos%, 1, Right
return
^RButton::
MouseGetPos, xpos, ypos, target, control
SplashTextOn, 325, , Assigned target window %target%.
Sleep, 2000
SplasHtextoff
return
^q::
MouseGetPos, xpos, ypos, target, control
return
^!p::
Pause
return
^!r::
Reload
return
[/code:1]
-
I think the problem with doing this was that it lags your system due to suddenly changing one window to the fore-ground window then to the others. As such, you can experience significant delays between clicking and control returning to your primary characters Mouse. If anyone does get it working and manages to elimate the performance issues then please inform us :-D
-
I got Controlclick working... seems MUCH faster.
[code:1]; This script will click in 2 windows
; could be useful for AOE targetting
; use CTRL and Right Click to select the 2nd window
; use CTRL+ALT and left or right click to click in the window
^!LButton::
coordmode, mouse, relative
MouseGetPos, xpos, ypos, id, control
ControlClick, x%xpos% y%ypos%, ahk_id %target%,, LEFT, 1, NA
ControlClick, x%xpos% y%ypos%, ahk_id %id%,, LEFT, 1, NA
return
^!RButton::
coordmode, mouse, relative
MouseGetPos, xpos, ypos, id, control
ControlClick, x%xpos% y%ypos%, ahk_id %target%,, RIGHT, 1, NA
ControlClick, x%xpos% y%ypos%, ahk_id %id%,, RIGHT, 1, NA
return
^RButton::
MouseGetPos, xpos, ypos, target, control
SplashTextOn, 325, , Assigned target window %target%.
Sleep, 2000
SplasHtextoff
return
^!p::
Pause
return
^!r::
Reload
return
[/code:1]
-
quick questions
1) Can you make the script for 4 clients in total? (1 main and 3 other)
2) Does each client window need to be the same size?
-
1. yes... will work on it
2. yes.. this is just a tech demo so tested on same size screens
there is no scaling going on so coords are from top left of the current screen..
will try and add this and then repost ;)
-
Can you make the script please? :oops: :roll: