Jump to content

T0M50N

Active Members
  • Posts

    26
  • Joined

  • Last visited

Community Answers

  1. T0M50N's post in Middle Mouse Click _IEAction was marked as the answer   
    Why do you need to click the link?
    With help from this post 
    #include <IE.au3> Const $navOpenInNewTab = 0x0800 Local $oIE = _IECreate("http://www.autoitscript.com/site/") Local $oLinks = _IELinkGetCollection($oIE) For $oLink In $oLinks If StringInStr($oLink.href, "/forum/") Then $oIE.Navigate2($oLink.href, $navOpenInNewTab) ExitLoop EndIf Next
  2. T0M50N's post in Uninstall Script was marked as the answer   
    Found a solution:
    Func _SelfDeleteDir($iDelay = 0)     Local $sCmdFile     FileDelete(@TempDir & "\scratch.bat")     $sCmdFile = 'ping -n ' & $iDelay & ' 127.0.0.1 > nul' & @CRLF _              & ':loop' & @CRLF _              & 'RD /S /Q "' & @ScriptDir & '"' & @CRLF _              & 'if exist "' & @ScriptDir & '" goto loop' & @CRLF _              & 'RD /S /Q %0' & @CRLF _              & 'del /q /f "%~f0" >nul 2>&1 & exit /b 0' & @CRLF     FileWrite(@TempDir & "\scratch.bat", $sCmdFile)     Run(@TempDir & "\scratch.bat", @TempDir, @SW_HIDE) EndFunc;==>_SelfDelete This doesn't leave the scratch.bat in the temp dir either.
×
×
  • Create New...