Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 11/14/2012 in all areas

  1. Never mind, just try this. $body = _IEBodyReadHTML($ie) $body= StringStripWS($String, 8) $result = _StringBetween($String, 'class="item"><divstyle="display:none;"class="cms">', '</div>') first you strip any white space, which includes line feeds and such.
    1 point
  2. 1 point
  3. Controlsendconfirm ("mywindow", "mytext", "controlid", "hisstring") Func controlsendconfirm ($hiswindow, $histext, $hiscontrolid, $hisstring) Do Controlsend ($hiswindow, $histext, $hiscontrolid, "{end}+{home}{backspace}") Sleep (10) ; just my opinion Controlsend ($hiswindow, $histext, $hiscontrolid, $hisstring) Sleep (10) Until Controlgettext ($hiswindow, $histext, $hiscontrolid) = $hisstring Endfunc
    1 point
  4. BrewManNH, autoit does not use bytecode. it simply stores the tokenised script in the EXE, with the parsing done it runtime. the only exception is wierd things like fileinstall(), i have no idea how they work. fyi: bytecode - a series of stateless instructions for a virtual machine. sometimes given structures or headers. the key feature is that no parsing is required for execution. tokens - a linear array of critical elements of the script. a lot of work is still required at runtime for execution.
    1 point
  5. I'm not sure if this will help you but I use external 7zip command-line (I could never get the UDF to work properly) but here is a simple code snippet example below of how I am using it: 7-Zip returns the following exit codes: 0 = No Error 1 = Warning (Non fatal error(s)). For example, one or more files were locked by some other application, so they were not compressed. 2 = Fatal Error 7 = Command line error 8 = Not enough memory for operation 255 = User Aborted ; === this is a basic sample === $DLdir = @ScriptDir&"DL" $ZipName = "SourceZipFile.zip" ; ; the command-line passed to 7zip assembled below (this is an Extract with params) $xString = " x " & $DLdir & $ZipName & " -O" & $DLdir & " -aoa" ; $retResult = ShellExecuteWait("7za.exe", $xString, "", "") ;, @SW_MINIMIZE) ; If @error > 0 Then ConsoleWrite("7ZIP Extract Error occurred: " & $retResult) ; above prints the error code to console, this could be acted upon with IF conditions and sent to statusbar or similar action Else $UnPackMsg = "COMPLETED" & @CR ConsoleWrite("Unpack: " & $UnPackMsg) EndIf
    1 point
×
×
  • Create New...