Author Topic: Project Tempest  (Read 4000 times)

mgalaxy

  • Administrator
  • Hero Member
  • *****
  • Posts: 801
    • Email
Project Tempest
« on: August 25, 2013, 09:34:03 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}", "sendKey")
  8.  
  9. run('"' & $app & '"')
  10. WinwaitActive("Project Tempest")
  11. send("!f")
  12. send("{enter}")
  13. WinwaitActive("Open ROM File")
  14. send($command & ' ', 1)
  15. send("{enter}")
  16. WinwaitActive("Project Tempest")
  17. ; Start the game (F2).
  18. send("{F2}")
  19.  
  20. While WinExists("Project Tempest")
  21.    Sleep (500)
  22.  
  23.  
  24. ; Stop the game - F3.
  25. ; Close Project Tempest.
  26. Func sendKey()
  27.    Send ("{F3}")
  28.    WinClose("Project Tempest")
  29.    exit

Executable

http://www.mgalaxy.com/forum/index.php?action=downloads;sa=view;down=37
« Last Edit: October 30, 2013, 07:09:03 PM by mgalaxy »