| View previous topic :: View next topic |
| Author |
Message |
jackblotto Guest
|
Posted: Wed Dec 14, 2005 12:17 am Post subject: Send ESC not working well |
|
|
I have a MAME cabinet which allows me to run the old video arcade games on a pc inside the cabinet with a contoller to use for input. I do not have an ESC key programmed as I have no room. I only need an ESC for a particular emulator I run. When running this emulator I need to be able to send an ESC to stop game play. At all other times I need to send the actuall key assigned to the arcade button. I have gotten the code correct to send the correct key based on "class" within AHK. The problem I have is that while I know I'm sending an ESC at the right time, it seems that there is an issue where the keyboard ESC escapes fine, but the AHK ESC doesn't. When I use the macro recorder to watch what is happening though, it looks like there is a "Send, ESC" using the keyboard and a "Send, ESC" when allowing AHK to do the work. BUT, the keyboard works and AHK doesn't. Now, what I have noticed is that the particular app see the ESC and acts upon it, but only to close one window and the keyboard escape exits the window and whatever elses is "associated" to the app. I just don't get it. What is the difference between sending a keyboard ESC and AHK sending it? Is the keyboard ESC sending more than one or holding the key suppression down longer, WITHOUT this showing up in the macro recorder? I played with keydelay and suppression, but couldn't figure out is this could be part of the problem.
HELP, I'm so close to such a cool trick config!!!!
thx, dp |
|
| Back to top |
|
 |
garry
Joined: 19 Apr 2005 Posts: 2198 Location: switzerland
|
Posted: Wed Dec 14, 2005 7:12 am Post subject: |
|
|
an idea with ascii (maybe same)
transform,E,chr,27
send,%E% |
|
| Back to top |
|
 |
Guest
|
Posted: Thu Dec 15, 2005 12:01 am Post subject: |
|
|
Thanks for the try, but that did the same thing.
Any other ideas??? |
|
| Back to top |
|
 |
garry
Joined: 19 Apr 2005 Posts: 2198 Location: switzerland
|
|
| Back to top |
|
 |
patito Guest
|
Posted: Thu Dec 15, 2005 10:14 am Post subject: |
|
|
i think i know what you want and why is not working.
if you are trying to close mame from running but you are playing in fullscreen mode using win98 autohotkey cant send the esc key (or any other key) to mame.
what to close mame with a key? try " process,close,mame.exe " in your hotkey instead send.
i hope this help you. |
|
| Back to top |
|
 |
Guest
|
Posted: Sun Jan 29, 2006 2:06 am Post subject: |
|
|
| Code: |
!^2::
SetKeyDelay, 10, 10
send {escape}
return
|
Works perfectly for me!!!!
The setkey was a must otherwise some emus didnt detect it. |
|
| Back to top |
|
 |
JustusIV Guest
|
Posted: Sun Jan 29, 2006 2:08 am Post subject: |
|
|
| Code: |
!^5::
SoundSet +5 ; Decrease master volume by 5%
return
!^c::
SoundSet -5 ; Increase master volume by 5%
return
|
Hope my two little configs help.
You have anymore little proggies for our cabs  |
|
| Back to top |
|
 |
|