Leaderboard
Popular Content
Showing content with the highest reputation on 06/27/2018 in all areas
-
Escape to stop Script
krasnoshtan reacted to Robbinski12 for a topic
Hello all, I was just about to post a question about this when I found a workaround. See, this was my problem. I had a nice script, but pressing escape made it exit. My solution? HotKeySet("{ESCAPE}", "escapeFunction") Func escapeFunction() EndFunc I know it's not a perfect solution, but I wanted to share it anyway. If anyone's got a better idea, I'd love to hear it. Robin1 point -
PidGenX UDF and example PidChecker
coffeeturtle reacted to Krakatoa for a topic
PidGenX UDF PidGenX.au3 ; =========================================================================== ; Title: PidGenX ; AutoIt Version: 3.3.14.5 ; Author: Krakatoa ; Description: Windows and Office Pid Checker ; Parameters: ; $ProductKey Product Key ; $PKeyPath xrm-ms file path ; Return Value: ; Success: array ; [0] = ProductID ; [1] = ExtendedPID ; [2] = ActivationID ; [3] = EditionType ; [4] = EditionID ; [5] = KeyType ; [6] = EULA ; Failure: ; 1 - Error in DllStructCreate ; 2 - Error in DllCall ; 3 - Invalid Arguments ; 4 - Invalid Key ; 5 - File xrm.ms not found ; 6 - Invalid Input ; =========================================================================== Global Const $PIDGENX_PRODUCTID = 0 Global Const $PIDGENX_EXTENDEDPID = 1 Global Const $PIDGENX_ACTIVATIONID = 2 Global Const $PIDGENX_EDITIONTYPE = 3 Global Const $PIDGENX_EDITIONID = 4 Global Const $PIDGENX_KEYTYPE = 5 Global Const $PIDGENX_EULA = 6 Func _PidGenX ($ProductKey, $PKeyPath) $PID = DllStructCreate("byte[50]") If @error Then Return SetError(1, 1, "Error in DllStructCreate") DllStructSetData($PID, 1, 50, 1) $DPID = DllStructCreate("byte[164]") If @error Then Return SetError(1, 2, "Error in DllStructCreate") DllStructSetData($DPID, 1, 164, 1) $DPID4 = DllStructCreate("byte[1272]") If @error Then Return SetError(1, 3, "Error in DllStructCreate") DllStructSetData($DPID4, 1, 248, 1) DllStructSetData($DPID4, 1, 4, 2) $result = DllCall("PidGenX.dll", "int", "PidGenX", _ "wstr", $ProductKey, _ "wstr", $PKeyPath, _ "wstr", "00000", _ "int", 0, _ "INT_PTR", DllStructGetPtr($PID), _ "INT_PTR", DllStructGetPtr($DPID), _ "INT_PTR", DllStructGetPtr($DPID4)) If @error Then Return SetError(2, 0, "Error in DllCall") If $result[0] = 0 Then Local $PidGenX[7] $PidGenX[0] = StringStripWS(BinaryToString(DllStructGetData($PID, 1), 2),15) $dpid4Result = DllStructGetData($DPID4, 1) $PidGenX[1] = StringStripWS(BinaryToString(BinaryMid($dpid4Result, 9, 128), 2),15) $PidGenX[2] = StringStripWS(BinaryToString(BinaryMid($dpid4Result, 137, 128), 2),15) $PidGenX[3] = StringStripWS(BinaryToString(BinaryMid($dpid4Result, 281, 512), 2),15) $PidGenX[4] = StringStripWS(BinaryToString(BinaryMid($dpid4Result, 889, 128), 2),15) $PidGenX[5] = StringStripWS(BinaryToString(BinaryMid($dpid4Result, 1017, 128), 2),15) $PidGenX[6] = StringStripWS(BinaryToString(BinaryMid($dpid4Result, 1145, 128), 2),15) Return $PidGenX Else If($result[0] == -2147024809) Then Return SetError(3, 0, "Invalid Arguments") ElseIf($result[0] == -1979645695) Then Return SetError(4, 0, "Invalid Key") ElseIf($result[0] == -2147024894) Then Return SetError(5, 0, "File xrm.ms not found") Else Return SetError(6, 0, "Invalid Input") EndIf EndIf EndFunc Example PidChecker PidChecker.au3 #include "PidGenX.au3" Opt("TrayIconHide", 1) $hGUI = GUICreate("PidChecker", 540, 340) GUICtrlCreateGroup("xrm-ms file path", 10, 10, 420, 55) $idComboBox = GUICtrlCreateCombo("C:\Windows\System32\spp\tokens\pkeyconfig\pkeyconfig.xrm-ms", 20, 30, 400, 20) GUICtrlSetData($idComboBox, _ "C:\Windows\System32\spp\tokens\pkeyconfig\pkeyconfig-downlevel.xrm-ms" & _ "|" & "C:\Windows\System32\spp\tokens\pkeyconfig\pkeyconfig-csvlk.xrm-ms" & _ "|" & @ScriptDir & "\xrm-ms\win81_pkeyconfig.xrm-ms" & _ "|" & @ScriptDir & "\xrm-ms\win7_pkeyconfig.xrm-ms" & _ "|C:\Program Files\Microsoft Office\root\Office16\pkeyconfig-office.xrm-ms" & _ "|C:\Program Files\Microsoft Office\root\Office15\pkeyconfig-office.xrm-ms") GUICtrlCreateGroup("", -99, -99, 1, 1) GUICtrlCreateGroup("Product Key", 10, 75, 420, 55) $Input = GUICtrlCreateInput("", 20, 95, 260, 20) $idCheck = GUICtrlCreateButton("CHECK", 320, 90, 85, 30) GUICtrlCreateGroup("", -99, -99, 1, 1) GUICtrlCreateGroup("Output Data", 10, 140, 520, 185) $info = GUICtrlCreateEdit( "", 20, 160, 500, 150, 2048) GUICtrlSetFont($info, 9, 0, 0, "Consolas") GUICtrlCreateGroup("", -99, -99, 1, 1) GUISetState(@SW_SHOW, $hGUI) While 1 Switch GUIGetMsg() Case -3 ExitLoop Case $idCheck $aPidGenX = _PidGenX (GUICtrlRead($Input), GUICtrlRead($idComboBox)) If @error Then $Output = _ "Product Key: " & GUICtrlRead($Input) & @CRLF & _ "Error: " & $aPidGenX GUICtrlSetData($info, $Output) Else $Output = _ "Product Key: " & GUICtrlRead($Input) & @CRLF & _ "Key Status: " & "Valid" & @CRLF & _ "Product ID: " & $aPidGenX[$PIDGENX_PRODUCTID] & @CRLF & _ "Extended PID: " & $aPidGenX[$PIDGENX_EXTENDEDPID] & @CRLF & _ "Activation ID: " & $aPidGenX[$PIDGENX_ACTIVATIONID] & @CRLF & _ "Edition Type: " & $aPidGenX[$PIDGENX_EDITIONTYPE] & @CRLF & _ "Edition ID: " & $aPidGenX[$PIDGENX_EDITIONID] & @CRLF & _ "Key Type: " & $aPidGenX[$PIDGENX_KEYTYPE] & @CRLF & _ "EULA: " & $aPidGenX[$PIDGENX_EULA] GUICtrlSetData($info, $Output) GUICtrlSetState ($info, 256) EndIf EndSwitch WEnd GUIDelete($hGUI) Info for example PidChecker: Windows 10 installed (C:\Windows\System32\spp\tokens\pkeyconfig\pkeyconfig.xrm-ms = Windows 10 xrm-ms file) Office 2016/2019 installed (C:\Program Files\Microsoft Office\root\Office16\pkeyconfig-office.xrm-ms = Office 2016/2019 xrm-ms file) Office 2016/2019 installed (C:\Program Files\Microsoft Office\root\Office15\pkeyconfig-office.xrm-ms = Office 2013 xrm-ms file) "\xrm-ms\win81_pkeyconfig.xrm-ms" from Windows 8.1 iso "\xrm-ms\win7_pkeyconfig.xrm-ms" from Windows 7 iso Screen:1 point -
there is probably a better solution depending on the exact details of your environment, but here's a quick and dirty one - replace your FileOpen() call with this _FileOpenRetry(): Func _FileOpenRetry($sFile, $iFlag = 0, $iTimeout = 0) Local $hFile = -1, $iError = 0, $iExtended = 0 Local $hTimer = TimerInit() Do $hFile = FileOpen($sFile, $iFlag) $iError = @error $iExtended = @extended Until $hFile <> -1 Or TimerDiff($hTimer) > $iTimeout Return SetError($iError, $iExtended, $hFile) EndFunc ;==>_FileOpenRetry1 point
-
ControlClick not working
FrancescoDiMuro reacted to Jos for a topic
Ah, one of those: I am not going to share all info but still need help? Have you tried the exact information returned by au3info in both the Title and the Control field? Other than that you are on your own here.. Jos1 point -
[Edited] Question about Windows Message(s) management
FrancescoDiMuro reacted to Melba23 for a topic
FrancescoDiMuro, AutoIt can only have a single handler for a given message within the same script - if you have more than one GUIRegisterMsg call only the function mentioned in the last one actually gets called. So you have no choice but to use a single handler. Normally the message itself gives you enough information (window handle, control handle/CID, etc) to allow you to determine from whence it came. M231 point -
Alternatively, if you look at the TN320 Admin Guide: http://www.sdisw.com/tn3270/manual/index.html it tells you how to pre-configure one system and then just copy those configuration settings to each user, for the license, look at the section "Moving the License Code File" which tells you the path where the license file is located, since it's a global path you would only have to do this once, during the installation i.e. add the tn3270.ini file to an MST while deploying or use a script to copy the file to @CommonAppData\SDI\TN3270 Plus. Alot cleaner than using send functions.1 point
-
Absolute Newbie - nothing happens?
Conine reacted to JLogan3o13 for a topic
@Conine WinWait and WinWaitActive both have a timeout parameter. Rather than a blanket sleep which is then going to continue the script, best practice would be to wait for the window to become active (specifying how long you with to wait), and then based on the return (0 if timeout occurs) put in logic as to how to handle this.1 point -
Add the following line at the top, run the script and hover over it systemtray icon to get information which line is waiting: Opt("TrayIconDebug", 1) ;0=no info, 1=debug line info Jos1 point
-
This works for me. #include <IE.au3> #include <Array.au3> Local $oIE = _IECreate("http://www.google.com") _IELoadWait($oIE) ;Wait for the IE object to finish loading. $oHWND = _IEPropertyGet($oIE, "hwnd") ;Return the selected IE object property selected: "hwnd". WinMove($oHWND, "", 0, 0) ;Move the IE handle returned by IEPropertyGet to x0, y0 coordinate. _SetMaximize() ;Maximize the screen if it is not. _IELinkGetCollection($oIE) Local $oLinks = _IELinkGetCollection($oIE) Local $iNumLinks = @extended Local $sTxt = $iNumLinks & " links found" & @CRLF & @CRLF Local $aLinks[0] For $oLink in $oLinks _ArrayAdd($aLinks,$oLink.href) Next _ArrayDisplay($aLinks,$sTxt) Func _SetMaximize() $WinState = WinGetState($oHWND) ;Get the state of the IE object. If $WinState <> @SW_MAXIMIZE Then ;If the windows state is not maximize then WinSetState($oHWND, "", @SW_MAXIMIZE) ;set the state to maximize. Else ;otherwise Sleep(10) EndIf EndFunc ;==>_SetMax Saludos1 point
-
Windows Desktop Applications Automation using AutoIt
r0ash reacted to JLogan3o13 for a topic
As you can see, @r0ash, when you start a post by touting your way as "professional" over others' "amateur" programming, it helps to be sure what you're doing. As pointed out there are some holes in your logic, which is why we prefer users to refer to the Best Preactices, as agreed on by the community, on the wiki.1 point -
Directory Tree List
coffeeturtle reacted to Danyfirex for a topic
Hello guys yestarday I was needing to print a Directory Tree Scheme But I don't like windows command Tree symbols so I just did this small function that allow me to extend the symbols. It's not optimized. Code: #include <File.au3> #include <Array.au3> #include <String.au3> Local $aSymbols[][] = [['\', '|', '-'] _ , ['⚽', '│', '─'] _ , ['⬮', '⁞', '.'] _ , ['⬯', '︴', '~'] _ , ['■', '║', '═'] _ , ['├', '│', '─'] _ , ['╞', '│', '─'] _ , ['┠', '┋', '─'] _ , ['〻', '︱', '─'] _ , ['★', '│', '─'] _ , ['♦', '│', '─'] _ , ['☑', '│', '─']] ;~ _ArrayDisplay($aSymbols) Local $sDirectoryPath = @ScriptDir & "\TestTree" Local $sTree = "" Local $sFileName = "" For $i = 0 To UBound($aSymbols) - 1 $sTree = _CreateDirTree($sDirectoryPath,$aSymbols[$i][0],$aSymbols[$i][1],$aSymbols[$i][2]) $sFileName = @ScriptDir & "\TreeScheme-" & String($i + 1) & ".txt" FileDelete($sFileName) FileWrite($sFileName, $sTree) ConsoleWrite($sTree & @CRLF) Next ;Danyfirex - 18/06/2018 Func _CreateDirTree($sDirectoryPath, $sFolderBar = "\", $sTreeBar = "|", $sSeparator = "-", $iNSeparator = 3) Local $aFiles = _FileListToArrayRec($sDirectoryPath, "*", $FLTAR_FILESFOLDERS, $FLTAR_RECUR, $FLTAR_SORT) Local $sFilePath = "" Local $sAttrib = "" Local $sFolderName = "" Local $sIndentation = "" Local $sRelativePath = "" Local $sFinalTree = "" If $aFiles[0] Then Local $sNode = $aFiles[1] For $i = 1 To $aFiles[0] $sRelativePath = $aFiles[$i] $sFilePath = $sDirectoryPath & "\" & $sRelativePath $sAttrib = FileGetAttrib($sFilePath) If StringInStr($sAttrib, "D") Then $sFolderName = _GetFolderName($sFilePath) $sIndentation = _GenerateIndentNodes($sDirectoryPath, $sRelativePath, $sFolderBar, $sTreeBar, $sSeparator) ;~ ConsoleWrite($sIndentation & $sFolderName & @CRLF) $sFinalTree &= $sIndentation & $sFolderName & @CRLF Else $sFolderName = _GetFileName($sFilePath) $sIndentation = _GenerateIndentNodes($sDirectoryPath, $sRelativePath, $sFolderBar, $sTreeBar, $sSeparator) ;~ ConsoleWrite($sIndentation & $sFolderName & @CRLF) $sFinalTree &= $sIndentation & $sFolderName & @CRLF EndIf Next EndIf Return $sFinalTree EndFunc ;==>_CreateDirTree Func _CheckFolderMore2Files($sDirectoryPath) Local $iRet = 0 Local $hSearch = FileFindFirstFile($sDirectoryPath & "\" & "*.*") If $hSearch = -1 Then Return $iRet EndIf Local $sFileName = "" Local $iCount = 0 While 1 $sFileName = FileFindNextFile($hSearch) If @error Then ExitLoop EndIf $iCount += 1 If $iCount > 1 Then $iRet = $iCount ExitLoop EndIf WEnd FileClose($hSearch) Return $iCount EndFunc ;==>_CheckFolderMore2Files Func _GenerateIndentNodes($sDirectoryPath, $sFolderRelativePath, $sFolderBar, $sTreeBar, $sSeparator, $iNSeparator = 3) Local $aSplit = StringSplit($sFolderRelativePath, "\") If $aSplit[0] > 1 Then Local $sBars = "" Local $iFiles = "" Local $sFilePath = "" For $i = 1 To $aSplit[0] - 1 $sFilePath = _ArrayToString($aSplit, "\", 1, $i) $iFiles = _CheckFolderMore2Files($sDirectoryPath & "\" & $sFilePath) If @error Then ContinueLoop EndIf If $iFiles > 1 Or $aSplit[0] - 1 = $i Then $sBars &= ($i = $aSplit[0] - 1) ? $sFolderBar & _StringRepeat($sSeparator, $iNSeparator) : $sTreeBar & _StringRepeat(" ", $iNSeparator) Else $sBars &= " " & _StringRepeat(" ", $iNSeparator) EndIf Next Return $sBars EndIf Return "" EndFunc ;==>_GenerateIndentNodes Func _GetFileName($sFullPath) Local $aSplit = StringSplit($sFullPath, "\") If $aSplit[0] Then Return $aSplit[$aSplit[0]] EndIf EndFunc ;==>_GetFileName Func _GetFolderName($sFullPath) Local $aSplit = StringSplit($sFullPath, "\") If $aSplit[0] Then Return $aSplit[$aSplit[0]] EndIf EndFunc ;==>_GetFolderName Some Outputs: Customers \---Daniel Rivero | \---CustomerInformation.txt | \---BankChromeAutomation | | \---1.0.0.0 | | \---bin | | | \---x64 | | | | \---BankChromeAutomation.exe | | | \---x86 | | | | \---BankChromeAutomation.exe | | | | \---readme.txt | | \---build | | | \---Linux | | | \---Mac | | | \---Windows | | \---examples | | | \---Example-1 | | | \---Example-2 | | \---include | | \---libs | | | \---AutoIt.dll | | \---resources | | | \---Folder.ico | | \---source | | | \---Source.au3 | | \---tests | | | \---Test-1.au3 | | | \---Test-2.au3 | | \---tools | | | \---sometools.txt | \---DownloadInvoices | | \---ProjectInformation.txt | | \---database | \---ScrapperGoogle | | \---ProjectInformation.txt | | \---html \---Neil Diamond | \---AudioDownloader | | \---1.0.0.0 | | | \---bin | | | | \---x64 | | | | | \---BankChromeAutomation.exe | | | | \---x86 | | | | | \---BankChromeAutomation.exe | | | | | \---readme.txt | | | \---build | | | | \---Linux | | | | \---Mac | | | | \---Windows | | | \---examples | | | | \---Example-1 | | | | \---Example-2 | | | \---include | | | \---libs | | | | \---AutoIt.dll | | | \---resources | | | | \---Folder.ico | | | \---source | | | | \---Source.au3 | | | \---tests | | | | \---Test-1.au3 | | | | \---Test-2.au3 | | | \---tools | | | | \---sometools.txt | | \---1.0.0.1 | | | \---bin | | | | \---x64 | | | | \---x86 | | | | | \---readme.txt | | | \---build | | | | \---Linux | | | | \---Mac | | | | \---Windows | | | \---examples | | | | \---Example-1 | | | | \---Example-2 | | | \---include | | | \---libs | | | | \---AutoIt.dll | | | \---resources | | | | \---Folder.ico | | | \---source | | | | \---Source.au3 | | | \---tests | | | | \---Test-1.au3 | | | | \---Test-2.au3 | | | \---tools | | | | \---sometools.txt | \---TagsWriter | | \---ProjectInformation.txt | | \---database Personal \---CreateFolderTree \---DialogAutomate \---WebDriver Customers ■═══Daniel Rivero ║ ■═══CustomerInformation.txt ║ ■═══BankChromeAutomation ║ ║ ■═══1.0.0.0 ║ ║ ■═══bin ║ ║ ║ ■═══x64 ║ ║ ║ ║ ■═══BankChromeAutomation.exe ║ ║ ║ ■═══x86 ║ ║ ║ ║ ■═══BankChromeAutomation.exe ║ ║ ║ ║ ■═══readme.txt ║ ║ ■═══build ║ ║ ║ ■═══Linux ║ ║ ║ ■═══Mac ║ ║ ║ ■═══Windows ║ ║ ■═══examples ║ ║ ║ ■═══Example-1 ║ ║ ║ ■═══Example-2 ║ ║ ■═══include ║ ║ ■═══libs ║ ║ ║ ■═══AutoIt.dll ║ ║ ■═══resources ║ ║ ║ ■═══Folder.ico ║ ║ ■═══source ║ ║ ║ ■═══Source.au3 ║ ║ ■═══tests ║ ║ ║ ■═══Test-1.au3 ║ ║ ║ ■═══Test-2.au3 ║ ║ ■═══tools ║ ║ ║ ■═══sometools.txt ║ ■═══DownloadInvoices ║ ║ ■═══ProjectInformation.txt ║ ║ ■═══database ║ ■═══ScrapperGoogle ║ ║ ■═══ProjectInformation.txt ║ ║ ■═══html ■═══Neil Diamond ║ ■═══AudioDownloader ║ ║ ■═══1.0.0.0 ║ ║ ║ ■═══bin ║ ║ ║ ║ ■═══x64 ║ ║ ║ ║ ║ ■═══BankChromeAutomation.exe ║ ║ ║ ║ ■═══x86 ║ ║ ║ ║ ║ ■═══BankChromeAutomation.exe ║ ║ ║ ║ ║ ■═══readme.txt ║ ║ ║ ■═══build ║ ║ ║ ║ ■═══Linux ║ ║ ║ ║ ■═══Mac ║ ║ ║ ║ ■═══Windows ║ ║ ║ ■═══examples ║ ║ ║ ║ ■═══Example-1 ║ ║ ║ ║ ■═══Example-2 ║ ║ ║ ■═══include ║ ║ ║ ■═══libs ║ ║ ║ ║ ■═══AutoIt.dll ║ ║ ║ ■═══resources ║ ║ ║ ║ ■═══Folder.ico ║ ║ ║ ■═══source ║ ║ ║ ║ ■═══Source.au3 ║ ║ ║ ■═══tests ║ ║ ║ ║ ■═══Test-1.au3 ║ ║ ║ ║ ■═══Test-2.au3 ║ ║ ║ ■═══tools ║ ║ ║ ║ ■═══sometools.txt ║ ║ ■═══1.0.0.1 ║ ║ ║ ■═══bin ║ ║ ║ ║ ■═══x64 ║ ║ ║ ║ ■═══x86 ║ ║ ║ ║ ║ ■═══readme.txt ║ ║ ║ ■═══build ║ ║ ║ ║ ■═══Linux ║ ║ ║ ║ ■═══Mac ║ ║ ║ ║ ■═══Windows ║ ║ ║ ■═══examples ║ ║ ║ ║ ■═══Example-1 ║ ║ ║ ║ ■═══Example-2 ║ ║ ║ ■═══include ║ ║ ║ ■═══libs ║ ║ ║ ║ ■═══AutoIt.dll ║ ║ ║ ■═══resources ║ ║ ║ ║ ■═══Folder.ico ║ ║ ║ ■═══source ║ ║ ║ ║ ■═══Source.au3 ║ ║ ║ ■═══tests ║ ║ ║ ║ ■═══Test-1.au3 ║ ║ ║ ║ ■═══Test-2.au3 ║ ║ ║ ■═══tools ║ ║ ║ ║ ■═══sometools.txt ║ ■═══TagsWriter ║ ║ ■═══ProjectInformation.txt ║ ║ ■═══database Personal ■═══CreateFolderTree ■═══DialogAutomate ■═══WebDriver Customers ├───Daniel Rivero │ ├───CustomerInformation.txt │ ├───BankChromeAutomation │ │ ├───1.0.0.0 │ │ ├───bin │ │ │ ├───x64 │ │ │ │ ├───BankChromeAutomation.exe │ │ │ ├───x86 │ │ │ │ ├───BankChromeAutomation.exe │ │ │ │ ├───readme.txt │ │ ├───build │ │ │ ├───Linux │ │ │ ├───Mac │ │ │ ├───Windows │ │ ├───examples │ │ │ ├───Example-1 │ │ │ ├───Example-2 │ │ ├───include │ │ ├───libs │ │ │ ├───AutoIt.dll │ │ ├───resources │ │ │ ├───Folder.ico │ │ ├───source │ │ │ ├───Source.au3 │ │ ├───tests │ │ │ ├───Test-1.au3 │ │ │ ├───Test-2.au3 │ │ ├───tools │ │ │ ├───sometools.txt │ ├───DownloadInvoices │ │ ├───ProjectInformation.txt │ │ ├───database │ ├───ScrapperGoogle │ │ ├───ProjectInformation.txt │ │ ├───html ├───Neil Diamond │ ├───AudioDownloader │ │ ├───1.0.0.0 │ │ │ ├───bin │ │ │ │ ├───x64 │ │ │ │ │ ├───BankChromeAutomation.exe │ │ │ │ ├───x86 │ │ │ │ │ ├───BankChromeAutomation.exe │ │ │ │ │ ├───readme.txt │ │ │ ├───build │ │ │ │ ├───Linux │ │ │ │ ├───Mac │ │ │ │ ├───Windows │ │ │ ├───examples │ │ │ │ ├───Example-1 │ │ │ │ ├───Example-2 │ │ │ ├───include │ │ │ ├───libs │ │ │ │ ├───AutoIt.dll │ │ │ ├───resources │ │ │ │ ├───Folder.ico │ │ │ ├───source │ │ │ │ ├───Source.au3 │ │ │ ├───tests │ │ │ │ ├───Test-1.au3 │ │ │ │ ├───Test-2.au3 │ │ │ ├───tools │ │ │ │ ├───sometools.txt │ │ ├───1.0.0.1 │ │ │ ├───bin │ │ │ │ ├───x64 │ │ │ │ ├───x86 │ │ │ │ │ ├───readme.txt │ │ │ ├───build │ │ │ │ ├───Linux │ │ │ │ ├───Mac │ │ │ │ ├───Windows │ │ │ ├───examples │ │ │ │ ├───Example-1 │ │ │ │ ├───Example-2 │ │ │ ├───include │ │ │ ├───libs │ │ │ │ ├───AutoIt.dll │ │ │ ├───resources │ │ │ │ ├───Folder.ico │ │ │ ├───source │ │ │ │ ├───Source.au3 │ │ │ ├───tests │ │ │ │ ├───Test-1.au3 │ │ │ │ ├───Test-2.au3 │ │ │ ├───tools │ │ │ │ ├───sometools.txt │ ├───TagsWriter │ │ ├───ProjectInformation.txt │ │ ├───database Personal ├───CreateFolderTree ├───DialogAutomate ├───WebDriver Customers ╞───Daniel Rivero │ ╞───CustomerInformation.txt │ ╞───BankChromeAutomation │ │ ╞───1.0.0.0 │ │ ╞───bin │ │ │ ╞───x64 │ │ │ │ ╞───BankChromeAutomation.exe │ │ │ ╞───x86 │ │ │ │ ╞───BankChromeAutomation.exe │ │ │ │ ╞───readme.txt │ │ ╞───build │ │ │ ╞───Linux │ │ │ ╞───Mac │ │ │ ╞───Windows │ │ ╞───examples │ │ │ ╞───Example-1 │ │ │ ╞───Example-2 │ │ ╞───include │ │ ╞───libs │ │ │ ╞───AutoIt.dll │ │ ╞───resources │ │ │ ╞───Folder.ico │ │ ╞───source │ │ │ ╞───Source.au3 │ │ ╞───tests │ │ │ ╞───Test-1.au3 │ │ │ ╞───Test-2.au3 │ │ ╞───tools │ │ │ ╞───sometools.txt │ ╞───DownloadInvoices │ │ ╞───ProjectInformation.txt │ │ ╞───database │ ╞───ScrapperGoogle │ │ ╞───ProjectInformation.txt │ │ ╞───html ╞───Neil Diamond │ ╞───AudioDownloader │ │ ╞───1.0.0.0 │ │ │ ╞───bin │ │ │ │ ╞───x64 │ │ │ │ │ ╞───BankChromeAutomation.exe │ │ │ │ ╞───x86 │ │ │ │ │ ╞───BankChromeAutomation.exe │ │ │ │ │ ╞───readme.txt │ │ │ ╞───build │ │ │ │ ╞───Linux │ │ │ │ ╞───Mac │ │ │ │ ╞───Windows │ │ │ ╞───examples │ │ │ │ ╞───Example-1 │ │ │ │ ╞───Example-2 │ │ │ ╞───include │ │ │ ╞───libs │ │ │ │ ╞───AutoIt.dll │ │ │ ╞───resources │ │ │ │ ╞───Folder.ico │ │ │ ╞───source │ │ │ │ ╞───Source.au3 │ │ │ ╞───tests │ │ │ │ ╞───Test-1.au3 │ │ │ │ ╞───Test-2.au3 │ │ │ ╞───tools │ │ │ │ ╞───sometools.txt │ │ ╞───1.0.0.1 │ │ │ ╞───bin │ │ │ │ ╞───x64 │ │ │ │ ╞───x86 │ │ │ │ │ ╞───readme.txt │ │ │ ╞───build │ │ │ │ ╞───Linux │ │ │ │ ╞───Mac │ │ │ │ ╞───Windows │ │ │ ╞───examples │ │ │ │ ╞───Example-1 │ │ │ │ ╞───Example-2 │ │ │ ╞───include │ │ │ ╞───libs │ │ │ │ ╞───AutoIt.dll │ │ │ ╞───resources │ │ │ │ ╞───Folder.ico │ │ │ ╞───source │ │ │ │ ╞───Source.au3 │ │ │ ╞───tests │ │ │ │ ╞───Test-1.au3 │ │ │ │ ╞───Test-2.au3 │ │ │ ╞───tools │ │ │ │ ╞───sometools.txt │ ╞───TagsWriter │ │ ╞───ProjectInformation.txt │ │ ╞───database Personal ╞───CreateFolderTree ╞───DialogAutomate ╞───WebDriver Customers ♦───Daniel Rivero │ ♦───CustomerInformation.txt │ ♦───BankChromeAutomation │ │ ♦───1.0.0.0 │ │ ♦───bin │ │ │ ♦───x64 │ │ │ │ ♦───BankChromeAutomation.exe │ │ │ ♦───x86 │ │ │ │ ♦───BankChromeAutomation.exe │ │ │ │ ♦───readme.txt │ │ ♦───build │ │ │ ♦───Linux │ │ │ ♦───Mac │ │ │ ♦───Windows │ │ ♦───examples │ │ │ ♦───Example-1 │ │ │ ♦───Example-2 │ │ ♦───include │ │ ♦───libs │ │ │ ♦───AutoIt.dll │ │ ♦───resources │ │ │ ♦───Folder.ico │ │ ♦───source │ │ │ ♦───Source.au3 │ │ ♦───tests │ │ │ ♦───Test-1.au3 │ │ │ ♦───Test-2.au3 │ │ ♦───tools │ │ │ ♦───sometools.txt │ ♦───DownloadInvoices │ │ ♦───ProjectInformation.txt │ │ ♦───database │ ♦───ScrapperGoogle │ │ ♦───ProjectInformation.txt │ │ ♦───html ♦───Neil Diamond │ ♦───AudioDownloader │ │ ♦───1.0.0.0 │ │ │ ♦───bin │ │ │ │ ♦───x64 │ │ │ │ │ ♦───BankChromeAutomation.exe │ │ │ │ ♦───x86 │ │ │ │ │ ♦───BankChromeAutomation.exe │ │ │ │ │ ♦───readme.txt │ │ │ ♦───build │ │ │ │ ♦───Linux │ │ │ │ ♦───Mac │ │ │ │ ♦───Windows │ │ │ ♦───examples │ │ │ │ ♦───Example-1 │ │ │ │ ♦───Example-2 │ │ │ ♦───include │ │ │ ♦───libs │ │ │ │ ♦───AutoIt.dll │ │ │ ♦───resources │ │ │ │ ♦───Folder.ico │ │ │ ♦───source │ │ │ │ ♦───Source.au3 │ │ │ ♦───tests │ │ │ │ ♦───Test-1.au3 │ │ │ │ ♦───Test-2.au3 │ │ │ ♦───tools │ │ │ │ ♦───sometools.txt │ │ ♦───1.0.0.1 │ │ │ ♦───bin │ │ │ │ ♦───x64 │ │ │ │ ♦───x86 │ │ │ │ │ ♦───readme.txt │ │ │ ♦───build │ │ │ │ ♦───Linux │ │ │ │ ♦───Mac │ │ │ │ ♦───Windows │ │ │ ♦───examples │ │ │ │ ♦───Example-1 │ │ │ │ ♦───Example-2 │ │ │ ♦───include │ │ │ ♦───libs │ │ │ │ ♦───AutoIt.dll │ │ │ ♦───resources │ │ │ │ ♦───Folder.ico │ │ │ ♦───source │ │ │ │ ♦───Source.au3 │ │ │ ♦───tests │ │ │ │ ♦───Test-1.au3 │ │ │ │ ♦───Test-2.au3 │ │ │ ♦───tools │ │ │ │ ♦───sometools.txt │ ♦───TagsWriter │ │ ♦───ProjectInformation.txt │ │ ♦───database Personal ♦───CreateFolderTree ♦───DialogAutomate ♦───WebDriver Customers ☑───Daniel Rivero │ ☑───CustomerInformation.txt │ ☑───BankChromeAutomation │ │ ☑───1.0.0.0 │ │ ☑───bin │ │ │ ☑───x64 │ │ │ │ ☑───BankChromeAutomation.exe │ │ │ ☑───x86 │ │ │ │ ☑───BankChromeAutomation.exe │ │ │ │ ☑───readme.txt │ │ ☑───build │ │ │ ☑───Linux │ │ │ ☑───Mac │ │ │ ☑───Windows │ │ ☑───examples │ │ │ ☑───Example-1 │ │ │ ☑───Example-2 │ │ ☑───include │ │ ☑───libs │ │ │ ☑───AutoIt.dll │ │ ☑───resources │ │ │ ☑───Folder.ico │ │ ☑───source │ │ │ ☑───Source.au3 │ │ ☑───tests │ │ │ ☑───Test-1.au3 │ │ │ ☑───Test-2.au3 │ │ ☑───tools │ │ │ ☑───sometools.txt │ ☑───DownloadInvoices │ │ ☑───ProjectInformation.txt │ │ ☑───database │ ☑───ScrapperGoogle │ │ ☑───ProjectInformation.txt │ │ ☑───html ☑───Neil Diamond │ ☑───AudioDownloader │ │ ☑───1.0.0.0 │ │ │ ☑───bin │ │ │ │ ☑───x64 │ │ │ │ │ ☑───BankChromeAutomation.exe │ │ │ │ ☑───x86 │ │ │ │ │ ☑───BankChromeAutomation.exe │ │ │ │ │ ☑───readme.txt │ │ │ ☑───build │ │ │ │ ☑───Linux │ │ │ │ ☑───Mac │ │ │ │ ☑───Windows │ │ │ ☑───examples │ │ │ │ ☑───Example-1 │ │ │ │ ☑───Example-2 │ │ │ ☑───include │ │ │ ☑───libs │ │ │ │ ☑───AutoIt.dll │ │ │ ☑───resources │ │ │ │ ☑───Folder.ico │ │ │ ☑───source │ │ │ │ ☑───Source.au3 │ │ │ ☑───tests │ │ │ │ ☑───Test-1.au3 │ │ │ │ ☑───Test-2.au3 │ │ │ ☑───tools │ │ │ │ ☑───sometools.txt │ │ ☑───1.0.0.1 │ │ │ ☑───bin │ │ │ │ ☑───x64 │ │ │ │ ☑───x86 │ │ │ │ │ ☑───readme.txt │ │ │ ☑───build │ │ │ │ ☑───Linux │ │ │ │ ☑───Mac │ │ │ │ ☑───Windows │ │ │ ☑───examples │ │ │ │ ☑───Example-1 │ │ │ │ ☑───Example-2 │ │ │ ☑───include │ │ │ ☑───libs │ │ │ │ ☑───AutoIt.dll │ │ │ ☑───resources │ │ │ │ ☑───Folder.ico │ │ │ ☑───source │ │ │ │ ☑───Source.au3 │ │ │ ☑───tests │ │ │ │ ☑───Test-1.au3 │ │ │ │ ☑───Test-2.au3 │ │ │ ☑───tools │ │ │ │ ☑───sometools.txt │ ☑───TagsWriter │ │ ☑───ProjectInformation.txt │ │ ☑───database Personal ☑───CreateFolderTree ☑───DialogAutomate ☑───WebDriver Customers ┠───Daniel Rivero ┋ ┠───CustomerInformation.txt ┋ ┠───BankChromeAutomation ┋ ┋ ┠───1.0.0.0 ┋ ┋ ┠───bin ┋ ┋ ┋ ┠───x64 ┋ ┋ ┋ ┋ ┠───BankChromeAutomation.exe ┋ ┋ ┋ ┠───x86 ┋ ┋ ┋ ┋ ┠───BankChromeAutomation.exe ┋ ┋ ┋ ┋ ┠───readme.txt ┋ ┋ ┠───build ┋ ┋ ┋ ┠───Linux ┋ ┋ ┋ ┠───Mac ┋ ┋ ┋ ┠───Windows ┋ ┋ ┠───examples ┋ ┋ ┋ ┠───Example-1 ┋ ┋ ┋ ┠───Example-2 ┋ ┋ ┠───include ┋ ┋ ┠───libs ┋ ┋ ┋ ┠───AutoIt.dll ┋ ┋ ┠───resources ┋ ┋ ┋ ┠───Folder.ico ┋ ┋ ┠───source ┋ ┋ ┋ ┠───Source.au3 ┋ ┋ ┠───tests ┋ ┋ ┋ ┠───Test-1.au3 ┋ ┋ ┋ ┠───Test-2.au3 ┋ ┋ ┠───tools ┋ ┋ ┋ ┠───sometools.txt ┋ ┠───DownloadInvoices ┋ ┋ ┠───ProjectInformation.txt ┋ ┋ ┠───database ┋ ┠───ScrapperGoogle ┋ ┋ ┠───ProjectInformation.txt ┋ ┋ ┠───html ┠───Neil Diamond ┋ ┠───AudioDownloader ┋ ┋ ┠───1.0.0.0 ┋ ┋ ┋ ┠───bin ┋ ┋ ┋ ┋ ┠───x64 ┋ ┋ ┋ ┋ ┋ ┠───BankChromeAutomation.exe ┋ ┋ ┋ ┋ ┠───x86 ┋ ┋ ┋ ┋ ┋ ┠───BankChromeAutomation.exe ┋ ┋ ┋ ┋ ┋ ┠───readme.txt ┋ ┋ ┋ ┠───build ┋ ┋ ┋ ┋ ┠───Linux ┋ ┋ ┋ ┋ ┠───Mac ┋ ┋ ┋ ┋ ┠───Windows ┋ ┋ ┋ ┠───examples ┋ ┋ ┋ ┋ ┠───Example-1 ┋ ┋ ┋ ┋ ┠───Example-2 ┋ ┋ ┋ ┠───include ┋ ┋ ┋ ┠───libs ┋ ┋ ┋ ┋ ┠───AutoIt.dll ┋ ┋ ┋ ┠───resources ┋ ┋ ┋ ┋ ┠───Folder.ico ┋ ┋ ┋ ┠───source ┋ ┋ ┋ ┋ ┠───Source.au3 ┋ ┋ ┋ ┠───tests ┋ ┋ ┋ ┋ ┠───Test-1.au3 ┋ ┋ ┋ ┋ ┠───Test-2.au3 ┋ ┋ ┋ ┠───tools ┋ ┋ ┋ ┋ ┠───sometools.txt ┋ ┋ ┠───1.0.0.1 ┋ ┋ ┋ ┠───bin ┋ ┋ ┋ ┋ ┠───x64 ┋ ┋ ┋ ┋ ┠───x86 ┋ ┋ ┋ ┋ ┋ ┠───readme.txt ┋ ┋ ┋ ┠───build ┋ ┋ ┋ ┋ ┠───Linux ┋ ┋ ┋ ┋ ┠───Mac ┋ ┋ ┋ ┋ ┠───Windows ┋ ┋ ┋ ┠───examples ┋ ┋ ┋ ┋ ┠───Example-1 ┋ ┋ ┋ ┋ ┠───Example-2 ┋ ┋ ┋ ┠───include ┋ ┋ ┋ ┠───libs ┋ ┋ ┋ ┋ ┠───AutoIt.dll ┋ ┋ ┋ ┠───resources ┋ ┋ ┋ ┋ ┠───Folder.ico ┋ ┋ ┋ ┠───source ┋ ┋ ┋ ┋ ┠───Source.au3 ┋ ┋ ┋ ┠───tests ┋ ┋ ┋ ┋ ┠───Test-1.au3 ┋ ┋ ┋ ┋ ┠───Test-2.au3 ┋ ┋ ┋ ┠───tools ┋ ┋ ┋ ┋ ┠───sometools.txt ┋ ┠───TagsWriter ┋ ┋ ┠───ProjectInformation.txt ┋ ┋ ┠───database Personal ┠───CreateFolderTree ┠───DialogAutomate ┠───WebDriver Zip File Version. CreateFolderTree.zip Saludos1 point -
Directory Tree List
coffeeturtle reacted to Danyfirex for a topic
@rcmaehl Most of the example work in the windows cmd. You can try it and add your own ANSI symbols. Thank you for your comments guys. Saludos1 point -
Path in variable
krasnoshtan reacted to Xandy for a topic
@krasnoshtan Also note that "wmplayer.exe" is miss-spelled in your string as "wmlpayer.exe".1 point -
Adding Command Line Parameter
krasnoshtan reacted to water for a topic
Try this and you will see how it works: MsgBox(64, "Passed Parameters", $CmdLine[0] & " parameters have been passed to this script:") For $i = 1 To $CmdLine[0] MsgBox(64, "Passed Parameters", "Parameter " & $i & ": " & $CmdLine[$i]) Next1 point -
Escape to stop Script
krasnoshtan reacted to Manjish for a topic
@manadar, I know that he dosnt want to stop on esc.. That's exactly what my script does dude!! check!!1 point