Jump to content
(Public Beta) HyperSpin 2 is now available for everyone ×

Alt & Enter for Full Screen


magostin

Recommended Posts

Posted

if i want to have the Emu go fullscreen using the Alt & Enter keystroke.

the following doesnt work, what am i doing wrong?

i'm new to scripting..

;**********************************ATARI 800***********************************

else if (systemName = "ATARI 800" && executable = "Altirra.exe")

{

hideDesktop()

SendInput, {Alt}{Enter}

Hotkey, %exitEmulatorKey%, CloseProcess

RunWait, %executable% "%romPath%%romName%%romExtension%", %emuPath%

}

Posted

u want to press alt-enter after the emu runs, plus add a sleep before you send it, otherwise it will try to send the key at the same time as it ran the emu.

"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music."

RocketLauncher's Official Home

If you appreciate my work:
donate_button.png

My Apps:
Window Logger
Idle Volume Adjuster
ExplorerRestorer
Rom Folder Cleaner
Module Updater
My Guides:
How To Mod Guncons with Aimtrak

Posted

can you write an example or copy and paste the code above with what you advised.

i don't know autohotkey scripting, i just copy stuff already written to try..

thx,

Posted

Its already pretty close its just the order of the script:

;**********************************ATARI 800***********************************

else if (systemName = "ATARI 800" && executable = "Altirra.exe")

{

hideDesktop()

Hotkey, %exitEmulatorKey%, CloseProcess

RunWait, %executable% "%romPath%%romName%%romExtension%", %emuPath%

SendInput, {Alt}{Enter}

}

If that doesn't work then maybe add "Sleep,100" before the send input line.

TUTORIAL!: Xpadder and You

If you're super into using genuine controllers for emulation check THIS GUY out.

Posted

The sleep would likely have to be longer, I don't see the emu being ready to acknowledge and alt+enter key press in only 1/10 of a second after being ran.

I would start with 1000 and work your way down.

"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music."

RocketLauncher's Official Home

If you appreciate my work:
donate_button.png

My Apps:
Window Logger
Idle Volume Adjuster
ExplorerRestorer
Rom Folder Cleaner
Module Updater
My Guides:
How To Mod Guncons with Aimtrak

Posted

it didn't work. with or without the sleep 1000

;**********************************ATARI 800***********************************

else if (systemName = "ATARI 800" && executable = "Altirra.exe")

{

hideDesktop()

Hotkey, %exitEmulatorKey%, CloseProcess

RunWait, %executable% "%romPath%%romName%%romExtension%", %emuPath%

Sleep,1000

SendInput, {Alt}{Enter}

}

Posted

it still didnt work, and now the emulator is behind hyperspin.

is a better emu out there than altira? that works with hyperspin?

i'm thinking its altira that is the problem.

Posted

try this link,

Atari 800xl...800winxl.exe

exit this emu while in fullscreen (outside Hyperspin) then when you load it while in Hyperspin it should automatically go into fullscreen with no special tinkering.

or test this if you really want "Atiira". I dont use this or have it setup personally so I cant test it.

I dont know which emu is better (never heard of "Altirra" before)

;**********************************ATARI 800***********************************

else if (systemName = "ATARI 800" && executable = "Altirra.exe")

{

hideDesktop()

Hotkey, %exitEmulatorKey%, CloseProcess

Run, %executable% "%romPath%%romName%%romExtension%", %emuPath%

sleep, 1000

WinActivate, %executable% ;or actual "altirra" window name on taskbar

Sleep,1000

SendInput, {Alt}{Enter}

;SendInput, {LAltdown}{Enter}{LAltup} ;alternative (currently disabled with ";")

Process, WaitClose, , %executable% ;or actual "altirra" window name on taskbar

WinActivate, HyperSpin

}

  • 3 years later...
  • 11 months later...
Posted

Maybe you can change the .\Hyperspin\settings\Atari800.ini file

 

Example:

 

[exe info]
path = H:\hyperspin\Emulators\Atari800\
rompath = H:\hyperspin\Emulators\Atari800\Roms\
userompath = true
exe = Altirra.exe /fullscreen /escexit   <------Check this
romextension =rar
parameters =
searchsubfolders = false
pcgame = false
winstate = HIDDEN
hyperlaunch =false   <----and this
 
 
I did this for another emulator and it worked well.
Not sure of the Altirra.exe, because i never tested that 1.
Anyway, it cant hurt to try it out.
 
Regards,
Roverius
  • 2 weeks later...
Posted

Hi i use another setting and works nice, you are using sendinput, and i use only send and works great...

 

here as an example...

 

}

IniWrite, %fullscreenWidth%, %emupath%gpuOglv3.ini, resolution, fWidth
IniWrite, %fullscreenHeight%, %emupath%gpuOglv3.ini, resolution, fHeight
Run, "%Emupath%%Executable%" -run=atomiswave -rom=%RomName%
SetTimer, CheckWin, 2

sizeOrg=
CheckWin:
IfWinNotExist, ahk_class window
{
   return
}else{
   WinGetPos,,,W,,ahk_class window
   if(W != sizeOrg && sizeOrg != ""){
      Goto StartGame
   }else{
      sizeOrg = %W%
   }
}
return

StartGame:
  SetTimer, CheckWin, Off
  WinActivate ahk_class window
  send, {ALTDOWN}{ENTER}{ALTUP} ; Go full Screen demul 582
  Send !{ENTER}
  Blockinput off
  sleep, 1000
  Gui Destroy
  winactivate, DEMUL
  Process, WaitClose, %executable%
return
          
CloseProcess:
  Process, Close, %executable%
  ExitApp 
return

  Gui Destroy
  winactivate, DEMUL
  Process, WaitClose, %executable%
return

 

My problem is with hyperspin 2 and demul 582  after 5 or 10 minuts playing it get out of fullscreen and i dont know why, if i use the emulator alone without hyperspin do the same but if i use it throught hyperspin 3 it works perfect (its like with it, it block fullscreen and demul works great) and i tried to use same scripts because i have all my systems in hyperspin 2 but unable to solve that..

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...