Jump to content

All Activity

This stream auto-updates     

  1. Past hour
  2. You could have a sub loop of the main loop
  3. are you sending the info to the remote window or running the script on the remote PC itself? Also - is it possible to do what you need by command line?
  4. Might have more impact if he wasn't from New York
  5. Have you tried to write this script? We love to teach people to code, to educate so people can help themselves, and to assist those who have a coding problem with an existing script that they post so we can see what is happening. We do NOT just serve up a piping fresh Giga Big Mac type code script for you to use with no work on your part. Now if you want to try to seriously code it yourself then post your attempt if you run into a problem - we are happy to help you. If you insist on being a beggar - remember - in Japan there are no beggars - at least visible ones. Also in Japan the humiliation of being a beggar is really great. Do you really want to lose face?
  6. +1 @jdelaney's post - that is what I was getting at with my earlier question. Before you reinvent the wheel, make sure you understand everything you can and cannot do straight from the installer.
  7. How to insert images in combobox

    this is great $bmp = _GDIPlus_BitmapCreateHBITMAPFromBitmap($a) _GDIPlus_BitmapDispose($a) $b=_GUIImageList_Add($hImage, $bmp) _WinAPI_DeleteObject($bmp) would be asking too much that could scale the image to fit in a specific area. See that I'm missing the hit because I tried to use the _GDIPlus_BitmapCreateDIBFromBitmap.au3 ex to make the scale change. Works perfect for a GUICtrlCreatePic but crach according to the listing below: in the line $ bmp = _GDIPlus_BitmapCreateHBITMAPFromBitmap ($ hHBitmap); <<<<< I believe I am passing the wrong Handle but I do not know how to solve #include <GUIConstantsEx.au3> #include <GuiImageList.au3> #include <GuiListView.au3> #include <WinAPI.au3> #include <WindowsConstants.au3> ;dados de mouse #include <WinAPIRes.au3> ;COMBO #include <GuiComboBoxEx.au3> ;Fonts #include <FontConstants.au3> ;obter imagem de arquivo #include <GDIPlus.au3> #include <WinAPIGdi.au3> Example() Func Example() Local $hGUI, $hImage, $hCombo, $hFont Local $idListview, $hImage Local $sWow64 = "" Local $PastaROMs = @MyDocumentsDir & "\Stella\ROMs\" ;com barra no final $hGUI = GUICreate("ImageList", 500, 310) GUISetFont(14, 400, 0, "Arial") ;<<<<<<<<<<this does not work for _GUICtrlComboBoxEx_Create $Tam=50 $hCombo = _GUICtrlComboBoxEx_Create($hGUI, "", 2, 2, 494, $Tam*2) ;GUICtrlSetFont($hCombo, 14, 400, 0, "Arial");<<<<<<<<<<It does not work ; ;Create a handle to a font object $hFont = _WinAPI_CreateFont($Tam, 0, 0, 0, 400, False, False, False, $DEFAULT_CHARSET, $OUT_DEFAULT_PRECIS, $CLIP_DEFAULT_PRECIS, $DEFAULT_QUALITY, 0, 'Arial') ;Pass the handle to _WinAPI_SetFont _WinAPI_SetFont($hCombo, $hFont) $idListview = GUICtrlCreateListView("", 2, $Tam*2, 494, 250, BitOR($LVS_SHOWSELALWAYS, $LVS_NOSORTHEADER, $LVS_REPORT)) _GUICtrlListView_SetExtendedListViewStyle($idListview, BitOR($LVS_EX_FULLROWSELECT, $LVS_EX_GRIDLINES, $LVS_EX_DOUBLEBUFFER)) GUISetState(@SW_SHOW) ; Initialize GDI+ library _GDIPlus_Startup() ; Load images $hImage = _GUIImageList_Create($Tam*2, $Tam, 6, 2) ;32,32,5,5) ; $DadosCombo = "Escolha|" & _GUIImageList_Add($hImage, _GUICtrlComboBoxEx_CreateSolidBitMap($hCombo, 0x0000FF, $Tam*2, $Tam)) ;Local $aCursors[] = [32650, 32512, 32515, 32649, 32651, 32513, 32648, 32646, 32643, 32645, 32642, 32644, 32516, 32514] For $i = 1 To 3 $sFile = FileOpenDialog("Please select an image", $PastaROMs, "Image (*.jpg;*.png;*.bmp;*.gif;*.tif)", BitOR($FD_PATHMUSTEXIST, $FD_FILEMUSTEXIST)) If @error Then Exit MsgBox(BitOR($MB_TOPMOST, $MB_ICONERROR), "Error", "No image file has been selected", 30) $hBitmap = _GDIPlus_BitmapCreateFromFile($sFile);<<<<< ok If @error Or Not $hImage Then MsgBox(BitOR($MB_TOPMOST, $MB_ICONERROR), "Error", "This file isn't supported by GDIPlus!") Else $iWidthBMP = _GDIPlus_ImageGetWidth($hBitmap) $iHeightBMP = _GDIPlus_ImageGetHeight($hBitmap) ;If $iWidth = -1 Then ;$iWidth = $iWidthBMP ;$EscalaX = 1 ;Else ;$EscalaX = $iWidth / $iWidthBMP ;EndIf ;If $iHeight = -1 Then ;$iHeight = $iHeightBMP ;$EscalaY = 1 ;Else ;$EscalaY = $iHeight / $iHeightBMP ;EndIf $EscalaX = $Tam*2 / $iWidthBMP $EscalaY = $Tam / $iHeightBMP If $EscalaX > $EscalaY Then $EscalaX = $EscalaY EndIf Local $hBitmap_Resized = _GDIPlus_BitmapCreateFromScan0($iWidthBMP * $EscalaX, $iHeightBMP * $EscalaX) Local $hBMP_Ctxt = _GDIPlus_ImageGetGraphicsContext($hBitmap_Resized) _GDIPlus_GraphicsSetInterpolationMode($hBMP_Ctxt, $GDIP_INTERPOLATIONMODE_HIGHQUALITYBICUBIC) _GDIPlus_GraphicsDrawImageRect($hBMP_Ctxt, $hBitmap, 0, 0, $Tam*2, $Tam) $hHBitmap = _GDIPlus_BitmapCreateDIBFromBitmap($hBitmap_Resized) $bmp = _GDIPlus_BitmapCreateHBITMAPFromBitmap($hHBitmap) ;<<<<< _GDIPlus_BitmapDispose($hBitmap_Resized) _GDIPlus_GraphicsDispose($hBMP_Ctxt) $b = _GUIImageList_Add($hImage, $bmp) _WinAPI_DeleteObject($hHBitmap) _WinAPI_DeleteObject($bmp) _GDIPlus_BitmapDispose($hBitmap) $DadosCombo &= "|" & $i & "_img_princ.gif""|" & $b EndIf Next _GUICtrlListView_SetImageList($idListview, $hImage, 1) _GUICtrlComboBoxEx_SetImageList($hCombo, $hImage) ; Add columns _GUICtrlListView_AddColumn($idListview, "Icons - Mouses", 350) ; Add items $a = StringSplit($DadosCombo, "|") For $i = 1 To $a[0] Step 2 _GUICtrlListView_AddItem($idListview, $a[$i], $a[$i + 1]) _GUICtrlComboBoxEx_AddString($hCombo, $a[$i], $a[$i + 1], $a[$i + 1]) Next ;AutoIt_Debugger_Command:Disable_Debug ; Loop until the user exits. Do Until GUIGetMsg() = $GUI_EVENT_CLOSE GUIDelete() ;AutoIt_Debugger_Command:Enable_Debug EndFunc ;==>Example now it works perfectly ; PNG work around by UEZ #include <GDIPlus.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> Global $Tam = 50 ; Create GUI Local $hMainGUI = GUICreate("Show PNG", 510, 510) $PastaROMs = @MyDocumentsDir & "\Stella\ROMs\" ;com barra no final If Not FileExists($PastaROMs & "*.gif") Then $PastaROMs = FileSelectFolder("Escolha a pasta com as imagens das ROMs", @MyDocumentsDir, 6, $PastaROMs) EndIf If $PastaROMs = "" Then MsgBox(0, "Cancelado", "No foi escolhido uma pasta", 5) Exit Else If StringRight($PastaROMs, 1) <> "\" Then $PastaROMs &= "\" EndIf $sFile = FileOpenDialog("Please select an image", $PastaROMs, "Image (*.jpg;*.png;*.bmp;*.gif;*.tif)", BitOR($FD_PATHMUSTEXIST, $FD_FILEMUSTEXIST)) If @error Then Exit MsgBox(BitOR($MB_TOPMOST, $MB_ICONERROR), "Error", "No image file has been selected", 30) _GUICtrlPic_Create($sFile, 10, 10, 50, 100) GUISetState(@SW_SHOW) ; Loop until the user exits. While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE ExitLoop EndSwitch WEnd ; #INTERNAL_USE_ONLY#================================================================================================= ; Name...........: _GUICtrlPic_Create ; Description ...: Creates a Picture control for the GUI ; Syntax ........: _GUICtrlPic_Create($sFilename, $iLeft, $iTop, $iWidth, $iHeight, $iStyle = -1 , $iExStyle = -1) ; Parameters ....: $sFilename - Path of image file ; Author ........: UEZ ; Modified.......: Melba23, guinness, jpm ; Remarks .......: PNG image can be used. ; ==================================================================================================================== Func _GUICtrlPic_Create($sFilename, $iLeft, $iTop, $iWidth = -1, $iHeight = -1, $iStyle = -1, $iExStyle = -1) Local $EscalaX Local $EscalaY _GDIPlus_Startup() Local $idPic = GUICtrlCreatePic("", $iLeft, $iTop, $iWidth, $iHeight, $iStyle, $iExStyle) Local $hBitmap = _GDIPlus_BitmapCreateFromFile($sFilename) $iWidthBMP = _GDIPlus_ImageGetWidth($hBitmap) $iHeightBMP = _GDIPlus_ImageGetHeight($hBitmap) If $iWidth = -1 Then $iWidth = $iWidthBMP $EscalaX = 1 Else $EscalaX = $iWidth / $iWidthBMP EndIf If $iHeight = -1 Then $iHeight = $iHeightBMP $EscalaY = 1 Else $EscalaY = $iHeight / $iHeightBMP EndIf If $EscalaX > $EscalaY Then $EscalaX = $EscalaY EndIf Local $hBitmap_Resized = _GDIPlus_BitmapCreateFromScan0($iWidthBMP * $EscalaX, $iHeightBMP * $EscalaX) Local $hBMP_Ctxt = _GDIPlus_ImageGetGraphicsContext($hBitmap_Resized) _GDIPlus_GraphicsSetInterpolationMode($hBMP_Ctxt, $GDIP_INTERPOLATIONMODE_HIGHQUALITYBICUBIC) _GDIPlus_GraphicsDrawImageRect($hBMP_Ctxt, $hBitmap, 0, 0, $iWidth, $iHeight) Local $hHBitmap = _GDIPlus_BitmapCreateDIBFromBitmap($hBitmap_Resized) Local $hPrevImage = GUICtrlSendMsg($idPic, $STM_SETIMAGE, 0, $hHBitmap) ; $STM_SETIMAGE = 0x0172 _WinAPI_DeleteObject($hPrevImage) ; Delete Prev image if any _GDIPlus_BitmapDispose($hBitmap) _GDIPlus_BitmapDispose($hBitmap_Resized) _GDIPlus_GraphicsDispose($hBMP_Ctxt) _WinAPI_DeleteObject($hHBitmap) _GDIPlus_Shutdown() Return $idPic EndFunc ;==>_GUICtrlPic_Create PS: I have this working but it cuts an image bigger than the fixed size of 120x70 #include <GUIConstantsEx.au3> #include <GuiImageList.au3> #include <GuiListView.au3> #include <WinAPI.au3> #include <WindowsConstants.au3> ;dados de mouse #include <WinAPIRes.au3> ;COMBO #include <GuiComboBoxEx.au3> ;Fonts #include <FontConstants.au3> ;obter imagem de arquivo #include <GDIPlus.au3> #include <WinAPIGdi.au3> Example() Func Example() Local $hGUI, $hImage, $hCombo, $hFont Local $idListview, $hImage Local $sWow64 = "" Local $PastaROMs = @MyDocumentsDir & "\Stella\ROMs\" ;com barra no final If Not FileExists($PastaROMs & "*.gif") Then $PastaROMs = FileSelectFolder("Escolha a pasta com as imagens das ROMs", @MyDocumentsDir, 6, $PastaROMs) EndIf If $PastaROMs = "" Then MsgBox(0, "Cancelado", "No foi escolhido uma pasta", 5) Exit Else If StringRight($PastaROMs, 1) <> "\" Then $PastaROMs &= "\" EndIf $hGUI = GUICreate("ImageList", 500, 310) GUISetFont(14, 400, 0, "Arial") ;<<<<<<<<<<this does not work for _GUICtrlComboBoxEx_Create $hCombo = _GUICtrlComboBoxEx_Create($hGUI, "", 2, 2, 494, 200) ;GUICtrlSetFont($hCombo, 14, 400, 0, "Arial");<<<<<<<<<<It does not work ; ;Create a handle to a font object $hFont = _WinAPI_CreateFont(30, 0, 0, 0, 400, False, False, False, $DEFAULT_CHARSET, $OUT_DEFAULT_PRECIS, $CLIP_DEFAULT_PRECIS, $DEFAULT_QUALITY, 0, 'Arial') ;Pass the handle to _WinAPI_SetFont _WinAPI_SetFont($hCombo, $hFont) $idListview = GUICtrlCreateListView("Titulo|Local", 2, 50, 494, 250, BitOR($LVS_SHOWSELALWAYS, $LVS_NOSORTHEADER, $LVS_REPORT)) _GUICtrlListView_SetExtendedListViewStyle($idListview, BitOR($LVS_EX_FULLROWSELECT, $LVS_EX_GRIDLINES, $LVS_EX_DOUBLEBUFFER)) GUISetState(@SW_SHOW) ; Initialize GDI+ library _GDIPlus_Startup() ; Load images $hImage = _GUIImageList_Create(120, 70, 6, 3) $DadosCombo = "<Escolha>" $ImgDefaut = _GUIImageList_Add($hImage, _GUICtrlComboBoxEx_CreateSolidBitMap($hCombo, 0xFF0000, 120, 70)) $DadosCombo &= "|" & $ImgDefaut & "|" ;$DadosCombo [n1]= Texto ;$DadosCombo [n2]= Indice Imagem ;$DadosCombo [n3]= Informao ;AutoIt_Debugger_Command:Disable_Debug Local $QuantGifs ;obtendo a quant de imagens GIF Local $search = FileFindFirstFile($PastaROMs & "*.gif") If $search <> -1 Then While 1 Local $file = FileFindNextFile($search) If @error Then ExitLoop Else $QuantGifs += 1 EndIf WEnd EndIf ; Close the search handle FileClose($search) $QuantGifs = 5 ;<<<<<TEMP PATA TESTES Local $search = FileFindFirstFile($PastaROMs & "*.gif") ;AutoIt_Debugger_Command:Enable_Debug If $search <> -1 Then $Quant = 0 $Show = Int($QuantGifs * .1) While 1 Local $sFile = FileFindNextFile($search) If @error Then ExitLoop Else $Quant += 1 ;temp If $Quant > $QuantGifs Then ExitLoop If Int($Quant / $Show) = ($Quant / $Show) Then ;performace 10% TrayTip("Fase I", _ "Obtendo Dados da ROMs[" & $Quant & "] de [" & $QuantGifs & "]" & @CRLF & _ "[" & $PastaROMs & $sFile & "]", 5) EndIf $a = _GDIPlus_BitmapCreateFromFile($PastaROMs & $sFile) ;<<<<< ok If @error Or Not $a Then ;MsgBox(BitOR($MB_TOPMOST, $MB_ICONERROR), "Error", "This file["& $sFile & "] isn't supported by GDIPlus!") $DadosCombo &= "|<ERRO>[" & @extended & "]Bitmap" & $sFile & "|" & $ImgDefaut & "|" & $PastaROMs & $sFile Else $bmp = _GDIPlus_BitmapCreateHBITMAPFromBitmap($a) If @error Or Not $bmp Then ;MsgBox(BitOR($MB_TOPMOST, $MB_ICONERROR), "Error", "This file["& $sFile & "] isn't supported by GDIPlus!") $DadosCombo &= "|<ERRO>[" & @extended & "]HBITMAP" & $sFile & "|" & $ImgDefaut & "|" & $PastaROMs & $sFile _GDIPlus_BitmapDispose($a) Else _GDIPlus_BitmapDispose($a) $b = _GUIImageList_Add($hImage, $bmp) If @error Or Not $b Then ;MsgBox(BitOR($MB_TOPMOST, $MB_ICONERROR), "Error", "This file["& $sFile & "] isn't supported by GDIPlus!") $DadosCombo &= "|<ERRO>[" & @extended & "]Add" & $sFile & "|" & $ImgDefaut & "|" & $PastaROMs & $sFile _WinAPI_DeleteObject($bmp) Else _WinAPI_DeleteObject($bmp) $DadosCombo &= "|" & $sFile & "|" & $b & "|" & $PastaROMs & $sFile ;$DadosCombo [n1]= Texto ;$DadosCombo [n2]= Indice Imagem ;$DadosCombo [n3]= Informao EndIf EndIf EndIf EndIf WEnd _GUICtrlComboBoxEx_SetImageList($hCombo, $hImage) _GUICtrlListView_SetImageList($idListview, $hImage, 1) ;temp TrayTip("Fase I - finalizada", _ "Obtendo Dados da ROMs[" & $Quant & "] de [" & $QuantGifs & "]" & @CRLF & _ "[" & $PastaROMs & $sFile & "]", 5) Else MsgBox(0, "Cancelado", "Erro de logica", 5) Exit EndIf ; Add items $a = StringSplit($DadosCombo, "|") ;$DadosCombo [n1]= Texto ;$DadosCombo [n2]= Indice Imagem ;$DadosCombo [n3]= Informao For $i = 1 To $a[0] Step 3 ;de 3 em 3 ;If Int($i / $Show) = ($i / $Show) Then ;performace 10% TrayTip("Fase II", _ "Incerindo no ComboBox[" & $i & "] de [" & $QuantGifs & "]" & @CRLF & _ "[" & $a[$i] & "-" & $a[$i + 1] & "-" & $a[$i + 2] & "]", 5) ; EndIf _GUICtrlListView_AddItem($idListview, $a[$i] & "|" & $a[$i + 2], $a[$i + 1]) ;temp _GUICtrlComboBoxEx_AddString($hCombo, $a[$i], $a[$i + 1], $a[$i + 1]) Next ;AutoIt_Debugger_Command:Disable_Debug Do Until GUIGetMsg() = $GUI_EVENT_CLOSE GUIDelete() EndFunc ;==>Example
  8. When I used this example, it just gave me as a result the number 3 only Is there a solution please? #include <Array.au3> Local $sString = "%D8%A3%D8%B0%D9%83%D8%A7%D8%B1%20%D9%88%D8%A3%D8%AF%D8%B9%D9%8A%D8%A9/%D8%A3%D8%B0%D9%83%D8%A7%D8%B1%20%D9%85%D9%86%D9%88%D8%B9%D8%A9/%D8%A3%D8%B0%D9%83%D8%A7%D8%B1%2003.mp3" MsgBox(0, "", _MakeReadable($sString)) Func _MakeReadable($sString) Local $aReg = StringRegExp($sString, '%[0-9a-fA-F]{2}|.', 3) Local $sChar = "" Local $sReadableString="" For $i = 0 To UBound($aReg) - 1 $sChar = StringReplace($aReg[$i], "%", "") If StringLen($sChar) = 2 Then $sReadableString = Chr("0x" & $sChar) Else $sReadableString = $sChar EndIf Next Return BinaryToString(StringToBinary($sReadableString), 4) EndFunc am waiting
  9. Today
  10. Remote PC General Auto it Problems

    The spytool is grabbing a button group. if you notice, there is an outline around your controls...that's what the spy tool is returning data for. use my signature to get all the data for all the controls on your window, and paste that back here. use the id to identify them
  11. If you Don't like to execute .au3 you can even restrict to use only .a3x with some registry modification
  12. Hello. maybe something like this: #include <Array.au3> Local $sString = "%D8%A3%D8%B0%D9%83%D8%A7%D8%B1%20%D9%88%D8%A3%D8%AF%D8%B9%D9%8A%D8%A9/%D8%A3%D8%B0%D9%83%D8%A7%D8%B1%20%D9%85%D9%86%D9%88%D8%B9%D8%A9/%D8%A3%D8%B0%D9%83%D8%A7%D8%B1%2003.mp3" MsgBox(0, "", _MakeReadable($sString)) Func _MakeReadable($sString) Local $aReg = StringRegExp($sString, '%[0-9a-fA-F]{2}|.', 3) Local $sChar = "" Local $sReadableString="" For $i = 0 To UBound($aReg) - 1 $sChar = StringReplace($aReg[$i], "%", "") If StringLen($sChar) = 2 Then $sReadableString &= Chr("0x" & $sChar) Else $sReadableString &= $sChar EndIf Next Return BinaryToString(StringToBinary($sReadableString), 4) EndFunc ;==>_MakeTeadable Saludos
  13. Remote PC General Auto it Problems

    Schumetzq, Looks like to me that you are not getting the correct information when using the finder tool. Should not be looking at a button but at a text field. When I use the finder tool in a text box I get something that looks like this code. ControlSend("Title of Window", "", "[CLASS:TsuiEdit; INSTANCE:2]", "Text to enter") Note the CLASS is not a button.
  14. You can also try the function _guictrlbutton_getchecked
  15. You have to put full spy output in your post. But its based on this logic https://docs.microsoft.com/en-us/dotnet/framework/ui-automation/get-the-toggle-state-of-a-check-box-using-ui-automation
  16. Subz...yes, was offering an explanation to what seemed to be a question. Playing with other alternatives...
  17. Check the @error value returned by _IsChecked to make sure the ControlCommand function is not throwing an error. Replace the _IsChecked call with the following. Local $iIsChecked = _IsChecked($hWin, $hControl) Local $iIsCheckedError = @error If $iIsChecked And Not $iIsCheckedError Then MsgBox(0, "", "The checkbox is checked.") ElseIf Not $iIsChecked And Not $iIsCheckedError Then MsgBox(0, "", "The checkbox is not checked.") Else MsgBox(16, "ERROR!", 'Error with ControlCommand "IsChecked"') EndIf Also, when I have had to automate some hard to automate controls to I've use a loop with IsChecked and and UnCheck. Example below. Global $sDialogTitle = "[CLASS:WindowsForms10.Window.8.app.0.32b818c_r12_ad1; TEXT:Material Editor]" Global $sDialogText = "" Global $sControlInfo = "[CLASS:WindowsForms10.BUTTON.app.0.32b818c_r12_ad1; TEXT:Fresnel:]" While ControlCommand($sDialogTitle, $sDialogText, $sControlInfo, "IsChecked", "") ControlCommand($sDialogTitle, $sDialogText, $sControlInfo, "UnCheck", "") WEnd Adam
  18. You can over engineer a solution using the _guictrllistview* functions. easiest solution is to use the installers silent parameters. you can generally pass parameters in for the customization steps too
  19. ok, better example of what I'd like to have: #cs ---------------------------------------------------------------------------- AutoIt Version: 3.3.14.5 Author: myName Script Function: Template AutoIt script. #ce ---------------------------------------------------------------------------- ; Script Start - Add your code below here #include <WinAPIHObj.au3> #include <WinAPIFiles.au3> #include <InetConstants.au3> #include <MsgBoxConstants.au3> #include <WinAPIFiles.au3> ; Download a file in the background. ; Wait for the download to complete. Example() Func Example() ; Save the downloaded file to the temporary folder. Local $sFilePath = _WinAPI_GetTempFileName(@TempDir) ConsoleWrite('$sFilePath = "' & $sFilePath & '"' & @CRLF) ; using the $FILE_ATTRIBUTE_TEMPORARY & $FILE_FLAG_DELETE_ON_CLOSE Local $hFile = _WinAPI_CreateFileEx($sFilePath, $CREATE_ALWAYS, BitOR($GENERIC_READ, $GENERIC_WRITE), BitOR($FILE_SHARE_DELETE,$FILE_SHARE_READ,$FILE_SHARE_WRITE), BitOR($FILE_ATTRIBUTE_TEMPORARY, $FILE_FLAG_DELETE_ON_CLOSE)) ; Download the file in the background with the selected option of 'force a reload from the remote site.' Local $hDownload = InetGet("http://www.autoitscript.com/autoit3/files/beta/update.dat", $hFile, $INET_FORCERELOAD, $INET_DOWNLOADBACKGROUND) ; Wait for the download to complete by monitoring when the 2nd index value of InetGetInfo returns True. Do Sleep(250) Until InetGetInfo($hDownload, $INET_DOWNLOADCOMPLETE) ; Retrieve the number of total bytes received and the filesize. Local $iBytesSize = InetGetInfo($hDownload, $INET_DOWNLOADREAD) ; Close the handle returned by InetGet. InetClose($hDownload) Local $iSize = ByteSuffix( _WinAPI_GetFileSizeEx($hFile)) Local $iFileSize = ByteSuffix(FileGetSize($hFile)) ; Display details about the total number of bytes read and the filesize. ConsoleWrite( "The total download size: " & $iBytesSize & ' - ( if more than zero, the file downloaded )' & @CRLF ) ConsoleWrite( "filesize as per FileGetSize: " & $iFileSize & ' - ( if more than zero, the file got written )' & @CRLF) ConsoleWrite( "filesize as per _WinAPI_GetFileSizeEx: " & $iSize & ' - ( if more than zero, the file got written )' & @CRLF) ConsoleWrite('--- file start ---' & @CRLF) ConsoleWrite(FileRead($hFile)) ; <----------- this is not working =/ ConsoleWrite('--- file end ---' & @CRLF) ;;; from _WinAPI_CreateFile example Local $sText, $nBytes ConsoleWrite('--- file start ---' & @CRLF) ; 2) read 6 bytes from position 3 $tBuffer = DllStructCreate("byte[6]") $iSizeEx = _WinAPI_GetFileSizeEx($hFile) _WinAPI_SetFilePointer($hFile, 3) _WinAPI_ReadFile($hFile, $tBuffer, 6, $nBytes) ; <----------- this is not working =/ $sText = BinaryToString(DllStructGetData($tBuffer, 1)) ConsoleWrite('2):' & $iSizeEx & ' ' & $sText & @CRLF) ConsoleWrite('--- file end ---' & @CRLF) ;;; from _WinAPI_CreateFile example _WinAPI_CloseHandle($hFile) ;~ ; Delete the file. ;~ FileDelete($sFilePath) EndFunc ;==>Example Func ByteSuffix($iBytes) Local $iIndex = 0, $aArray = [' bytes', ' KB', ' MB', ' GB', ' TB', ' PB', ' EB', ' ZB', ' YB'] While $iBytes > 1023 $iIndex += 1 $iBytes /= 1024 WEnd Return Round($iBytes) & $aArray[$iIndex] EndFunc ;==>ByteSuffix but it does not work
  20. Thanks for your input Saludos.... I have read in a few places about grabbing the pixel colour but would rather find a better method if possible...
  21. Yes, I have looked at your SimplySpy...... How would I go about coding the state and using it some pointers would be great... this is what I get running control+W: https://www.autoitscript.com/forum/topic/153520-iuiautomation-ms-framework-automate-chrome-ff-ie/?do=findComment&comment=1156373 At least we have an element title: [Fresnel:] class: [WindowsForms10.BUTTON.app.0.32b818c_r12_ad1] Having the following values for all properties: Title is: <Fresnel:> Class := <WindowsForms10.BUTTON.app.0.32b818c_r12_ad1> controltype:= <UIA_CheckBoxControlTypeId> ,<50002> , (0000C352) 517;544;195;20 *** Parent Information top down *** 11: Title is: <Edit Default Material Selections> Class := <WindowsForms10.Window.8.app.0.32b818c_r12_ad1> controltype:= <UIA_WindowControlTypeId> ,<50032> , (0000C370) 191;147;1538;906 "Title:=Edit Default Material Selections;controltype:=UIA_WindowControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1"" 10: Title is: <Material Editor> Class := <WindowsForms10.Window.8.app.0.32b818c_r12_ad1> controltype:= <UIA_WindowControlTypeId> ,<50032> , (0000C370) 482;185;955;830 "Title:=Material Editor;controltype:=UIA_WindowControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1"" 9: Title is: <> Class := <WindowsForms10.Window.8.app.0.32b818c_r12_ad1> controltype:= <UIA_PaneControlTypeId> ,<50033> , (0000C371) 505;230;908;725 "Title:=;controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1"" 8: Title is: <> Class := <WindowsForms10.Window.8.app.0.32b818c_r12_ad1> controltype:= <UIA_PaneControlTypeId> ,<50033> , (0000C371) 505;230;602;725 "Title:=;controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1"" 7: Title is: <> Class := <WindowsForms10.Window.8.app.0.32b818c_r12_ad1> controltype:= <UIA_PaneControlTypeId> ,<50033> , (0000C371) 505;230;602;725 "Title:=;controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1"" 6: Title is: <> Class := <WindowsForms10.Window.8.app.0.32b818c_r12_ad1> controltype:= <UIA_PaneControlTypeId> ,<50033> , (0000C371) 505;230;602;725 "Title:=;controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1"" 5: Title is: <> Class := <WindowsForms10.SysTabControl32.app.0.32b818c_r12_ad1> controltype:= <UIA_TabControlTypeId> ,<50018> , (0000C362) 505;273;602;682 "Title:=;controltype:=UIA_TabControlTypeId;class:=WindowsForms10.SysTabControl32.app.0.32b818c_r12_ad1"" 4: Title is: <Advanced> Class := <WindowsForms10.Window.8.app.0.32b818c_r12_ad1> controltype:= <UIA_PaneControlTypeId> ,<50033> , (0000C371) 509;297;594;654 "Title:=Advanced;controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1"" 3: Title is: <Colour:> Class := <WindowsForms10.Window.8.app.0.32b818c_r12_ad1> controltype:= <UIA_PaneControlTypeId> ,<50033> , (0000C371) 509;297;594;654 "Title:=Colour:;controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1"" 2: Title is: <> Class := <WindowsForms10.Window.8.app.0.32b818c_r12_ad1> controltype:= <UIA_PaneControlTypeId> ,<50033> , (0000C371) 509;401;594;475 "Title:=;controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1"" 1: Title is: <Specular Settings> Class := <WindowsForms10.Window.8.app.0.32b818c_r12_ad1> controltype:= <UIA_PaneControlTypeId> ,<50033> , (0000C371) 513;404;203;163 "Title:=Specular Settings;controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1"" 0: Title is: <No texture selected.> Class := <WindowsForms10.Window.8.app.0.32b818c_r12_ad1> controltype:= <UIA_PaneControlTypeId> ,<50033> , (0000C371) 517;421;195;143 "Title:=No texture selected.;controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1"" ;~ *** Standard code maintainable *** #include "UIAWrappers.au3" AutoItSetOption("MustDeclareVars", 1) _UIA_setVar("oP1","Title:=Edit Default Material Selections;controltype:=UIA_WindowControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1") ;Edit Default Material Selections _UIA_setVar("oP2","Title:=Material Editor;controltype:=UIA_WindowControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1") ;Material Editor _UIA_setVar("oP3","Title:=;controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1") ; _UIA_setVar("oP4","Title:=;controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1") ; _UIA_setVar("oP5","Title:=;controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1") ; _UIA_setVar("oP6","Title:=;controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1") ; _UIA_setVar("oP7","Title:=;controltype:=UIA_TabControlTypeId;class:=WindowsForms10.SysTabControl32.app.0.32b818c_r12_ad1") ; _UIA_setVar("oP8","Title:=Advanced;controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1") ;Advanced _UIA_setVar("oP9","Title:=Colour:;controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1") ;Colour: _UIA_setVar("oP10","Title:=;controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1") ; _UIA_setVar("oP11","Title:=Specular Settings;controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1") ;Specular Settings _UIA_setVar("oP12","Title:=No texture selected.;controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1") ;No texture selected. _UIA_setVar("Fresnel:.mainwindow","title:=Fresnel:;classname:=WindowsForms10.BUTTON.app.0.32b818c_r12_ad1") ;~ Actions split away from logical/technical definition above can come from configfiles ;~_UIA_Action("oP1","highlight") _UIA_Action("oP1","setfocus") ;~_UIA_Action("oP2","highlight") _UIA_Action("oP2","setfocus") ;~_UIA_Action("oP3","highlight") _UIA_Action("oP3","setfocus") ;~_UIA_Action("oP4","highlight") _UIA_Action("oP4","setfocus") ;~_UIA_Action("oP5","highlight") _UIA_Action("oP5","setfocus") ;~_UIA_Action("oP6","highlight") _UIA_Action("oP6","setfocus") ;~_UIA_Action("oP7","highlight") _UIA_Action("oP7","setfocus") ;~_UIA_Action("oP8","highlight") _UIA_Action("oP8","setfocus") ;~_UIA_Action("oP9","highlight") _UIA_Action("oP9","setfocus") ;~_UIA_Action("oP10","highlight") _UIA_Action("oP10","setfocus") ;~_UIA_Action("oP11","highlight") _UIA_Action("oP11","setfocus") ;~_UIA_Action("oP12","highlight") _UIA_Action("oP12","setfocus") _UIA_action("Fresnel:.mainwindow","setfocus") ;~ *** Standard code Flexible*** #include "UIAWrappers.au3" AutoItSetOption("MustDeclareVars", 1) Local $oP11=_UIA_getObjectByFindAll($UIA_oDesktop, "Title:=Edit Default Material Selections;controltype:=UIA_WindowControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1", $treescope_children) _UIA_Action($oP11,"setfocus") Local $oP10=_UIA_getObjectByFindAll($oP11, "Title:=Material Editor;controltype:=UIA_WindowControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1", $treescope_children) _UIA_Action($oP10,"setfocus") Local $oP9=_UIA_getObjectByFindAll($oP10, "Title:=;controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1", $treescope_children) _UIA_Action($oP9,"setfocus") Local $oP8=_UIA_getObjectByFindAll($oP9, "Title:=;controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1", $treescope_children) _UIA_Action($oP8,"setfocus") Local $oP7=_UIA_getObjectByFindAll($oP8, "Title:=;controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1", $treescope_children) _UIA_Action($oP7,"setfocus") Local $oP6=_UIA_getObjectByFindAll($oP7, "Title:=;controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1", $treescope_children) _UIA_Action($oP6,"setfocus") Local $oP5=_UIA_getObjectByFindAll($oP6, "Title:=;controltype:=UIA_TabControlTypeId;class:=WindowsForms10.SysTabControl32.app.0.32b818c_r12_ad1", $treescope_children) _UIA_Action($oP5,"setfocus") Local $oP4=_UIA_getObjectByFindAll($oP5, "Title:=Advanced;controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1", $treescope_children) _UIA_Action($oP4,"setfocus") Local $oP3=_UIA_getObjectByFindAll($oP4, "Title:=Colour:;controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1", $treescope_children) _UIA_Action($oP3,"setfocus") Local $oP2=_UIA_getObjectByFindAll($oP3, "Title:=;controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1", $treescope_children) _UIA_Action($oP2,"setfocus") Local $oP1=_UIA_getObjectByFindAll($oP2, "Title:=Specular Settings;controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1", $treescope_children) _UIA_Action($oP1,"setfocus") Local $oP0=_UIA_getObjectByFindAll($oP1, "Title:=No texture selected.;controltype:=UIA_PaneControlTypeId;class:=WindowsForms10.Window.8.app.0.32b818c_r12_ad1", $treescope_children) _UIA_Action($oP0,"setfocus") _UIA_setVar("Fresnel:.mainwindow","title:=Fresnel:;classname:=WindowsForms10.BUTTON.app.0.32b818c_r12_ad1") _UIA_action("Fresnel:.mainwindow","setfocus") *** Detailed properties of the highlighted element *** UIA_title:= <Fresnel:> UIA_text:= <Fresnel:> UIA_regexptitle:= <Fresnel:> UIA_class:= <WindowsForms10.BUTTON.app.0.32b818c_r12_ad1> UIA_regexpclass:= <WindowsForms10.BUTTON.app.0.32b818c_r12_ad1> UIA_iaccessiblechildId:= <0> UIA_id:= <FresnelCheckBox> UIA_handle:= <71774> UIA_RuntimeId:= <42;71774> UIA_BoundingRectangle:= <517;544;195;20> UIA_ProcessId:= <10116> UIA_ControlType:= <50002> UIA_LocalizedControlType:= <check box> UIA_Name:= <Fresnel:> UIA_HasKeyboardFocus:= <False> UIA_IsKeyboardFocusable:= <True> UIA_IsEnabled:= <True> UIA_AutomationId:= <FresnelCheckBox> UIA_ClassName:= <WindowsForms10.BUTTON.app.0.32b818c_r12_ad1> UIA_Culture:= <0> UIA_IsControlElement:= <True> UIA_IsContentElement:= <True> UIA_IsPassword:= <False> UIA_NativeWindowHandle:= <71774> UIA_IsOffscreen:= <False> UIA_Orientation:= <0> UIA_FrameworkId:= <WinForm> UIA_IsRequiredForForm:= <False> UIA_IsDockPatternAvailable:= <False> UIA_IsExpandCollapsePatternAvailable:= <False> UIA_IsGridItemPatternAvailable:= <False> UIA_IsGridPatternAvailable:= <False> UIA_IsInvokePatternAvailable:= <True> UIA_IsMultipleViewPatternAvailable:= <False> UIA_IsRangeValuePatternAvailable:= <False> UIA_IsScrollPatternAvailable:= <False> UIA_IsScrollItemPatternAvailable:= <False> UIA_IsSelectionItemPatternAvailable:= <False> UIA_IsSelectionPatternAvailable:= <False> UIA_IsTablePatternAvailable:= <False> UIA_IsTableItemPatternAvailable:= <False> UIA_IsTextPatternAvailable:= <False> UIA_IsTogglePatternAvailable:= <True> UIA_IsTransformPatternAvailable:= <False> UIA_IsValuePatternAvailable:= <False> UIA_IsWindowPatternAvailable:= <False> UIA_ValueIsReadOnly:= <True> UIA_RangeValueValue:= <0> UIA_RangeValueIsReadOnly:= <True> UIA_RangeValueMinimum:= <0> UIA_RangeValueMaximum:= <0> UIA_RangeValueLargeChange:= <0> UIA_RangeValueSmallChange:= <0> UIA_ScrollHorizontalScrollPercent:= <0> UIA_ScrollHorizontalViewSize:= <100> UIA_ScrollVerticalScrollPercent:= <0> UIA_ScrollVerticalViewSize:= <100> UIA_ScrollHorizontallyScrollable:= <False> UIA_ScrollVerticallyScrollable:= <False> UIA_SelectionCanSelectMultiple:= <False> UIA_SelectionIsSelectionRequired:= <False> UIA_GridRowCount:= <0> UIA_GridColumnCount:= <0> UIA_GridItemRow:= <0> UIA_GridItemColumn:= <0> UIA_GridItemRowSpan:= <1> UIA_GridItemColumnSpan:= <1> UIA_DockDockPosition:= <5> UIA_ExpandCollapseExpandCollapseState:= <3> UIA_MultipleViewCurrentView:= <0> UIA_WindowCanMaximize:= <False> UIA_WindowCanMinimize:= <False> UIA_WindowWindowVisualState:= <0> UIA_WindowWindowInteractionState:= <0> UIA_WindowIsModal:= <False> UIA_WindowIsTopmost:= <False> UIA_SelectionItemIsSelected:= <False> UIA_TableRowOrColumnMajor:= <2> UIA_ToggleToggleState:= <1> UIA_TransformCanMove:= <False> UIA_TransformCanResize:= <False> UIA_TransformCanRotate:= <False> UIA_IsLegacyIAccessiblePatternAvailable:= <True> UIA_LegacyIAccessibleChildId:= <0> UIA_LegacyIAccessibleName:= <Fresnel:> UIA_LegacyIAccessibleRole:= <44> UIA_LegacyIAccessibleState:= <1048592> UIA_LegacyIAccessibleDefaultAction:= <Uncheck> UIA_IsDataValidForForm:= <False> UIA_ProviderDescription:= <[pid:9884,hwnd:0x1185E Main:Nested [pid:10116,hwnd:0x1185E Main(parent link):Microsoft: MSAA Proxy (unmanaged:UIAutomationCore.dll)]; Hwnd(parent link):Microsoft: HWND Proxy (unmanaged:uiautomationcore.dll)]> UIA_IsItemContainerPatternAvailable:= <False> UIA_IsVirtualizedItemPatternAvailable:= <False> UIA_IsSynchronizedInputPatternAvailable:= <False>
  22. Cisco Finesse UDF

    6/22/18 Updated All Headers to be even more detailed Functions are now Separated per API in the docs Added _FinesseGetCall - Gets call details, returned in XML currently Added _FinesseGetReason - Gets Reason assigned to an ID Added _FinesseGetUsers - Gets a list of All Users Added _FinesseGetWrapUpReason - Gets a specific WrapUp reason assigned to an ID Added _FinesseGetWrapUpReasonList - Gets available reasons for WrapUp that require it
  23. Good evening everyone First, I want to apologize with you for the title not very clear, but I thought a little bit on which title to set at the thread, and this is the one that came in mind. Now, let me explain what I'm trying to understand. I am making an application ( with n clients ), with an SQLite Database, which has a Main form, and n sub-forms... Since these sub-forms are called several times, because they are used to add or update records to the Database, I put the code that generates the GUI of these sub-forms in Functions. There are two sub-forms which are "treated" as two main forms, since even them have n sub-forms, which perform various tasks. Where am I stucked? For the Main form I created a Status Bar, in order to display messages ( add/delete/update/search results ), and it works perfectly with all the forms which don't have other sub-forms. For the two forms, which indeed have n sub-forms, I created two separated Status Bars, which are (re)created everytime I call the function that then displays the form. Practically, I can't set icons to these two Status Bars, and I don't know why. I'm really sorry that I don't feel clear enough, so, here you are an example of what I am saying. I recreated exactly what my script does: #include <GuiButton.au3> #include <GUIConstantsEx.au3> #include <GuiStatusBar.au3> #include <WindowsConstants.au3> Opt("GUIOnEventMode", 1) Global $frmSubForm, _ $txtSubFormField, _ $sbSubFormStatusBar, _ $objSB_IconError = _WinAPI_LoadShell32Icon(109), _ $objSB_IconInformation = _WinAPI_LoadShell32Icon(277) #Region ### START Koda GUI section ### Form= $frmMainForm = GUICreate("Main Form", 300, 300, -1, -1) GUISetOnEvent($GUI_EVENT_CLOSE, "ExitApplication") $sbMainStatusBar = _GUICtrlStatusBar_Create($frmMainForm) $btnCreateSubForm = GUICtrlCreateButton("Create Sub Form", 105, 110, 75, 41, BitOR($BS_CENTER,$BS_VCENTER,$BS_MULTILINE)) GUICtrlSetOnEvent(-1, "GenerateSubForm") GUICtrlSetFont(-1, 10, 400, 0, "Arial") _GUICtrlStatusBar_SetSimple($sbMainStatusBar) _GUICtrlStatusBar_SetText($sbMainStatusBar, "") GUISetState(@SW_SHOW, $frmMainForm) #EndRegion ### END Koda GUI section ### While 1 Sleep(100) WEnd Func ExitApplication() Exit EndFunc Func GenerateSubForm() #Region ### START Koda GUI section ### Form= $frmSubForm = GUICreate("Sub-Form", 300, 300, -1, -1, -1, -1, $frmMainForm) GUISetOnEvent($GUI_EVENT_CLOSE, "DeleteSubForm") $txtSubFormField = GUICtrlCreateInput("", 0, 0, 100, 20) $btnCheckSubFormField = GUICtrlCreateButton("Check Field", 105, 110, 75, 41, BitOR($BS_CENTER,$BS_VCENTER,$BS_MULTILINE)) GUICtrlSetOnEvent(-1, "CheckSubFormField") GUICtrlSetFont(-1, 10, 400, 0, "Arial") $sbSubFormStatusBar = _GUICtrlStatusBar_Create($frmSubForm) _GUICtrlStatusBar_SetSimple($sbSubFormStatusBar) _GUICtrlStatusBar_SetText($sbSubFormStatusBar, "") GUISetState(@SW_SHOW, $frmSubForm) GUISetState(@SW_DISABLE, $frmMainForm) #EndRegion ### END Koda GUI section ### EndFunc Func DeleteSubForm() ; Declared Globally => $frmSubForm GUIDelete($frmSubForm) GUISetState(@SW_ENABLE, $frmMainForm) EndFunc Func WriteToStatusBar($sbStatusBar, $objSB_Icon, $strText) _GUICtrlStatusBar_SetIcon($sbStatusBar, 0, $objSB_Icon) _GUICtrlStatusBar_SetText($sbStatusBar, $strText) ConsoleWrite("Icon Handle: " & $objSB_Icon & @CRLF) EndFunc Func CheckSubFormField() ; Declared Globally => $txtSubFormField If GUICtrlRead($txtSubFormField) = "" Then ; Declared Globally => $sbStatusBar WriteToStatusBar($sbSubFormStatusBar, $objSB_IconError, "Field NOK.") Else WriteToStatusBar($sbSubFormStatusBar, $objSB_IconInformation, "Field OK.") EndIf EndFunc The text is set, but icon is not. Could someone please tell me why? Thanks everyone in advance Best Regards.
  24. hello Hi dear, I have a question please I designed a function to read the content of the playlist I succeeded in that I have a problem For VLC player playlists If the path of the files in Arabic language the path is be as follows %D8%A3%D8%B0%D9%83%D8%A7%D8%B1%20%D9%88%D8%A3%D8%AF%D8%B9%D9%8A%D8%A9/%D8%A3%D8%B0%D9%83%D8%A7%D8%B1%20%D9%85%D9%86%D9%88%D8%B9%D8%A9/%D8%A3%D8%B0%D9%83%D8%A7%D8%B1%2003.mp3 I did not know how to decrypt this text to be readable This is the function that i used func M3UImport($M3UFile) dim $AM3UItems local $fileOpen = FileOpen($path, bitOr($FO_OVERWRITE,$FO_CREATEPATH,$FO_ANSI)) _FileReadToArray ($fileOpen, $AM3UItems) if @error then return setError(1) local $M3UPath for $i = 1 to $AM3UItems[0] $AM3UItems[$i] = stringReplace($AM3UItems[$i], "file:///", "") $AM3UItems[$i] = stringReplace($AM3UItems[$i], "/", "\") $AM3UItems[$i] = stringReplace($AM3UItems[$i], "%20", " ") $M3UPath = _fileGetDirPath($AM3UItems[$i]) if $M3UPath = "" then $M3UPath = @WorkingDir if not StringTrimRight($M3UPath, 1) = "\" then $M3UPath &= "\" $AM3UItems[$i] = $M3UPath & $AM3UItems[$i] endIf local $ext = _GetFileExt($AM3UItems[$i]) if fileExists($AM3UItems[$i]) and not (StringInStr($FilesExt, $ext) = 0) then $aListItems[0] += 1 GUICtrlCreateListViewItem(_GetFileName($AM3UItems[$i]) & Opt("GUIDataSeparatorChar") & " : " & Opt("GUIDataSeparatorChar") & $AM3UItems[$i], $list) endIf next return "" endFunc I ask for your help in this work with my Greetings and thanks in advance
  25. Check FAQ31 and check with simplespy what you get back. With IUIAutomation you should be able to get state of your checkbox
  26. @AutoBert, I was looking for an answer along the way of using-file-attribute-temporary-and-file-flag-delete-on-close . @Deye, I was also looking for the above mentioned approach, but if nothing else, I could use the WinHttp.au3 functions. Edit: I'm looking for an example using _WinAPI_CreateFileEx for this =) from https://blogs.msdn.microsoft.com/larryosterman/2004/04/19/its-only-temporary/ NT has a whole lot of really cool features that aren’t always obvious without REALLY looking closely at the documentation. One of my favorite is what I call “temporary” temporary files. A “temporary” temporary file is one whose storage is never written to disk (in the absence of memory pressure). It behaves just like a file does (because it’s a file) but the cache manager disables the lazy writer on the file, and the filesystem knows to never commit the pages containing the file’s metadata to disk. To create a “temporary” file, you call CreateFile specifying FILE_ATTRIBUTE_TEMPORARY | FILE_FLAG_DELETE_ON_CLOSE in the dwFlagsAndAttributes attribute. This combination of bits acts as a hint to the filesystem that the file data should never be flushed to disk. In other words, such a file can be created, written to, and read from without the system ever touching the disk.
  1. Load more activity
×