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: AHK2 help  (Read 71 times)

0 Members and 1 Guest are viewing this topic.

DaOld Man

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5179
  • Last login:Yesterday at 11:14:32 pm
  • Wheres my coffee?
    • Skenny's Outpost
AHK2 help
« on: Yesterday at 11:10:48 pm »
Im trying to run a AHK V2 script in Windows 10.
I load it when PC starts.
When the script detects both left and right key pressed, it sends Escape to exit mala screensaver, or any game being run.
I then send a V to exit Mala.
It then exits Mala, then shutdowns the PC.
All seems to work fine except the Send Esc.
If Im not playing a game, Mala quits and then I get a clean shutdown.
However If I am running a game, when ESC is sent, the game doesnt exit.
It goes straight into PC shutdown.
I have tried
send {Esc}
and
send "{Esc}"
in the script, and neither seems to work.
Im sure its something simple, I have exhausted searching the net for it.