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: does anyone use autohotkeys?  (Read 2147 times)

0 Members and 1 Guest are viewing this topic.

knightrdrx

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 130
  • Last login:June 06, 2020, 10:45:36 pm
  • I want to build my own arcade controls!
does anyone use autohotkeys?
« on: January 24, 2015, 02:06:53 pm »
Any cons to using autohotkeys software?..i guess it would be running on start up.  It can help eliminate having to pull out the keyboard to get to the escape or enter key.  I could control the play controls of windows media player with the x-arcade without using the trackball and side button...or should i just reprogram some of the x-arcade?

keilmillerjr

  • Trade Count: (+5)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1847
  • Last login:October 06, 2023, 10:20:39 pm
  • Web Developer.
Re: does anyone use autohotkeys?
« Reply #1 on: January 24, 2015, 02:28:46 pm »
The only con I've found so far is its inability to multithread, which I know there are a few alternatives to overcome this limitation. If a hotkey sequence is initiated while another hotkey sequence is running, it puts the first on hold. Definitely undesirable but not the end of the world.

EMDB

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 865
  • Last login:September 05, 2023, 09:18:51 am
  • Project RetroCade
Re: does anyone use autohotkeys?
« Reply #2 on: January 24, 2015, 03:54:12 pm »
The only con I've found so far is its inability to multithread, which I know there are a few alternatives to overcome this limitation. If a hotkey sequence is initiated while another hotkey sequence is running, it puts the first on hold. Definitely undesirable but not the end of the world.
It doesn't. I have a global F12 -> audio mute toggle script running while every emulator has it's own (e.g. ESC -> Alt-F4). The work just fine along...

keilmillerjr

  • Trade Count: (+5)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1847
  • Last login:October 06, 2023, 10:20:39 pm
  • Web Developer.
Re: does anyone use autohotkeys?
« Reply #3 on: January 24, 2015, 05:02:45 pm »
The only con I've found so far is its inability to multithread, which I know there are a few alternatives to overcome this limitation. If a hotkey sequence is initiated while another hotkey sequence is running, it puts the first on hold. Definitely undesirable but not the end of the world.
It doesn't. I have a global F12 -> audio mute toggle script running while every emulator has it's own (e.g. ESC -> Alt-F4). The work just fine along...

I don't think you understand. Autohotkey does not multithread. So the same autohotkey app can not execute two different hotkeys at the same time. Press a to execute a:: code and the. Press b to execute b:: code, autohotkey will put a on pause and resume when b is done executing. Did rephrasing it make more sense?

Louis Tully

  • Trade Count: (+5)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1800
  • Last login:February 13, 2015, 09:41:03 pm
Re: does anyone use autohotkeys?
« Reply #4 on: January 24, 2015, 05:09:34 pm »
.
« Last Edit: February 12, 2015, 07:17:23 pm by Louis Tully »

EMDB

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 865
  • Last login:September 05, 2023, 09:18:51 am
  • Project RetroCade
Re: does anyone use autohotkeys?
« Reply #5 on: January 24, 2015, 05:20:09 pm »
The only con I've found so far is its inability to multithread, which I know there are a few alternatives to overcome this limitation. If a hotkey sequence is initiated while another hotkey sequence is running, it puts the first on hold. Definitely undesirable but not the end of the world.
It doesn't. I have a global F12 -> audio mute toggle script running while every emulator has it's own (e.g. ESC -> Alt-F4). The work just fine along...

I don't think you understand. Autohotkey does not multithread. So the same autohotkey app can not execute two different hotkeys at the same time. Press a to execute a:: code and the. Press b to execute b:: code, autohotkey will put a on pause and resume when b is done executing. Did rephrasing it make more sense?
I still don't understand. You want two scripts executed in parallel within a single compiled executable?

BadMouth

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 9270
  • Last login:July 14, 2025, 01:30:54 pm
  • ...
Re: does anyone use autohotkeys?
« Reply #6 on: January 24, 2015, 05:57:53 pm »
I'm picky about having stuff run in the background, but I install autohotkey on every emulator system I build.
It can be the solution to many problems getting emulators to launch and play correctly.
I have no hesitation recommending it and running a script at startup.

I had an AHK script that ran all the time on my old x-arcade setup.
The tankstick has an unused input on the trackball harness that posts as the middle mouse button.
So I added a red exit button in the upper left of the CP and connected it to this unused input.
Then I had an AHK script post ESC when the middle mouse button was pressed (mbutton::ESC)

Worked like a charm on everything but MAME, but MAME allows you to remap the exit button to mbutton anyway.
Since MAME gets it's input directly, windows programs like AHK don't work with it.

keilmillerjr

  • Trade Count: (+5)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1847
  • Last login:October 06, 2023, 10:20:39 pm
  • Web Developer.
Re: does anyone use autohotkeys?
« Reply #7 on: January 24, 2015, 07:01:30 pm »
The only con I've found so far is its inability to multithread, which I know there are a few alternatives to overcome this limitation. If a hotkey sequence is initiated while another hotkey sequence is running, it puts the first on hold. Definitely undesirable but not the end of the world.
It doesn't. I have a global F12 -> audio mute toggle script running while every emulator has it's own (e.g. ESC -> Alt-F4). The work just fine along...

I don't think you understand. Autohotkey does not multithread. So the same autohotkey app can not execute two different hotkeys at the same time. Press a to execute a:: code and the. Press b to execute b:: code, autohotkey will put a on pause and resume when b is done executing. Did rephrasing it make more sense?
I still don't understand. You want two scripts executed in parallel within a single compiled executable?

Yes. Code within same ahk script/exe simultaneously running. Read the docs and maybe they will make more sense.

https://www.autohotkey.com/docs/misc/Threads.htm

keilmillerjr

  • Trade Count: (+5)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1847
  • Last login:October 06, 2023, 10:20:39 pm
  • Web Developer.
Re: does anyone use autohotkeys?
« Reply #8 on: January 24, 2015, 07:06:32 pm »
I'm picky about having stuff run in the background, but I install autohotkey on every emulator system I build.
It can be the solution to many problems getting emulators to launch and play correctly.
I have no hesitation recommending it and running a script at startup.

I had an AHK script that ran all the time on my old x-arcade setup.
The tankstick has an unused input on the trackball harness that posts as the middle mouse button.
So I added a red exit button in the upper left of the CP and connected it to this unused input.
Then I had an AHK script post ESC when the middle mouse button was pressed (mbutton::ESC)

Worked like a charm on everything but MAME, but MAME allows you to remap the exit button to mbutton anyway.
Since MAME gets it's input directly, windows programs like AHK don't work with it.

Yes and no. You can compile mame to accept direct input, in turn allowing key presses to be intercepted and received from ahk. However, mame does accept window messages for pausing, closing, etc. So there are some things you can do with the precompiled version.

My app I'm almost ready to release takes advantage of these things. :) I just need to make a readme, license, and push to github/bintray.

knightrdrx

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 130
  • Last login:June 06, 2020, 10:45:36 pm
  • I want to build my own arcade controls!
Re: does anyone use autohotkeys?
« Reply #9 on: January 26, 2015, 06:51:20 pm »
that was a confusing discussion

empardopo

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 526
  • Last login:Yesterday at 05:12:51 am
    • My personal forum
Re: does anyone use autohotkeys?
« Reply #10 on: January 27, 2015, 02:26:39 am »
Any cons to using autohotkeys software?..i guess it would be running on start up.  It can help eliminate having to pull out the keyboard to get to the escape or enter key.  I could control the play controls of windows media player with the x-arcade without using the trackball and side button...or should i just reprogram some of the x-arcade?

Do you know my AllInOneFYC program? You could take a look!
Greetings!