Jump to content

Internet Explorer Ayarlarına Müdehale Etmek


blue_life
 Share

Recommended Posts

Ben tarayıcı olarak uzun yıllardır Firefox kullandığımdan, Internet Explorer ayarlarıyla fazla ilgili deyilim. Bu yüzden eksik bilgiler için kusura bakmayın.
Neyse bir arkadaşım özel mesaj vasıtasıyla, Internet Explorer Ayarlarını nasıl sıfırlayacağına dair bir soru sordu. Başka bir aradaşında, bu konuda yardıma ihtiyacı olabilir düşüncesiyle bu yazıyı yazıyorum...

Neyse kısaca örnek script dosyamız;
[codebox]#NoTrayIcon
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Res_requestedExecutionLevel=requireAdministrator
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****

Local $RunPid = Run('rundll32.exe inetcpl.cpl ResetIEtoDefaults')
Local $Hwnd = _Hwnd_From_Pid($RunPid,"[CLASS:#32770]")
BlockInput(1)
ControlCommand($Hwnd, "", "Button1", "Check")
ControlCommand($Hwnd, "", "Button2", "Check")
BlockInput(0)

Do
Sleep(250)
Until IsHWnd($Hwnd) = 0

$Hwnd = _Hwnd_From_Pid($RunPid,"[CLASS:#32770]")
Do
Sleep(100)
Until ControlCommand($Hwnd, "", "Button1", "IsEnabled") = 1
BlockInput(1)
ControlCommand($Hwnd, "", "Button1", "Check")
BlockInput(0)
Exit

Func _Hwnd_From_Pid($Pid,$Title)
Local $Winlist
While 1
$Winlist = WinList($Title)
For $i = 1 To $Winlist[0][0]
If $Winlist[$i][0] = "" Or WinGetProcess($Winlist[$i][1]) <> $Pid Then ContinueLoop
If BitAND(WinGetState($Winlist[$i][1]), 2) Then
Return $Winlist[$i][1]
EndIf
Next
Sleep(100) ;Save Cpu
WEnd
Return SetError(1,0,0)
EndFunc[/codebox]

Sizlere son olarak googlede bulduğum inetcpl.cpl için bir kaç parametreyide vermek istiyorum. Verdiğim parametreleri [b]Run('rundll32.exe inetcpl.cpl Parametre')[/b] şeklinde çalıştırabilirsiniz. Neyse çalışmalarınızda başarılar dilerim arkadaşlar. Kolay gelsin...
[codebox]ClearMyTracksByProcessW
AddInternetPropertySheets
AddInternetPropertySheetsEx
DisplayPopupWindowManagementDialog
DllInstall
GetAddSitesDisplayUrl
ImportExportPFX
LaunchAddSitesDialog
LaunchConnectionDialog
LaunchInternetControlPanel
LaunchPerSitePrivacyActionDialog
LaunchPopupWindowManagementDialog
LaunchPrivacyDialog
LaunchSecurityDialog
LaunchSecurityDialogEx
LaunchSiteCertDialog
OpenFontsDialog
OpenFontsDialogEx
OpenLanguageDialog
ResetIEtoDefaults
ShowDeleteBrowsingHistoryDialog
ShowFeedOptionsDialog
ShowLanguageDialog
SiteCert_RunFromCmdLine[/codebox]
Link to comment
Share on other sites

Üstadım yine döktürmüşsün!. Çok sağol, ellerin dert görmesin. Çok lazım bir programdı ama bir türlü tam otomatik olarak çalıştıramamıştım. Sayende bu sorunu da aştık. İyi ki varsın!....:clapping:

Edited by radyofon
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...