Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 01/24/2013 in all areas

  1. Centrally, One possible solution Run("Masked for privacy") $i = 0 While $i <= 10 $coord = PixelSearch(906, 579, 1067, 666, 0xA86A21) If Not @error Then MouseClick("primary", $coord[0], $coord[1], 1, 0) EndIf $i = $i + 1 Sleep(3000) WEnd $i1 = 0 local $x = 458, $y = 311 While $i1 <= 10 $coord1 = PixelSearch(86, 658, 160, 706, 0xEE2E24) If Not @error Then ;$coord2 = (458, 311) MouseClick("primary", $x, $y, 2, 1) EndIf $i1 = $i1 + 1 Sleep(3000) WEnd kylomas
    1 point
  2. Centrally, I have lifted your "New Member" 5 post restriction - you are now able to continue the discussion as long as necessary. M23
    1 point
  3. Because you provide no room to get out of it... something called ExitLoop Regarding reading something from outside files, checkout help file for FileRead, FileWrite, IniRead examples etc. You can use variables declared in other loops, use Global declarations...
    1 point
  4. BigDod

    i need two .exe file

    We do not do requests for code here. The idea is that you try to learn then code something. When you come upon problems you post asking for assistance.
    1 point
  5. Or ternary in the aplha/pre-beta! -_0
    1 point
  6. When testing, this example would return the lines with 4599, 5699, and 3601 in the "Time" column. And this example would not return the lines with 2601, 3599, or 3600 in the "Time" column. #include <Array.au3> $aArray = StringRegExp(FileRead("file1.txt"), "((?:[^\s]+\h+){7}(?:[3-9][6-9][0-9][1-9]|[3-9][7-9][0-9][0-9]|[4-9][0-9][0-9][0-9])\h?[^\v]*\v*)", 3) ; ) ConsoleWrite(FileRead("file1.txt") & @LF) _ArrayDisplay($aArray) ; Use if there are greater than 4 digit numbers expected. $aArray = StringRegExp(FileRead("file1.txt"), "((?:[^\s]+\h+){7}(?:[3-9][6-9][0-9][1-9]|[3-9][7-9][0-9][0-9]|[4-9][0-9][0-9][0-9]|[1-9][0-9]{4,})\h?[^\v]*\v*)", 3) _ArrayDisplay($aArray) Edit: "|[3-9][7-9][0-9][0-9]" added to regular expression pattern because 3700, 3800, and 3900 were not being captured. And added an adjusted JohnQSmith's example of post #12.
    1 point
  7. The key combo to start or resume a VM is Ctrl+B
    1 point
  8. frenchbeast

    Progress..

    I just wanted to share a little trick for the progress Capture the console output and grab the percentage $IMAGEX_PATH = <Path to imagex.exe> $PACKAGE_NAME = <Path to your WIM package> $DRIVE_DEST = <Drive Destination (i.e.: C:)> $SPLASH_TITLE = "My Company Imaging" ;~ Let's capture the processID in order to grab the StdOut ... Local $ProcessID = Run($IMAGEX_PATH&" /apply """&$PACKAGE_NAME&""" 1 """&$DRIVE_DEST,"",@SW_HIDE, 0x8) ;~ Reading the output from the processID ProgressOn($SPLASH_TITLE,"Applying image "&$PACKAGE_NAME) While 1 $fCurLine = StdoutRead($ProcessID) ;~ I read what the ProcessID write to the console If @error Then ExitLoop ;~ Make sure to exit when the ProcessID is finished $fLines = StringSplit($fCurLine,@CRLF,2) ;~ Splitting the result which can contain several lines For $fLine In $fLines ;~ Treating each line individually $fLine = StringStripWS(StringStripCR($fLine),3) ;~ Cleaning up the current string If $fLine<>"" And StringRegExp($fLine,"\[\s*\d+%\s*\]",0) Then ;~ I select only the lines containing a % $fPercentage = StringRegExpReplace($fLine,"^.*\[\s*(\d+)%\s*\].*$","$1") ;~ Get the percentage with a regular expression ProgressSet(Int($fPercentage),$fLine) ;~ Finally apply the percentage to the progress bar and the text EndIf Next Wend ProgressOff()
    1 point
  9. Yorn

    UDP/TCP Hole Punching

    Wow, never expected such a cold response. So wait a minute? You criticize me for not searching for the code when you haven't done so yourself? Yes, I extensively use the AutoIT search, I even use google "site:" code searches so as not to tax the server's resources. If you actually do a search for "hole punching" you get 0 results here. I understand there are outside implementations for the server end, but the client end is NOT intuitive and as far as I could tell no one has made a UDF for it but someone certainly could and (this is the key here) may have already done so and not yet released it publicly. It was an honest question and I think it deserves an honest answer, if you haven't coded this yourself you need not respond chastising me for not searching when I already have. I would have posted this as a "Feature Request" but that forum is gone now it seems.
    1 point
×
×
  • Create New...