Author Topic: Project64  (Read 3475 times)

mgalaxy

  • Administrator
  • Hero Member
  • *****
  • Posts: 760
    • Email
Project64
« on: August 25, 2013, 09:34:19 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. WinActivate("mGalaxy")
  14.  
  15.  
  16. ;functions
  17. Func Terminate()
  18.     While ProcessExists ( $PID )
  19.           ProcessClose ( $PID )
  20.     WEnd
  21.        
  22.         WinActivate("mGalaxy")
  23.        
  24.     Exit 0

Executable

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