Jump to content

Ned help please


Recommended Posts

I have this code: ShellExecuteWait ( "regedit.exe", "/ e ets.reg HKEY_CURRENT_USER \ Software \ Yahoo \ pager", "c: \") but I want to save automatically ets.reg with computer name (for exemple: computernam.ets), I searched but I found nothing

Link to comment
Share on other sites

Run this sample once to hide images in IE & disable active scripting. then run again to undo changes.

Works under win XP

$active_acripting = RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3", "1400")

If $active_acripting == 3 Then
    RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3", "1400", "REG_SZ", "0")
Else
    RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3", "1400", "REG_SZ", "3") ; A.S. enabled
EndIf

$show_images = RegRead("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main", "Display Inline Images")

If $show_images == 'yes' Then
    RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main", "Display Inline Images", "REG_SZ", "yes")
Else
    RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main", "Display Inline Images", "REG_SZ", "no")
EndIf
;~ ------------
$active_acripting = RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3", "1400")
$show_images = RegRead("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main", "Display Inline Images")

If $active_acripting = 0 Then
    $active_acripting = 'Active S.: Enabled!'
Else
    $active_acripting = 'Active S.:    Disabled!'
EndIf

ConsoleWrite('Show imaages: ' & $show_images & @CRLF & $active_acripting & @CRLF)

MsgBox(0,'New Settings:','Show imaages: ' & $show_images & @CRLF & $active_acripting)
My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list]
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...