Author Topic: Yabause  (Read 3543 times)

mgalaxy

  • Administrator
  • Hero Member
  • *****
  • Posts: 773
    • Email
Yabause
« on: August 25, 2013, 09:36:30 AM »
Source code

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

Executable

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