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: AHK Irotate help  (Read 4282 times)

0 Members and 1 Guest are viewing this topic.

Connorsdad

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 268
  • Last login:May 18, 2024, 04:28:42 pm
  • I want to build my own arcade controls!
AHK Irotate help
« on: April 04, 2013, 10:42:24 am »
Feel like I always need help  :embarassed:

I'm trying to get irotate to run the same time as my monitor physically rotates, so I press N, the monitor physically rotates but I need the display to rotate too. I thought there would be a way for one key press to tell my motor to rotate and to simulate the pressing of Ctrl+Alt+Arrowkey but I've been trying for nearly 2 hours and I'm pulling my hair out  :banghead:
    

Le Chuck

  • Saint, make a poll!
  • Wiki Contributor
  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5509
  • Last login:June 14, 2025, 06:26:06 pm
  • <insert personal text here>
Re: AHK Irotate help
« Reply #1 on: April 04, 2013, 10:50:56 am »
What's your endstate?  What FE are you using?  What emulator are you needing to rotate?  Please provide more information and I'll try to walk you in.

Connorsdad

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 268
  • Last login:May 18, 2024, 04:28:42 pm
  • I want to build my own arcade controls!
Re: AHK Irotate help
« Reply #2 on: April 04, 2013, 10:56:38 am »
Not using any FE at the moment, In the process of building my cab, just finished the monitor rotation part and wanted to try it out via ahk.
    

Le Chuck

  • Saint, make a poll!
  • Wiki Contributor
  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5509
  • Last login:June 14, 2025, 06:26:06 pm
  • <insert personal text here>
Re: AHK Irotate help
« Reply #3 on: April 04, 2013, 01:04:28 pm »
I don't use AHK in my rotation setups, if you use MALA for your FE you can have it automate the rotation of the monitor and MAME, it's pretty seamless. 

BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9269
  • Last login:Yesterday at 10:17:06 am
  • ...
Re: AHK Irotate help
« Reply #4 on: April 04, 2013, 01:20:53 pm »
If your monitor rotates, why do you need windows to rotate?

Having trouble understanding what situation would require this....

Le Chuck

  • Saint, make a poll!
  • Wiki Contributor
  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5509
  • Last login:June 14, 2025, 06:26:06 pm
  • <insert personal text here>
Re: AHK Irotate help
« Reply #5 on: April 04, 2013, 01:23:48 pm »
If your monitor rotates, why do you need windows to rotate?

Having trouble understanding what situation would require this....

Exactly, you can just have MAME display the games in their native orientation. 

Connorsdad

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 268
  • Last login:May 18, 2024, 04:28:42 pm
  • I want to build my own arcade controls!
Re: AHK Irotate help
« Reply #6 on: April 04, 2013, 02:03:36 pm »
If your monitor rotates, why do you need windows to rotate?

Having trouble understanding what situation would require this....

Exactly, you can just have MAME display the games in their native orientation.

Ah I didn't know this  :blank:

I thought I need to get windows and monitor to rotate together before I move onto rotating games in hyperspin. Thanks guys, Ill be back when I'm stuck with hyperspin not rotating my games lol
    

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Today at 12:48:45 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: AHK Irotate help
« Reply #7 on: April 04, 2013, 09:23:08 pm »
Also irotate is used for video cards that don't support native rotation.  (TIP:  If your card is less than 10 years old, it supports native rotation)

nexusmtz

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 489
  • Last login:June 01, 2022, 03:14:22 am
Re: AHK Irotate help
« Reply #8 on: April 11, 2013, 12:12:18 am »
There's no need to simulate the hotkeys, just run irotate from your ahk script using ahk's run command.

From irotate.htm:

Code: [Select]
Using iRotate command-line parameters

In addition to selecting iRotate commands from the menu, the program supports command-line parameters that allow you to call iRotate functions on start-up and from elsewhere in Windows at any time.

In the absence of special command-line parameters, when iRotate is started it normally checks your current display settings and then simply resides in the Windows system tray awaiting user interaction. However, the program will also process certain command-line parameters you may choose to pass it, either when iRotate is first started or while the program is already running. This feature allows parents and administrators to change screen orientation for specific users on startup, and allows you to create shortcuts anywhere (on the Windows desktop or in the Start menu, for example) that call specific iRotate functions.

iRotate is normally started with the command iRotate.exe. To pass command-line parameters to the program, you might add, for example, "/rotate=90" to the command-line, as follows:

Rotating the display:

iRotate.exe /rotate=90
where 90 is new screen orientation; other values are 0, 180 and 270.

Manipulating a specific monitor (multi-monitor):

iRotate.exe /3:rotate=90

where “rotate=90” indicates the screen should be rotated 90 degress. 3, the very first number followed by a colon, tells iRotate to apply these settings to the third monitor in a multi-monitor environment. Again: if a monitor is not specified, the display settings are applied to the primary monitor.

Non-resident changes:

iRotate.exe /rotate=270 /exit

Normally when iRotate is run, it resides in the Windows system tray. However, it can also be passed a desired screen orientation and instructed to exit immediately after applying changes. If you never want iRotate to appear and stay resident on the system tray, append an /exit parameter.


Le Chuck

  • Saint, make a poll!
  • Wiki Contributor
  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5509
  • Last login:June 14, 2025, 06:26:06 pm
  • <insert personal text here>
Re: AHK Irotate help
« Reply #9 on: April 11, 2013, 12:16:17 am »
there's no need for irotate. 

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19427
  • Last login:Today at 12:48:45 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: AHK Irotate help
« Reply #10 on: April 11, 2013, 07:54:23 am »
I think we've lost em Le Chuck.... time to move on.  ;)