Wolfshare Posted December 27, 2013 Posted December 27, 2013 Hey, i am trying to make a check if class exist.. but class name is: "32770" and title is Sandboxie, but another program is runing which title is simuliar to Sandboxie - "Sandboxie Control", so i am trying to make script check when sandboxie exist, which class is "32770".. I cannot use if winexist("sandboxie") then.. because there is sandboxie and sandboxie control, i just need somehow to make it detect when Only sandboxie exist.. Anyone could help me with this?
Moderators JLogan3o13 Posted December 27, 2013 Moderators Posted December 27, 2013 You cannot find unique text to include in your WinExist call? Have you tried WinGetHandle? "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
Moderators JLogan3o13 Posted December 27, 2013 Moderators Posted December 27, 2013 So when you hover the AutoIt Window Info Tool, does it return the text? You should be able to use this to specify which of the Sandboxie windows you want. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
mikell Posted December 27, 2013 Posted December 27, 2013 Try Opt("WinTitleMatchMode", 3) ; Exact title match
Moderators JLogan3o13 Posted December 27, 2013 Moderators Posted December 27, 2013 The text is the second parameter in the WinExists function, e.g. WinExists("Sandboxie", <text in window>). If you look in your AutoIt installation directory you will see Au3Info.exe (Au3Info_X64.exe), this is the AutoIt Window Info tool. Use it to find unique text on the window. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
jdelaney Posted December 27, 2013 Posted December 27, 2013 (edited) 32770's are popups of another application. You can use this to grab it's handle (hparent is the handle of the parent window): _WinAPI_GetWindow($hParent,6) Edited December 27, 2013 by jdelaney IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.
mikell Posted December 27, 2013 Posted December 27, 2013 Wolfshare, If you put Opt("WinTitleMatchMode", 3) ; Exact title match at the top of the script, your WinExists("Sandboxie") should match "Sandboxie" but not "Sandboxie Control"
Moderators JLogan3o13 Posted December 27, 2013 Moderators Posted December 27, 2013 How this will work? At some point you need to try it on your own. We can only spoon-feed so much. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
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