Jump to content

voorock

Members
  • Posts

    8
  • Joined

  • Last visited

Everything posted by voorock

  1. Hello, I have a Word file containing lots of words that are written in normal or italic or bold, I seek to distinguish each of these formats and send a tag (number in parentheses) next to the word. Example: Normal (1) Italy (2) Fat (3) Thank you for your help.
  2. Like in VB6, how can i get the pressed key on the keyboard ? It is to createa virtual keyboard
  3. I need to convert an adress ip for create a reg binary key in the registry. These concern Alternative configuration IP. How can I do for ? If I have this information in my script : IP :192.168.20.0 Mask : 255.255.255.0 What function for convert these in a reg binary key or hexa. Thanks very much for yours solutions To resume how can i obtain the red value in the reg key, with IP and Mask. Dim $StrGUID, $Key $IP = ("192.168.100.0") $Mask = ("255.255.255.0") ;Read service name of the network card $Key = RegEnumKey("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkCards\", 1) If @error <> 0 then ExitLoop $StrGUID = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkCards\" & $Key, "ServiceName") ;Activate Alternate Configuration RegWrite("HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\" & $StrGUID, "ActiveConfigurations", "REG_MULTI_SZ", "Alternate_" & $StrGUID) ;Paramétrer Alternate Configuration avec Adresse IP et Masque ;Write the value"Options" sous HKLM\SYSTEM\CurrentControlSet\Services\Dhcp\Configurations RegWrite("HKLM\SYSTEM\CurrentControlSet\Services\Dhcp\Configurations\", "Options", "REG_BINARY", "32000000000000000400000000000000FFFFFF7FC0A800B701000000000000000400000000000000FFFFFF7FFFFFFF00") ;Write the key Alternate_{Valeur ServiceName} and the value "Options" under HKLM\SYSTEM\CurrentControlSet\Services\Dhcp\Configurations\ RegWrite("HKLM\SYSTEM\CurrentControlSet\Services\Dhcp\Configurations\Alternate_" & $StrGUID, "Options", "REG_BINARY", "32000000000000000400000000000000FFFFFF7FC0A800B701000000000000000400000000000000FFFFFF7FFFFFFF00") MsgBox(64, "Alternate Configuration", "Configuration alternative is OK with IP 192.168.100.0 and Mask 255.255.255.0")
  4. exactely what i want, thx
  5. Hi all, I need to hide the little autoit icon in the task bar, during my script. How can i do this ? Ty
  6. Hi all, I want to get a directory name and all sub directories under it. example : c:\users contain 3 subdirectories, and i want a txt file with the subdirectories names and sizes. Sorry for my english.
  7. I'm trying to do a program to make software inventory. first i export the regkey : HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall in a .reg file then i want to find all the softwares. I make this in .bat, it works, but now i want it in autoit ... (sorry for my english) @ echo off cls echo. Inventaire de votre poste en cours .... echo %username% %COMPUTERNAME%>> c:\inventaire.txt echo ======================================================================>> c:\inventaire.txt Reg EXPORT HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall c:\uninstall.reg find "DisplayName" c:\uninstall.reg | sort >c:\results.txt find /v /i "Windows XP Hotfix" c:\results.txt | sort /o c:\%USERNAME%.txt find /v /i "Bibliorom pour XP" c:\%USERNAME%.txt | sort /o c:\%USERNAME%1.txt find /v /i "F-Secure" c:\%USERNAME%1.txt | sort /o c:\%USERNAME%2.txt find /v /i "Intel® Extreme Graphics Driver" c:\%USERNAME%2.txt | sort /o c:\%USERNAME%3.txt find /v /i "Internet Explorer" c:\%USERNAME%3.txt | sort /o c:\%USERNAME%4.txt ..... find "DisplayName" c:\%USERNAME%4.txt | sort >>c:\inventaire.txt del c:\%username%*.txt del c:\results.txt del c:\uninstall.reg exit
  8. i want to do this dos command in autoit : find "DisplayName" c:\test.reg | sort >c:\results.txt find /v /i "Windows XP Hotfix" c:\results.txt | sort /o c:\%USERNAME%.txt May u help me ?
×
×
  • Create New...