Author Topic: Virtual Jaguar  (Read 3673 times)

mgalaxy

  • Administrator
  • Hero Member
  • *****
  • Posts: 773
    • Email
Virtual Jaguar
« on: August 25, 2013, 09:35:16 AM »
Source code

Code: AutoIt
  1. ;Parsing
  2. Local $count = StringInStr($CmdLineRaw, ".exe", 0 , 1, 1)
  3. local $app = StringLeft ( $CmdLineRaw, $count + 4 )
  4. local $command = StringTrimLeft( $CmdLineRaw, $count + 4 )
  5. if not $command then exit 0
  6.    
  7. HotKeySet("{ESC}", "Terminate")
  8.  
  9. $PID = Run ('"' & $app & '" ' & $command)
  10.  
  11.    sleep(500)
  12.  
  13.  
  14. ;functions
  15. Func Terminate()
  16.     While ProcessExists ( $PID )
  17.           ProcessClose ( $PID )
  18.     WEnd
  19.     Exit 0

Executable

http://www.mgalaxy.com/forum/index.php?action=downloads;sa=view;down=41
« Last Edit: August 25, 2013, 03:53:14 PM by mgalaxy »