Author Topic: DeSmuME  (Read 2830 times)

mgalaxy

  • Administrator
  • Hero Member
  • *****
  • Posts: 760
    • Email
DeSmuME
« on: November 16, 2014, 01:34:10 PM »
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. ;load application
  10. local $PID = Run ( '"' & $app & '" ' & $command )
  11. ;wait for window to be active
  12. WinWaitActive("DeSmuME")
  13. ;then set it fullscreen
  14. Send("!{Enter}")
  15.  
  16. ;waiting loop
  17.    Sleep(500)
  18.  
  19. ;exit
  20.  
  21. ;*************************************
  22. ;functions
  23. Func Terminate()
  24.    Send("!+{F4}",0)
  25.    Exit 0

Executable

http://www.mgalaxy.com/forum/index.php?action=downloads;sa=view;down=67