Jump to content

Recommended Posts

Hi to all, gretting from Argentina ^^

I just did this to configure Internet Explorer, for my brother's work... I did it myself, and following some topics on this forum.. but i can't figure why this handler ($internet) isn't working :S can anyone tell me?

Opt ("WinTitleMatchMode", 4)
$answer = MsgBox(4, "Configuración", "Configurar IE?")
If $answer = 7 Then
    MsgBox(0, "AutoIt", "OK.  Bye!")
    Exit
EndIf
;Run
$internet = Run(@ComSpec & " /c " & 'inetcpl.cpl', "", @SW_HIDE) ; don't forget " " before "/c"
Sleep( 1000 )
ControlClick ( $internet, "", "[CLASS:Button; INSTANCE:5]", "" )
sleep( 500 )
ControlClick ( $internet, "", "[CLASS:Button; INSTANCE:8]", "" )
sleep( 3000)
WinWaitActive ( $internet, "")
;Agregar a Sitios de Confianza - add to trusted sites
ControlCommand($internet, "", "[CLASS:SysTabControl32]", "TabRight", "")
sleep (500)
ControlListView ($internet, "", "[CLASS:SysListView32]", "Select", "1" , "2")
sleep (500)
ControlClick ( $internet, "", "[CLASS:Button]" )
sleep (500)
Send("http://asd/")
ControlClick ( $internet, "", "[CLASS:Button; INSTANCE:3]", "" )
send("{enter}")
sleep (500)
ControlClick ( $internet, "", "[CLASS:Button; INSTANCE:4]", "" )ñ
Edited by JackER4565
Link to post
Share on other sites

You can clean the Internet Explorer temp files by just deleting the folder they're in. To add a zone to the trusted sites zone, there is a registry key that can be created to put a site into that zone. It's stored in the "HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZoneMapDomains" key.

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Link to post
Share on other sites

You can clean the Internet Explorer temp files by just deleting the folder they're in. To add a zone to the trusted sites zone, there is a registry key that can be created to put a site into that zone. It's stored in the "HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZoneMapDomains" key.

thanks to you, I'll try it, but that didn't say to me if I can use handlers on controls... Edited by JackER4565
Link to post
Share on other sites

Well, because you're using @Comspec to run IE control panel, the PID you're getting is the cmd.exe PID and not the IE PID you need to use.

Edited by BrewManNH

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...