Log in

View Full Version : Window activation, mouse positioning etc without using mouse movement - I could probably come up with a better title if I tried :)



Simulacra
06-29-2008, 11:17 PM
Hi All,

Hypothetical question: IF I have a process where
I can set a window to be active, move the mouse cursor to a predefined
position in that window, click, move the mouse again to another
position, click all with 1 press of a key - I'm 100% sure that it would
be automation, correct?

But if I have to press a key at each stage of the process then it wouldn't be automation,
like this:
keypress - active window name
keypress - position cursor
keypress - click
keypress - position cursor
keypress - click

as
you can see, each step requires a keypress, so it should be fine.
However, would I (hypothetically speaking) be in violation of the ToS
if I combine the window activation and the first cursor positioning?

Freddie
06-30-2008, 01:38 AM
When you activate a window, you are giving a command to the operating system and the operating system brings the window to the foreground. WoW gets notified that the event occurred but it's not asked to do anything. Since activation isn't a command to WoW I don't know why Blizzard's rules would apply to it.

Simulacra
06-30-2008, 05:35 AM
Thanks Freddie, so taking that further, setting the position of the mouse and click would be 1 command so the process would be:

keypress - active window name
position cursor
click

keypress - position cursor
click

so only 2 keypresses? I'm not thinking of hotkeynet for this, just want to see if the process violates tos.

Freddie
06-30-2008, 01:12 PM
I can't say for sure what violates Blizzard's rules. I was only explaining something that is known by programmers but not necessarily by other people.

But something else just occurred to me. You can download a Windows extension called "PowerToys" from Microsoft and select "X-Mouse." That makes a window become activated whenever the mouse is over it, without clicking. If you do that, your complete sequence requires only two "move and click" inputs.

Simulacra
06-30-2008, 08:05 PM
Very interesting, I didn't know powertoys were still around, thanks for the heads up. So to clarify: if I turn on the xmouse feature I would be able to programaticaly set the cursor position and it will automaticaly make the window that is at that cursor position have the focus?

Freddie
06-30-2008, 08:33 PM
Yep.

Simulacra
06-30-2008, 08:58 PM
Yep.Bewdiful. Thanks for you help :)
/emote Mr Burns Excellent
/emote Warlock Mwahahahahahahaha

Freddie
07-01-2008, 12:42 PM
You're welcome. Good luck! :)