Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 07/13/2014 in all areas

  1. Function to search for files or folders. FileOperations.7z - version 1.8.4 from 2014.03.18, (pastebin: Ru , Ru-example) _FO_CorrectMask (Help) _FO_FileSearch (Help) _FO_FolderSearch (Help) _FO_SearchEmptyFolders (Help) _FO_FileDirReName (Help) _FO_GetCopyName (Help) _FO_FileBackup (Help) _FO_PathSplit (Help) _FO_IsDir (Help) _FO_ShortFileSize (Help) _FO_IsEmptyFolder (Help) _FO_CreateFile alternative: RecFileListToArray (Melba23) FileListToArrayEx (DXRW4E) FileListToArray (SmOke_N) FileFindFirstFile (NIKZZZZ) old _FileFindFirstFile, _FileFindNextFile (AZJIO) FileDirList (MrCreatoR, amel27), (cmd.exe Dir /b) FileListToArrayRecursive + _Callback (therks) FileSearch (AZJIO), link2 myFileListToArray_AllFiles (akurakkauaaa) Update Accordingly, the updated (26.11.2012) program: >TextReplace, >Create_list_files, >Search_duplicates, >Synchronization Accordingly, the updated (22.11.2011) program: >ReName
    1 point
  2. Beginning with ControlListview why didn't you continue ? $txt = ControlListView($Gui, "Test", $ListView,"GetText", $Index) Edit BTW the helpfile is clear about ControlListview(.... , "GetSelected") : "Returns a string containing the item index of selected items" so this works $txt = _GUICtrlListView_GetItemText($ListView, Number($Index))
    1 point
  3. UEZ

    GUICtrlSetData Flikers Label

    You can use the ext. styles BitOR($WS_EX_COMPOSITED, $WS_EX_LAYERED) to avoid flickering, too. #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> Opt('GuiOnEventMode', 1) Global Const $hGui = GUICreate('Test', 400, 200, -1, -1, Default, BitOR($WS_EX_COMPOSITED, $WS_EX_LAYERED)) GUISetOnEvent($GUI_EVENT_CLOSE, '_End') Global Const $iLabel = GUICtrlCreateLabel("", 10, 80, 380, 60) GUICtrlSetFont(-1, 24, 400) GUISetState() While Sleep(20) GUICtrlSetData($iLabel, Random(0, 1)) WEnd Func _End() Exit EndFunc ;==>_End Another way is to use GDI+ creating bitmaps which are copied to the label / pic control. Br, UEZ
    1 point
  4. Hi, welcome! office2010 can be installed silently, when i get home i give more info on that, as for the rest, WinWaitActive will wait for the window to appear, if there's no text, it's more tricky, you may not have text but you may have the id's and then use commandcontrol or whatever it's called, im not home, or i would be more helpful.
    1 point
  5. Melba23

    ResourcesEx UDF.

    guinness, And after all that, here is a suggested function which will play both mp3 and wav files: #AutoIt3Wrapper_Res_File_Add=Basic.mp3, RT_RCDATA, BASICMP3 #AutoIt3Wrapper_Res_File_Add=Basic.wav, SOUND, BASICWAV #include "ResourcesEx.au3" MsgBox($MB_SYSTEMMODAL, "Sound", "Play mp3") $iRet = _Resource_PlaySound_Mod("BASICMP3") MsgBox($MB_SYSTEMMODAL, "Sound", "Play wav") $iRet = _Resource_PlaySound_Mod("BASICWAV") Func _Resource_PlaySound_Mod($sResNameOrID, $iFlags = $SND_SYNC, $sDLL = Default) Local $bIsInternal = ($sDLL = Default Or $sDLL = -1) Local $hInstance = ($bIsInternal ? 0 : _WinAPI_LoadLibraryEx($sDLL, $LOAD_LIBRARY_AS_DATAFILE)) If $iFlags = Default Then $iFlags = $SND_SYNC Local $bReturn ; Try to read resource into memory Local $binSound = _Resource_GetAsBytes($sResNameOrID) ; Assume mp3 so look in RT_RCDATA ; Get file size Local $iFileSize = @extended If $iFileSize = 0 Then ; Assume a wav $bReturn = _WinAPI_PlaySound($sResNameOrID, BitOR($SND_RESOURCE, $iFlags), $hInstance) Else ; Convert mp3 to hybrid wav $sHdr_1 = "0x52494646" Local $sHdr_2 = "57415645666D74201E0000005500020044AC0000581B0000010000000C00010002000000B600010071056661637404000000640E060064617461" Local $sAlign_Buffer = "00" Local $sMp3 = StringTrimLeft(Binary($binSound), 2) Local $iMp3Size = StringLen($sMp3) ; Convert to required format Local $iMp3Size = StringRegExpReplace(Hex($iFileSize, 8), "(..)(..)(..)(..)", "$4$3$2$1") Local $iWavSize = StringRegExpReplace(Hex($iFileSize + 63, 8), "(..)(..)(..)(..)", "$4$3$2$1") ; Construct hybrid wav file Local $sHybridWav = $sHdr_1 & $iWavSize & $sHdr_2 & $iMp3Size & $sMp3 If Mod($iMp3Size, 2) Then $sHybridWav &= $sAlign_Buffer EndIf ; Create struct Local $tWave = DllStructCreate("byte[" & BinaryLen($sHybridWav) & "]") DllStructSetData($tWave, 1, $sHybridWav) ; Set flag $iFlags = BitOR($SND_MEMORY, $SND_NODEFAULT, $iFlags) ; Play sound DllCall("winmm.dll", "int", "PlaySoundW", "struct*", $tWave, "ptr", 0, "dword", $iFlags) $bReturn = (@error ? 0 : 1) EndIf If Not $bIsInternal Then _WinAPI_FreeLibrary($hInstance) Return $bReturn EndFunc ;==>_Resource_PlaySound_Mod Note that an mp3 needs to be inserted as RT_RCDATA and a wav as SOUND - that acts as the switch in the code. M23
    1 point
×
×
  • Create New...