AutoHotkey Community

It is currently May 27th, 2012, 5:10 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: December 14th, 2005, 1:17 am 
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


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 14th, 2005, 8:12 am 
Offline

Joined: April 19th, 2005, 10:26 am
Posts: 2249
Location: switzerland
an idea with ascii (maybe same)
transform,E,chr,27
send,%E%


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 15th, 2005, 1:01 am 
Thanks for the try, but that did the same thing.

Any other ideas???


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 15th, 2005, 10:29 am 
Offline

Joined: April 19th, 2005, 10:26 am
Posts: 2249
Location: switzerland
have not much experience with keys
try (look in help for) = ~ , controlsend, sendraw
http://www.autohotkey.com/docs/Hotkeys.htm


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 15th, 2005, 11:14 am 
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.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 29th, 2006, 3:06 am 
Code:
!^2::
SetKeyDelay, 10, 10
send {escape}
return


Works perfectly for me!!!!
The setkey was a must otherwise some emus didnt detect it.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 29th, 2006, 3:08 am 
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 :)


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 70 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group