Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 11/25/2011 in all areas

  1. moundsy, Please take the time to read the Forum Rules. You will see that discussion of game automation is not premitted here. I look forward to helping you with future, legitmate questions. 9M23
    1 point
  2. jvanegmond

    Resolved

    You still haven't figured out the mistake in my code? It was a missing = sign, just like the error said. $source _INetGetSource($url) should be: $source = _INetGetSource($url) Complete code: #include <inet.au3> $Start = InputBox("", "Start") $Finish = InputBox("", "Finish") For $i = $Start To $Finish $url = "http://www.google.com/search?q=" & $i $source = _INetGetSource($url) FileWrite("output.txt", "================================" & @CRLF) FileWrite("output.txt", $url & @CRLF) FileWrite("output.txt", $source & @CRLF) FileWrite("output.txt", "================================" & @CRLF & @CRLF) Next
    1 point
  3. Runwait() waits for the run to complete. What you do in the loop above is to run it 4 times. If the takeown program returns progress data to the console you could read the stdout stream, but as not many console programs do this there is just no way to estimate the overall runtime. As a workaround create the progres control with the $PBS_MARQUEE flag set to indicate that something is happening, here's a piece of pseudo-code: #include <SENDMESSAGE.AU3> $c_Progress = GUICtrlCreateProgress(9, 35, 340, 17, $PBS_MARQUEE) $h_Progress = GUICtrlGetHandle($c_Progress) _SendMessage($h_Progress, $PBM_SETMARQUEE, True, 0) RunWait('TAKEOWN /f ' & '"' & $Select0 & '"' & ' /r /d y', "", @SW_HIDE) _SendMessage($h_Progress, $PBM_SETMARQUEE, False, 0)
    1 point
×
×
  • Create New...