AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Send ESC not working well

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
jackblotto
Guest





PostPosted: Wed Dec 14, 2005 12:17 am    Post subject: Send ESC not working well Reply with quote

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

PostPosted: Wed Dec 14, 2005 7:12 am    Post subject: Reply with quote

an idea with ascii (maybe same)
transform,E,chr,27
send,%E%
Back to top
View user's profile Send private message
Guest






PostPosted: Thu Dec 15, 2005 12:01 am    Post subject: Reply with quote

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

PostPosted: Thu Dec 15, 2005 9:29 am    Post subject: Reply with quote

have not much experience with keys
try (look in help for) = ~ , controlsend, sendraw
http://www.autohotkey.com/docs/Hotkeys.htm
Back to top
View user's profile Send private message
patito
Guest





PostPosted: Thu Dec 15, 2005 10:14 am    Post subject: Reply with quote

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






PostPosted: Sun Jan 29, 2006 2:06 am    Post subject: Reply with quote

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





PostPosted: Sun Jan 29, 2006 2:08 am    Post subject: Reply with quote

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 Smile
Back to top
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group