Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Anyone have an AKH Script for iRotate?  (Read 4713 times)

0 Members and 1 Guest are viewing this topic.

twistedsymphony

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 584
  • Last login:February 03, 2024, 11:13:51 pm
  • Play stupid games... win stupid prizes.
    • solid-orange.com
    • CollectorsEdition.org
Anyone have an AKH Script for iRotate?
« 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.
« Last Edit: September 12, 2014, 09:25:03 am by twistedsymphony »

BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9273
  • Last login:September 06, 2025, 07:49:22 am
  • ...
Re: Anyone have an AKH Script for iRotate?
« Reply #1 on: September 12, 2014, 12:26:06 pm »

twistedsymphony

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 584
  • Last login:February 03, 2024, 11:13:51 pm
  • Play stupid games... win stupid prizes.
    • solid-orange.com
    • CollectorsEdition.org
Re: Anyone have an AKH Script for iRotate?
« Reply #2 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.

BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9273
  • Last login:September 06, 2025, 07:49:22 am
  • ...
Re: Anyone have an AKH Script for iRotate?
« Reply #3 on: September 12, 2014, 03:25:10 pm »
How are you getting irotate to rotate the screen then?
« Last Edit: September 12, 2014, 03:26:47 pm by BadMouth »

twistedsymphony

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 584
  • Last login:February 03, 2024, 11:13:51 pm
  • Play stupid games... win stupid prizes.
    • solid-orange.com
    • CollectorsEdition.org
Re: Anyone have an AKH Script for iRotate?
« Reply #4 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

twistedsymphony

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 584
  • Last login:February 03, 2024, 11:13:51 pm
  • Play stupid games... win stupid prizes.
    • solid-orange.com
    • CollectorsEdition.org
Re: Anyone have an AKH Script for iRotate?
« Reply #5 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.

twistedsymphony

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 584
  • Last login:February 03, 2024, 11:13:51 pm
  • Play stupid games... win stupid prizes.
    • solid-orange.com
    • CollectorsEdition.org
Re: Anyone have an AKH Script for iRotate?
« Reply #6 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

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.

rockyrocket

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 372
  • Last login:January 01, 2019, 02:13:03 pm
Re: Anyone have an AKH Script for iRotate?
« Reply #7 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

twistedsymphony

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 584
  • Last login:February 03, 2024, 11:13:51 pm
  • Play stupid games... win stupid prizes.
    • solid-orange.com
    • CollectorsEdition.org
Re: Anyone have an AKH Script for iRotate?
« Reply #8 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.