Jump to content

TheDcoder

Active Members
  • Posts

    7,103
  • Joined

  • Days Won

    88

Everything posted by TheDcoder

  1. @Melba23 Oh, Thanks, I thought that all Array UDF functions use ByRef to modify the array TD
  2. @guinness Why did you reopen it ? M23 said that he fixed it.
  3. @guinness LATEST STABLE VERSION
  4. @guinness Ok @Melba23 Where can I find the fixed code?
  5. Hello , Here is the script: #include <Array.au3> Local $aArray[4][2] = [[1, 1], [3, 1], [5, 2], [7, 2]] _ArrayDisplay($aArray) _ArrayUnique($aArray) _ArrayDisplay($aArray)Thanks in Advance
  6. Thanks for changing the Constant references
  7. A new squeal to StringTrimUntil collection ; #FUNCTION# ==================================================================================================================== ; Name ..........: StringLeftUntil ; Description ...: Extract the text before the delimiter (or inculding the delimiter) ; Syntax ........: StringLeftUntil($sDelimiter, $sString[, $iOccurrence = 1[, $bIncludeDelimiter = False]]) ; Parameters ....: $sDelimiter - Delimiter. ; $sString - String to process. ; $iOccurrence - [optional] Ouccurence to extract until. Default is 1st ouccurence. ; $bIncludeDelimiter - [optional] Do you want to include the delimiter?. Default is False. ; Return values .: Extracted String ; Author ........: TheDcoder ; Modified ......: N/A ; Remarks .......: None. ; Related .......: StringLeft ; Link ..........: bit.ly/StringUntilForAutoIt ; Example .......: No ; =============================================================================================================================== Func StringLeftUntil($sDelimiter, $sString, $iOccurrence = 1, $bIncludeDelimiter = False) $iDelimiterPos = StringInStr($sString, $sDelimiter, 2, $iOccurrence) ; We need delimiter's position $sReturn = StringLeft($sString, $iDelimiterPos - 1) ; Extract the string before the delimiter If $bIncludeDelimiter = True Then $sReturn &= $sDelimiter ; Check if the delimiter needs to be attached again Return $sReturn ; Return the string EndFunc ;==>StringLeftUntil ; #FUNCTION# ==================================================================================================================== ; Name ..........: StringRightUntil ; Description ...: Extract the text after the delimiter (or inculding the delimiter) ; Syntax ........: StringRightUntil($sDelimiter, $sString[, $iOccurrence = 1[, $bIncludeDelimiter = False]]) ; Parameters ....: $sDelimiter - Delimiter. ; $sString - String to process ; $iOccurrence - [optional] Ouccurence to extract until. Default is 1st ouccurence. ; $bIncludeDelimiter - [optional] Do you want to include the delimiter?. Default is False. ; Return values .: Extracted String ; Author ........: TheDcoder ; Modified ......: N/A ; Remarks .......: None. ; Related .......: StringRight ; Link ..........: bit.ly/StringUntilForAutoIt ; Example .......: No ; =============================================================================================================================== Func StringRightUntil($sDelimiter, $sString, $iOccurrence = 1, $bIncludeDelimiter = False) $sString = StringReverse($sString) ; Reverse the string $sDelimiter = StringReverse($sDelimiter) ; Reverse the delimiter ; Just the whole process of StringLeftUntil is reversed :D $iDelimiterPos = StringInStr($sString, $sDelimiter, 2, $iOccurrence) $sReturn = StringLeft($sString, $iDelimiterPos - 1) If $bIncludeDelimiter = True Then $sReturn &= $sDelimiter Return StringReverse($sReturn) ; Return the reversed string EndFunc ;==>StringRightUntilHope you may find it useful, TD
  8. @Techone Welcome to AutoIt forums! This thread is almost 6 years old, so most of the script would be broken (I didn't test) also there is an chance that VLC has changed/removed the functionality you are looking for.... I recommend to look for an other solution. If you would still like to do that using this script then: Assuming that the script is working, you can replace 127.0.0.1 with the IP of the remote computer. TD
  9. @water Thanks! I used LoadConstants instead of ConvertConstantsTo2DArray TD
  10. @water Same repetition of "Loaded list of files"
  11. @water Fixed it... But It didn't solve the problem
  12. @water Added debug details P.S Is that code working for you?
  13. Hello everyone , I am currently having some problems with this cut out from my latest project: The code looks good, but if you run it AutoIt crashes ... Any tips or suggestion to make it work again ? Here is the error image: http://img4.imagetitan.com/img.php?image=11_capture2866.png SciTE Output (Exit code is not constant): >"C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "C:\Users\TheDcoder\Desktop\New AutoIt v3 Script.au3" /UserParams +>15:31:59 Starting AutoIt3Wrapper v.14.801.2025.0 SciTE v.3.4.4.0 Keyboard:00004009 OS:WIN_81/ CPU:X64 OS:X64 Environment(Language:0809) +> SciTEDir => C:\Program Files (x86)\AutoIt3\SciTE UserDir => C:\Users\TheDcoder\AppData\Local\AutoIt v3\SciTE\AutoIt3Wrapper SCITE_USERHOME => C:\Users\TheDcoder\AppData\Local\AutoIt v3\SciTE >Running AU3Check (3.3.12.0) from:C:\Program Files (x86)\AutoIt3 input:C:\Users\TheDcoder\Desktop\New AutoIt v3 Script.au3 +>15:31:59 AU3Check ended.rc:0 >Running:(3.3.12.0):C:\Program Files (x86)\AutoIt3\autoit3.exe "C:\Users\TheDcoder\Desktop\New AutoIt v3 Script.au3" --> Press Ctrl+Alt+Break to Restart or Ctrl+Break to Stop !>15:32:10 AutoIt3.exe ended.rc:-1073740771 +>15:32:10 AutoIt3Wrapper Finished. >Exit code: 3221226525 Time: 12.07Thanks in Advance, TD
  14. @jchd How can I check it using calculator? Edit: Nevermind & Thanks!
  15. Hello , Please look at this code: $vVar = Execute("0x10000000") MsgBox(0, 0, "Var Type: " & VarGetType($vVar) & @CRLF & "Value: " & $vVar)These are my questions: 1. Is execute doing its job correctly? 2. Is 0x10000000 = 268435456? 3. What is 0x10000000 called in programmer terms? (I am not sure if its Hexadecimals because VarGetType say its an Int*) I am confused , Thanks in Advance, TD
  16. @JohnOne Why use magic numbers?
  17. @wisem2540 Use GUISetOnEvent not GUIRegisterMsg, TD
  18. @guinness Sorry if I made you feel like that ... I tried but I can't understand how its done using _ArrayAdd @boththose I am confused , Do you want me to use Dim instead of Local?
  19. @Exit I added an Error checking system, I think that snippets need error checking, TD
  20. @Jos Sorry Jos! I promise this won't happen an other time
  21. Try this code & paste the contents of your clipboard here: AdlibRegister("Drag",10000) Func Drag() if @MIN = 15 Then $sClipboard = "1." & MouseClickDrag("left",700,275,700,600,0) sleep(500) $sClipboard = "2. " & MouseClickDrag("left",700,275,700,600,0) sleep(500) $sClipboard = "3. " & MouseClickDrag("left",700,275,700,600,0) sleep(500) $sClipboard = "4. " & PixelSearch(930,230,1100,650,0x135e13,2) if @error then $sClipboard = "5. " & MouseClick("left",1000,500,1,0) EndIf EndIf ClipPut($sClipboard) EndFunc
  22. @guinness Name of the function? @Exit It doesn't have an error checking system, all my snippets lack error checking system... I will add error checking system when I finish my project
×
×
  • Create New...