Jump to content

corz

Active Members
  • Posts

    254
  • Joined

  • Last visited

Community Answers

  1. corz's post in Help with _IEGetObjById was marked as the answer   
    I *think* you are trying to do something like this..
    $oLink = _IEGetObjById($oIE, "cwos") if $oLink.innertext > 0 then MsgBox(16,"Error","Subtotal is not $0.00, halting!") ;o) Cor
  2. corz's post in Users are having problems with my update feature was marked as the answer   
    That's slightly trickier..
    func ReLaunchUpdatedApp()     $cmd = 'ping 192.0.0.0 -n 1 -w 2000 > nul' & @CRLF     $cmd &= 'cd ' & @ScriptDir & @CRLF     $cmd &= 'del my-app.exe' & @CRLF     $cmd &= 'ren my-app-new.exe my-app.exe' & @CRLF     $cmd &= 'start /d "' & @ScriptDir & '" my-app.exe' & @CRLF     FileWrite(@TempDir & "\relaunch.cmd", $cmd)     Run(@TempDir & "\relaunch.cmd", @ScriptDir, @SW_HIDE)     exit     ; don't forget to clean up the temp file at the start of your script! endfunc btw, the ping command is simply a two second pause, in case your app takes a moment to shut down.
    ;o) Cor
    [edit]spelling![/edit]
×
×
  • Create New...