Advertisement
djvj

djvj stella

Oct 14th, 2011
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.88 KB | None | 0 0
  1. ;----------------------------------------------------------------------------
  2. ; Atari 2600
  3. ; Stella v3.4.1
  4. ; by djvj
  5. ; 1.1
  6. ;
  7. ; Notes:
  8. ; To set fullscreen, hit Tab then goto Video Settings and set Fullscreen to On.
  9. ;----------------------------------------------------------------------------
  10.  
  11. LoadingScreen = true
  12. ExitScreen = true
  13. loadingPic = Splash.jpg
  14. loadingPicW = 800
  15. loadingPicH = 600
  16. loadingColor = Black
  17. DiskSwapKey = F9 ; swaps disk
  18.  
  19.  
  20. ; This gets rid of the emu window that pops up on launch
  21. If ( LoadingScreen = "true" ) {
  22. Gui +LastFound
  23. WinGet GUI_ID, ID
  24. Gui +AlwaysOnTop -Caption +ToolWindow
  25. Gui, Color, %loadingColor%
  26. loadXPos := ( A_ScreenWidth / 2 ) - ( loadingPicW / 2 )
  27. loadYPos := ( A_ScreenHeight / 2 ) - ( loadingPicH / 2 )
  28. Gui, Add, Picture,x%loadXPos% y%loadYPos%, %A_ScriptDir%\Modules\%systemName%\%loadingPic%
  29. Gui Show, x0 y0 h%A_ScreenHeight% w%A_ScreenWidth% Hide
  30. DllCall("AnimateWindow","UInt",GUI_ID,"Int",500,"UInt","0xa0000") ; animate in loading GUI
  31. }
  32.  
  33. Hotkey, %DiskSwapKey%, DiskSwap
  34.  
  35. Run, %executable% "%romPath%%romName%%romExtension%", %emuPath%
  36.  
  37. WinWait, ahk_class SDL_app
  38. WinWaitActive, ahk_class SDL_app
  39. Sleep, 700 ; Necessary otherwise the HyperSpin window flashes back into view
  40.  
  41. DllCall("AnimateWindow",UInt,GUI_ID,UInt,750,UInt,0x90000) ; animate out loading GUI
  42. Gui Destroy
  43.  
  44. Process, WaitClose, %executable%
  45.  
  46. DllCall("AnimateWindow",UInt,GUI_ID2,UInt,750,UInt,0x90000) ; animate out exit GUI
  47.  
  48. WinActivate, Hyperspin
  49.  
  50. ExitApp
  51.  
  52.  
  53. DiskSwap:
  54. Send !r
  55. Return
  56.  
  57. CloseProcess:
  58. If ( exitScreen = "true" ) {
  59. Gui +LastFound
  60. WinGet GUI_ID2, ID
  61. Gui +AlwaysOnTop -Caption +ToolWindow
  62. Gui Color, Black
  63. Gui Show, x0 y0 h%A_ScreenHeight% w%A_ScreenWidth% Hide
  64. DllCall("AnimateWindow","UInt",GUI_ID2,"Int",500,"UInt","0xa0000") ; animate in exit GUI
  65. }
  66. WinClose, ahk_class SDL_app
  67. Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement