Author Topic: WinAPE  (Read 5374 times)

mgalaxy

  • Administrator
  • Hero Member
  • *****
  • Posts: 774
    • Email
WinAPE
« on: August 25, 2013, 09:36:11 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. Exit 0    
  14.      
  15. ;Functions
  16. Func Terminate()
  17.    While ProcessExists ( $PID )
  18.           ProcessClose ( $PID )
  19.    WEnd
  20.    Exit 0

Executable

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