jftuga Posted August 22, 2005 Posted August 22, 2005 I would like to know how to hide a control of a foriegn executable. In this program (WebDrive), there is a "Save Password" checkbox that I would rather our users not use for security reasons. I tried examining it under ResHack and PE Resource Explorer, but nothing seemed to show up. I ran the AutoIt Window Info program and have captured the title, control id, classname nn, and the text of the control. I assume that I want to use something like GUICtrlSetState() with $GUI_HIDE as the 2nd parameter, but I get the feeling that you can only to this with programs that you are writing. Is this possible to do in AutoIt? Any suggestions otherwise? Thanks, -John Admin_Popup, show computer info or launch shellRemote Manager, facilitates connecting to RDP / VNCProc_Watch, reprioritize cpu intensive processesUDF: _ini_to_dict, transforms ini file entries into variablesUDF: monitor_resolutions, returns resolutions of multiple monitorsReport Computer Problem, for your IT help deskProfile Fixer, fixes a 'missing' AD user profile
jftuga Posted August 22, 2005 Author Posted August 22, 2005 ControlHide<{POST_SNAPBACK}>Thanks!Are ControlID's always the same, or are they arbritrarily assigned? If they are arbritrary, waht can be done about this?-John Admin_Popup, show computer info or launch shellRemote Manager, facilitates connecting to RDP / VNCProc_Watch, reprioritize cpu intensive processesUDF: _ini_to_dict, transforms ini file entries into variablesUDF: monitor_resolutions, returns resolutions of multiple monitorsReport Computer Problem, for your IT help deskProfile Fixer, fixes a 'missing' AD user profile
Gigglestick Posted August 22, 2005 Posted August 22, 2005 (edited) I suppose it depends on the application. It would be the combination of the window title, text, AND controlID that would help you differentiate between, for instance, two separate Word documents. The text would be in a control with the same ID I think, but the window title and text would be different. Find some text that's unique to the window you're looking for if you're worried about it. And don't forget to use Opt("WindowTitleMatchMode") and Opt("WindowTextMatchMode") to assist in finding the correct window. Edit: I just verified this. Word doesn't provide a controlID, but does provide a Classname. This classname is the same for multiple document windows, so you'd have to use the title and text within the document to differentiate. Be sure to test this scenario in any MDI applications you're scripting. Edited August 22, 2005 by c0deWorm My UDFs: ExitCodes
Zach Posted September 1, 2005 Posted September 1, 2005 Unrelated - hopefully you have tested webdrive for a month or so. Its been awhile since I used it, but everytime I used it in the past (and I loved the program), my system would start to get very very unstable - took me a long time to figure out it was webdrive causing it. (as I said, its been a long time since I have used it, so it may no longer have that added bonus of making your system run like crap)
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