Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 03/23/2012 in all areas

  1. Hi, system32. First off, you're putting "Run" in the Value section, when it is part of your key. Also, RegRead is not the best if you want to loop through all the values under a key. Check the help file for RegEnumVal. Something like this should get you started: For $i = 1 To 10 $var = RegEnumVal("HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRun", $i) If @error Then ExitLoop MsgBox(0, "", $var) Next Come on back if you run into any issues
    1 point
  2. When you create a GUI, it's last possible parameter is an optional handle to a parant GUI, supply that parameter with another invisible GUI. GUICreate("test", 100, 200, -1, -1,-1,-1,GUICreate("")) guisetstate() sleep(5000)
    1 point
  3. #Include <WinAPIEx.au3> Global Const $sFile = @ScriptDir & 'MyIcon.ico' Global Const $tagICOHEADER = 'ushort Reserved;ushort Type;ushort Count' Global Const $tagICOENTRY = 'byte Width;byte Height;byte ColorCount;byte Reserved;ushort Planes;ushort BitCount;long Size;long Offset' Global Const $tagIHDR = 'dword Width;dword Height;byte BitDepth;byte ColorType;byte CompressionMethod;byte FilterMethod;byte InterlaceMethod' $iSize = FileGetSize($sFile) $tData = DllStructCreate('byte[' & $iSize & ']') $pData = DllStructGetPtr($tData) $hFile = _WinAPI_CreateFile($sFile, 2, 2, 6) _WinAPI_ReadFile($hFile, $pData, $iSize, $iSize) _WinAPI_CloseHandle($hFile) $tHdr = DllStructCreate($tagICOHEADER, $pData) $Count = DllStructGetData($tHdr, 'Count') For $i = 1 To $Count $tEntry = DllStructCreate($tagICOENTRY, $pData + 6 + 16 * ($i - 1)) $pIcon = $pData + DllStructGetData($tEntry, 'Offset') $Offset = DllStructGetData($tEntry, 'Offset') If DllStructGetData(DllStructCreate('byte[8]', $pIcon), 1) = Binary('0x89504E470D0A1A0A') Then ; PNG => Retrieve IHDR chunk data (always first chunk, offset = 8) $tHdr = DllStructCreate($tagIHDR, $pIcon + 16) $Width = _WinAPI_SwapDWord(DllStructGetData($tHdr, 'Width')) $Height = _WinAPI_SwapDWord(DllStructGetData($tHdr, 'Height')) $Png = ' (PNG)' Else ; ICO => Retrieve BITMAPINFOHEADER structure $tHdr = DllStructCreate($tagBITMAPINFOHEADER, $pIcon) $Width = DllStructGetData($tHdr, 'biWidth') $Height = DllStructGetData($tHdr, 'biHeight') / 2 $Png = '' EndIf ConsoleWrite($Width & ' x ' & $Height & ', ' & DllStructGetData($tEntry, 'BitCount') & 'bpp' & $Png & @CR) Next
    1 point
  4. This thread at least prompted me to try Melba's function. Out of curiosity I did Explorer Property page on my downloads folder(which has a bunch of subfolders with files.) Then did my MD5Hash program which recursively computes hash for an entire folder, then Melba's function. They all said 776 files found. So that makes me believe Melba's function works correctly. Very nice for the toolbox. To the OP, I can see trying to avoid arrays in some languages where they are not real arrays but just a macro syntactic trick. But for languages with native array support it's a must. Could you possibly be a fugitive from assembly language? heh heh
    1 point
  5. guinness

    Automate Installation

    alcarr, It's best to specify the application you were automating as "Window" is a pretty generic term.
    1 point
  6. Valik

    "Interrupt" Button

    Well that was fucking subtle. Thread locked.
    1 point
  7. Melba23

    "Interrupt" Button

    nguyenkar, What game are you using this play? M23
    1 point
×
×
  • Create New...