PDA

View Full Version : Alt & Enter for Full Screen



magostin
01-14-2011, 08:30 AM
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%

}

djvj
01-14-2011, 11:31 AM
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.

magostin
01-14-2011, 02:52 PM
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,

DrMoney
01-14-2011, 11:34 PM
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.

djvj
01-15-2011, 12:20 AM
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.

DrMoney
01-15-2011, 03:24 AM
I didn't even notice. That was around what i intended, sorry.

magostin
01-15-2011, 01:10 PM
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}

}

chillinwater
01-15-2011, 01:20 PM
remove "wait" from

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

nothing happens after the "wait" when used.

magostin
01-15-2011, 05:21 PM
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.

chillinwater
01-18-2011, 03:28 PM
try this link,
Atari 800xl (http://www.hyperspin-fe.com/forum/showpost.php?p=52984&postcount=8)...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
}