Jump to content

Mouse Simulation (Hidden Window)


Recommended Posts

I've currently got keystrokes simulated in a window that hides itself from the task bar.

Is it possible to have mouse movements including right and left clicks in a window that is hidden totally form view?

i dont think so, only if Au3Info can identify that window and using ControlClick()..

Link to comment
Share on other sites

It identifies it, im using a hot key to start/drop the window out of view totally.

It simulates pressing of directional keys - but im looking to add in a few mouse movements as well.

Heres a chunk of the coding im using

HotKeySet("{F9}", "hide")

HotKeySet("{F10}", "show")

AutoItSetOption("WinTitleMatchMode", 4)

While 1

Sleep(1000)

WEnd

Func hide()

Global $Show = 0

Global $handle = WinGetHandle("classname=GxWindowClassD3d")

WinSetState($handle, "", @SW_MINIMIZE)

WinSetState($handle, "", @SW_HIDE)

If @error Then

MsgBox(0, "error", "couldnt find WoW")

Else

While 1

$unique = Random(1, 4, 1)

If $unique = 1 Then

ControlSend($handle, "", "", "{UP DOWN}")

Sleep(100 + Random(1, 50, 1))

ControlSend($handle, "", "", "{UP UP}")

ControlSend($handle, "", "", "{DOWN DOWN}")

Sleep(100 + Random(1, 50, 1))

ControlSend($handle, "", "", "{DOWN UP}")

Sleep(200000 + Random(5000, 15000, 1))

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...