Author Topic: Demul [0.5.8]  (Read 4627 times)

mgalaxy

  • Administrator
  • Hero Member
  • *****
  • Posts: 773
    • Email
Demul [0.5.8]
« on: September 02, 2013, 09:35:21 AM »
Source code

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

Executable

http://www.mgalaxy.com/forum/index.php?action=downloads;sa=view;down=46
« Last Edit: September 07, 2013, 12:34:57 PM by mgalaxy »