sachin3079 Posted June 7, 2010 Share Posted June 7, 2010 Hi AutoIt Geeks!! I though am not very new to Autoit but am new to this forum.I am facing trouble using AutoIt to get my work done. I would highly appreciate if any one could help me out. What I need to automate is : Open Internet exporer-> Go to Tools->Open the Internet Options->then go to advanced tab ( I have automated till this step). Now what I need to do is to find out which options under the advanced tab is checked (i.e enabled or checkbox or radio button is in enabled state) and read the text for which the option is set and store it into any array. Can any one help me out in automation this part. Thanks in advance!! Sachin Link to comment Share on other sites More sharing options...
IHaveLeftTheForum Posted June 7, 2010 Share Posted June 7, 2010 I wanna see your script, so plz share here it will be better to help you! Link to comment Share on other sites More sharing options...
sachin3079 Posted June 7, 2010 Author Share Posted June 7, 2010 I wanna see your script, so plz share here it will be better to help you!Hi Here is the script.Send("#r")Send("http://google.com")Send("{Enter}")Sleep(3000)Send("!{t}")Send("{o}")WinWaitActive("Internet Options")Send("+{TAB}")Send("{RIght 6}") Now here after this I want to read the text/checkbox status. Link to comment Share on other sites More sharing options...
Ascend4nt Posted June 7, 2010 Share Posted June 7, 2010 (edited) Easiest method to open IE Internet Options: ShellExecute("inetcpl.cpl") Once its open and active, use the _GUICtrlTab** functions to navigate to the right tab. (see the Help file) Edited June 7, 2010 by Ascend4nt My contributions: Performance Counters in Windows - Measure CPU, Disk, Network etc Performance | Network Interface Info, Statistics, and Traffic | CPU Multi-Processor Usage w/o Performance Counters | Disk and Device Read/Write Statistics | Atom Table Functions | Process, Thread, & DLL Functions UDFs | Process CPU Usage Trackers | PE File Overlay Extraction | A3X Script Extract | File + Process Imports/Exports Information | Windows Desktop Dimmer Shade | Spotlight + Focus GUI - Highlight and Dim for Eyestrain Relief | CrossHairs (FullScreen) | Rubber-Band Boxes using GUI's (_GUIBox) | GUI Fun! | IE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) | Magnifier (Vista+) Functions UDF | _DLLStructDisplay (Debug!) | _EnumChildWindows (controls etc) | _FileFindEx | _ClipGetHTML | _ClipPutHTML + ClipPutHyperlink | _FileGetShortcutEx | _FilePropertiesDialog | I/O Port Functions | File(s) Drag & Drop | _RunWithReducedPrivileges | _ShellExecuteWithReducedPrivileges | _WinAPI_GetSystemInfo | dotNETGetVersions | Drive(s) Power Status | _WinGetDesktopHandle | _StringParseParameters | Screensaver, Sleep, Desktop Lock Disable | Full-Screen Crash Recovery Wrappers/Modifications of others' contributions: _DOSWildcardsToPCRegEx (original code: RobSaunder's) | WinGetAltTabWinList (original: Authenticity) UDF's added support/programming to: _ExplorerWinGetSelectedItems | MIDIEx UDF (original code: eynstyne) (All personal code/wrappers centrally located at Ascend4nt's AutoIT Code) Link to comment Share on other sites More sharing options...
Juvigy Posted June 8, 2010 Share Posted June 8, 2010 I get an error executing ShellExecute("inetcpl.cpl") - no program associated typing inetcpl.cpl in the RUN box works.I have XP SP2 and IE7. @sachin3079 All the advanced settings / checkboxes are in the registry .Just need to find the keys and read them. Link to comment Share on other sites More sharing options...
Ascend4nt Posted June 8, 2010 Share Posted June 8, 2010 Another option: Run("rundll32.exe shell32.dll,Control_RunDLL inetcpl.cpl") or if you know the tab index (depends on the version of IE): Run("rundll32.exe shell32.dll,Control_RunDLL inetcpl.cpl,,6") And if that doesn't work, this is the last way I can think of: Run("control.exe inetcpl.cpl") My contributions: Performance Counters in Windows - Measure CPU, Disk, Network etc Performance | Network Interface Info, Statistics, and Traffic | CPU Multi-Processor Usage w/o Performance Counters | Disk and Device Read/Write Statistics | Atom Table Functions | Process, Thread, & DLL Functions UDFs | Process CPU Usage Trackers | PE File Overlay Extraction | A3X Script Extract | File + Process Imports/Exports Information | Windows Desktop Dimmer Shade | Spotlight + Focus GUI - Highlight and Dim for Eyestrain Relief | CrossHairs (FullScreen) | Rubber-Band Boxes using GUI's (_GUIBox) | GUI Fun! | IE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) | Magnifier (Vista+) Functions UDF | _DLLStructDisplay (Debug!) | _EnumChildWindows (controls etc) | _FileFindEx | _ClipGetHTML | _ClipPutHTML + ClipPutHyperlink | _FileGetShortcutEx | _FilePropertiesDialog | I/O Port Functions | File(s) Drag & Drop | _RunWithReducedPrivileges | _ShellExecuteWithReducedPrivileges | _WinAPI_GetSystemInfo | dotNETGetVersions | Drive(s) Power Status | _WinGetDesktopHandle | _StringParseParameters | Screensaver, Sleep, Desktop Lock Disable | Full-Screen Crash Recovery Wrappers/Modifications of others' contributions: _DOSWildcardsToPCRegEx (original code: RobSaunder's) | WinGetAltTabWinList (original: Authenticity) UDF's added support/programming to: _ExplorerWinGetSelectedItems | MIDIEx UDF (original code: eynstyne) (All personal code/wrappers centrally located at Ascend4nt's AutoIT Code) Link to comment Share on other sites More sharing options...
sachin3079 Posted June 8, 2010 Author Share Posted June 8, 2010 I get an error executing ShellExecute("inetcpl.cpl") - no program associated typing inetcpl.cpl in the RUN box works.I have XP SP2 and IE7.@sachin3079All the advanced settings / checkboxes are in the registry .Just need to find the keys and read them.I knew about the registry as one of the alternatuive ways of getting it done, but dont want to use that as then I will have to check in local machine and users directory in registry. and depending upon the users prevelages thing settings may change.If there is any other ways of doing it please do let me know.Thanks,Sachin 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