bsim Posted February 2, 2015 Share Posted February 2, 2015 (edited) I've been racking my brain on this one, but I'm guessing I have hit something wonky. Running Windows 7 (admin), AutoIT 3.4.1. The following code will work differently depending on if i run it thorugh F5/Go or if i compile it and run the .exe. The problem is that the first Right click will not work, but the second, just after will work wonderfully. I'm not able to tell if the first left click is clicking. If the blockinput is removed, everything works fine in both au3 and exe execution. What gives? BlockInput (1) WinActivate("Sharing Station", "") WinSetState("Sharing Station", "", @SW_RESTORE) WinWaitActive("Sharing Station") $winpos = WinGetPos("Sharing Station", "") mouseclick("right", $winpos[0] + 98, $winpos[1] + 160, 1, 3) mouseclick("left", $winpos[0] + 118, $winpos[1] + 170, 1, 3) sleep(1000) mouseclick("right", $winpos[0] + 98, $winpos[1] + 180, 1, 3) mouseclick("left", $winpos[0] + 118, $winpos[1] + 190, 1, 3) sleep(1000) UPDATE: Nevermind...figured out that there was some sort of sub window running that was popping up hidden when the main window was being restored. just adding a mouseclick on the title bar of the visable window before doing my clicking was enough to fully activate the correct window! The app whos window is in question, is an older app that really needs to be updated... Edited February 2, 2015 by bsim Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now