Jump to content
Macro Express Forums
jordan1

Macros In Game

Recommended Posts

I am trying to use a macro to control VisualBoy Advance (a game emulator which uses keyboard input) but cannot get it to work.

 

I heard that DirectX can disable keyboard hooks in macros, so I tried using VBA SDL version and resetting the hooks.

 

I have used a virtual controller to emulate the keys and this works so there seems to be no general inability for VBA to work with virtual devices but it will not recognise macro keystrokes.

 

Does anyone know what the issue might be? (The difference between physical keystrokes and emulated ones as detected by VBA?)

 

Or can anyone tell me a little about how inputting works on VBA/game interfaces (or point me in the direction of finding the solution)?

 

Thanks.

Share this post


Link to post
Share on other sites

It is likely that the emulator has installed its own keyboard hook after Macex, which means it will intercept keystrokes before Macex. You can try Macex's Restore Keyboard and Mouse Hooks command after the emulator has loaded.

 

This is accessible by right-clicking on the Macex icon in the tray.

Share this post


Link to post
Share on other sites

One other thing to consider is that SDL generally uses the DirectInput interface (the input mechanism for DirectX) on Windows machines. So, getting it to work in VBA SDL is not really the same as getting it to work in Macro Express as DirectInput bypasses the hooks completely.

Share this post


Link to post
Share on other sites

Thanks for the tips, it's made things a lot clearer. IO tried rstoring the hooks but I didn't realise that SDL uses DirectInput.

 

Thanks again

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...