Jump to content
Sign in to follow this  

Screen Clicks when Locked

Recommended Posts


New user alert.

I read in the faq that certain functions won't work when the PC is locked. I used the recorder tool to get an idea of what the script will look like, and it works, but now I'm trying to convert that to use functions that will work when the pc is locked.

The recorder recorded this:

_WinWaitActivate("Program Manager","")
_WinWaitActivate("Avaya one-X™ Communicator","")

It clicks an item in my Windows 7 taskbar and then clicks an item in the Avaya program.

The Avaya program uses a custom GUI, so I can't seem to get control IDs or other things from Spy++ or AutoIt Window Info.

So far, I changed the program to just run the program using its path. This brings up the window, but I can't figure out how to click the button.

$pid = Run("""C:\Program Files (x86)\Avaya\Avaya one-X Communicator\onexcui.exe""")

;this doesn't work:
ControlClick("Avaya one-X™ Communicator", "", "Avaya one-X™ Communicator", 1, 203, 485)

Any ideas on how I can click a specific point even when the PC is locked??

Share this post

Link to post
Share on other sites

Don't put the bogus control ID in there. Only ID the window and leave the ControlID blank, or use a valid control ID. Try it with:

ControlClick("Avaya one-X™ Communicator", "", "", 1, 203, 485)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post

Link to post
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
Sign in to follow this