Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: twistedsymphony on September 12, 2014, 09:21:11 am

Title: Anyone have an AKH Script for iRotate?
Post by: twistedsymphony on September 12, 2014, 09:21:11 am
I've got a FiF cab with a vertical arcade monitor. I'm running WinXP and a Radeon HD4350. and I'm using a HyperSpin front end.

The graphics card option to rotate the desktop are disabled because I'm using CRT_EmuDriver... it strips those options out.

The hyperspin front end doesn't support vertical orientation natively so in order to use it I have to have the desktop rotated to portrait mode... and because CRT_EmuDriver doesn't support rotation I have to use iRotate to do it.

however when I have the desktop in portrait mode then GroovyMAME and SwitchRes can't find the proper game resolutions because it's expecting the screen to be in landscape mode (probably why CRT_EmuDriver disables rotation).

------------------

SO... to solve my problems I'd like to have an AHK script that rotates windows to landscape mode before mame is launched, and rotates it back after mame is closed. Defaulting windows to portrait mode is ideal because I have several PC games that are already setup to run this way. Not to mention it's easier to muck around in windows when I need to if the screen is the right way around.

I'm sure I can muddle my way through creating the script myself but I'm wondering if someone's already got one built that works well.
Title: Re: Anyone have an AKH Script for iRotate?
Post by: BadMouth on September 12, 2014, 12:26:06 pm
Code: [Select]
Send, {CTRLDOWN}{ALTDOWN}{Left}{ALTUP}{CTRLUP}from
http://forum.arcadecontrols.com/index.php/topic,106477.msg1128194.html#msg1128194 (http://forum.arcadecontrols.com/index.php/topic,106477.msg1128194.html#msg1128194)
Title: Re: Anyone have an AKH Script for iRotate?
Post by: twistedsymphony on September 12, 2014, 02:38:23 pm
That method doesn't seem to work. Entering the shortcut keys manually isn't working for me either.
Title: Re: Anyone have an AKH Script for iRotate?
Post by: BadMouth on September 12, 2014, 03:25:10 pm
How are you getting irotate to rotate the screen then?
Title: Re: Anyone have an AKH Script for iRotate?
Post by: twistedsymphony on September 12, 2014, 04:14:16 pm
via command line:
irotate.exe /1:rotate=270

irotate.exe /1:rotate=0

or via the system tray menu

the trick is to automatically rotate back when mame quits
Title: Re: Anyone have an AKH Script for iRotate?
Post by: twistedsymphony on September 13, 2014, 03:19:25 pm
I made a .bat script that rotates mame properly but it causes problems with hyperspin.

Code: [Select]
@echo off
c:/progra~1/irotate/irotate.exe /rotate=0
start /wait c:/hyperspin/Emulators/mame/mame.exe %*
c:/progra~1/irotate/irotate.exe /rotate=270
exit

when hyperspin launches this instead of mame directly the sounds from hyperspin continue playing in the background. then when I quit out of mame back to the ui hyperspin doesn't return to focus.
Title: Re: Anyone have an AKH Script for iRotate?
Post by: twistedsymphony on September 13, 2014, 08:46:21 pm
so I found this: http://www.hyperspin-fe.com/forum/showthread.php?32170-Vertical-HS-theme-that-looks-just-like-the-Horizontal-one&p=303455&viewfull=1#post303455 (http://www.hyperspin-fe.com/forum/showthread.php?32170-Vertical-HS-theme-that-looks-just-like-the-Horizontal-one&p=303455&viewfull=1#post303455)

basically the same exact setup as me, he solved it by using hyperlaunch and modifying the ahk script for mame within hyperlaunch to include commands for iRotate.

I'm not using hyperlaunch right now because I don't like how much overhead it adds but I might end up utilizing it just to make use of that solution myself.
Title: Re: Anyone have an AKH Script for iRotate?
Post by: rockyrocket on September 14, 2014, 02:18:32 am
How about something like this....
Code: [Select]
Run, "C:\Program Files (x86)\iRotate\iRotate.exe" /rotate=90
Process, Wait,Mame.exe
Process, WaitClose,Mame.exe
Run, "C:\Program Files (x86)\iRotate\iRotate.exe" /rotate=0
ExitApp
Title: Re: Anyone have an AKH Script for iRotate?
Post by: twistedsymphony on September 14, 2014, 10:04:07 am
that might work, I'll need to add command line parameters though so mame launches the correct rom with the correct switches.