Developers Jos Posted July 12, 2011 Developers Posted July 12, 2011 Thanks Jos for the code,Interestingly, it finds two windows with exact title but different handles, and I do not understand why?!Am I not allowed to say: I told you so? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
b0x4it Posted July 13, 2011 Author Posted July 13, 2011 Am I not allowed to say: I told you so? Yes, you did
JohnOne Posted July 13, 2011 Posted July 13, 2011 So your next step is to test the 2 windows you have for visibility, and use the handle from the visible one. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
b0x4it Posted July 13, 2011 Author Posted July 13, 2011 So your next step is to test the 2 windows you have for visibility, and use the handle from the visible one.Ss the handle same if the application is even running in another computer under another version of Windows?
JohnOne Posted July 13, 2011 Posted July 13, 2011 No the handle wont be the same, it hardly ever will, even on the same machine. take a look at the example of winlist() in the help, and its IsVisible() function If you list just the "SyncBackPro" windows WinList("SyncBack") and use the IsVisible function upon it to get the window handle, you can use that handle in place of "SyncBack" eg ControlSend($hWnd, "", "", "!+x") AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
b0x4it Posted July 13, 2011 Author Posted July 13, 2011 No the handle wont be the same, it hardly ever will, even on the same machine.take a look at the example of winlist() in the help, and its IsVisible() functionIf you list just the "SyncBackPro" windowsWinList("SyncBack")and use the IsVisible function upon it to get the window handle, you can use that handle in place of "SyncBack"eg ControlSend($hWnd, "", "", "!+x")thank you for your replies, but when it is minimized in systray, the IsVisible() doesn't work, and still I can't have its handle! any other suggestion?
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