VOGONS

Common searches


First post, by lz300

User metadata
Rank Newbie
Rank
Newbie

I wrote a GUI interface using VB6 to drive my arcade cabinet, from which I will launch several types of games, including dos-based ones. My joystick control doesn't have an Esc button, which is needed to bring up the menu screens on some of these games. I'm using the sendkeys command to emulate the pressing of the Esc key when the right combo of buttons are pressed. I can get the code to recognize the DOSBox window as the active window, but it won't accept anything I try to pass to it.

Any ideas, anyone?

Reply 1 of 2, by TeaRex

User metadata
Rank Member
Rank
Member

DOSBox might deal in scancodes rather than keycodes. Did you try setting

usescancodes=false

in your dosbox.conf?

Alternatively you could use the DOSBox Mapper (CTRL-F1) to map ESC to some (one) joystick button. AFAIR it isn't possible to map a key to a specific combination of buttons (the DOSBox authors will know this).

tearex

Reply 2 of 2, by lz300

User metadata
Rank Newbie
Rank
Newbie

Setting usescancodes=false didn't make any difference. I'll look at remapping a button, but in some games, I might not have any to spare. I'm also gonna look into using scancodes instead of keycodes. I'll repost with my results when I get them.

Thanks