-
Posts
7,103 -
Joined
-
Days Won
88
Content Type
Forums
Downloads
Forum Articles
Events
Everything posted by TheDcoder
-
FileDelete fails deleting a file for no reason
TheDcoder replied to TheDcoder's topic in AutoIt General Help and Support
@water But my test code works without closing the file handle -
Please disable your AV & try it, TD
-
FileDelete fails deleting a file for no reason
TheDcoder replied to TheDcoder's topic in AutoIt General Help and Support
Thanks water... Looks like I made a mistake while researching... P.S I had this issue with FileDelete (without the spelling mistake). -
Well.... RunWait($Path & "\vlc-2.2.1-win32.exe /L=1033 /S")This line pauses your scripts until the program dies, Try: Run($Path & "\vlc-2.2.1-win32.exe /L=1033 /S")TD
-
Hello, This is my (test) code: FileOpen(@ScriptDir & '\' & "Test.txt", 1) $iDeleteResult = FileDelete(@ScriptDir & '\' & "Text.txt") $sDeleteResult = "Pass" If $iDeleteResult = 0 Then $sDeleteResult = "Fail" ConsoleWrite("Result: " & $sDeleteResult & @CRLF)FileOpen does its job (i.e creating a file) but FileDelete fails deleting a simple text file? Thanks in Advance, TD
-
I have an question, why did you take the screenshot in Windows PE environment? Sorry for this useless question
- 4 replies
-
- pdfcreator
-
(and 1 more)
Tagged with:
-
Tracking Multiple Drag n Drops
TheDcoder replied to TheDcoder's topic in AutoIt GUI Help and Support
@kylomas Thanks! . Now I understanding the purpose of dummy control -
Tracking Multiple Drag n Drops
TheDcoder replied to TheDcoder's topic in AutoIt GUI Help and Support
Thanks P.S Now I use a button to select multiple files b/c dnd looks complicated -
Tracking Multiple Drag n Drops
TheDcoder replied to TheDcoder's topic in AutoIt GUI Help and Support
Thanks UEZ , But why is $DROP_ACCEPTED not executed? -
Tracking Multiple Drag n Drops
TheDcoder replied to TheDcoder's topic in AutoIt GUI Help and Support
Thanks UEZ, But what should I pass for $hDrop? The example does very complex things -
Hello, I need to track multiple drag n drops. When I drop 2 files in my GUI, @GUI_DragFile only returns 1 file Here is the GUI for you work on : #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 615, 437, 282, 142, -1, BitOR($WS_EX_ACCEPTFILES,$WS_EX_WINDOWEDGE)) $Edit1 = GUICtrlCreateEdit("", 0, 0, 601, 433) GUICtrlSetState(-1, $GUI_DROPACCEPTED) GUICtrlSetData(-1, "Edit1") GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $GUI_EVENT_DROPPED MsgBox(48, "Dropped", '@GUI_DragId = ' & @GUI_DragId & @CRLF & '@GUI_DragFile = ' & @GUI_DragFile & @CRLF & '@GUI_DropId = ' & @GUI_DropId) EndSwitch WEnd ; In this case, the edit control populates with dropped files's paths. Please don't use GUICtrlRead to read the file paths, Pretend that the edit ctrl is emptyThanks in Advance, TD
-
@MikahS Do you wan't to look at the source ? @water I use many GUICtrlListView_GetItemCount in my script, But I know which part is causing the problem: ; $hList = ListView Handle Local $aArray[_GUICtrlListView_GetItemCount($hList) - 1] $aArray[0] = _GUICtrlListView_GetItemCount($hList) For $i = 1 To $aArray[0] $aArray[$i] = _GUICtrlListView_GetItemText($hList, $i, 2) Next For $i = 1 To $aArray[0] $aArray[$i] = $sFolder & '\' & StringRegExpReplace($aArray[$i], "^.*\\", "") Next For $i = 1 To $aArray[0] $sString = _GUICtrlListView_GetItemText($hList, $i, 2) FileCopy($sString, $aArray[$i]) Next@mLipok latest stable version (v3.3.12.0)
-
Most organic (time) gap between typing alphabets
TheDcoder replied to TheDcoder's topic in AutoIt Technical Discussion
@Melba23 To make my update log more interesting -
Most organic (time) gap between typing alphabets
TheDcoder replied to TheDcoder's topic in AutoIt Technical Discussion
@BrewManHD Here you go: <snip> 170 ms time gap looks very similar to my typing speed -
Most organic (time) gap between typing alphabets
TheDcoder replied to TheDcoder's topic in AutoIt Technical Discussion
I tried using random to add/subtract the time gap, it didn't look good -
Most organic (time) gap between typing alphabets
TheDcoder replied to TheDcoder's topic in AutoIt Technical Discussion
@James Just choose the one which satisfies you the most -
Hello I am trying to make a function which.... Ummm.... I don't know the word, Please run this code and you will get it: <snip> Which time gap looks the most organic (Which time gap looks like a human is typing them)? Thanks! TD Edit: I am conducting this research because I just saw a Brain Games on Nat Geo which says (and proves) that The more people take part, The more better result.
-
Probably to win the zombie thread award