Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to query midi devices. #1

Closed
GhostFenixx opened this issue Sep 1, 2019 · 14 comments
Closed

Failed to query midi devices. #1

GhostFenixx opened this issue Sep 1, 2019 · 14 comments

Comments

@GhostFenixx
Copy link

On startup of .exe file i'm getting:
ExeResult
On startup of a main .ahk script i'm getting(AHK itself is installed, and 2 other scripts launched with no issue):
AhkResult

As a midi i use USB MIDI interface, similiar to this:
https://www.ebay.com/itm/USB-MIDI-Interface-Cable-PC-to-Novation-25-SL-MK2-USB-MIDI-Controller-Keyboard-/161466292936
Midi is detectable and works in sound editing programs(Such as LMMS), and Internet Browsers.
Any tip?

@lilggamegenius
Copy link

Can confirm i get the exact same error on Windows 10. Tested with a USB MIDI device and with LoopBe1

@Pawel-Dymek
Copy link

same problem here :c

@ianespana
Copy link
Owner

Someone mentioned the same issue on Reddit. I need to figure this one out

@LiuShujushi
Copy link

same issue

@ianespana
Copy link
Owner

Alright, so, I'm working on a new version that doesn't use Autohotkey (Uses C#). It's almost ready, I just need to get warframe to react to the inputs

@lilggamegenius
Copy link

How are you sending the inputs? Are you sending it as a key like the AHK version?
you could try using user32.dll to send the keys

@ianespana
Copy link
Owner

@lilggamegenius Yes. I'm currently using WPF, so I can't use SendKeys.SendWait.
I'm going to try it out with user32's PostMessage, however it also has to be able to send mouse inputs, as that's what changes frets

@lilggamegenius
Copy link

maybe you can try that and add this extern function from the same dll? https://stackoverflow.com/a/2416762

@ianespana
Copy link
Owner

Could work. I've been doing some research and from what I gather I also have to get around DirectX, since it also proceses inputs in a different way.
It's a bit late now for me, but I'll look at this tomorrow

@lilggamegenius
Copy link

Can you push what you have to a test branch? i can try doing some testing on my own.

@ianespana
Copy link
Owner

Yup, done. Inside ActionManager.cs you'll find all of the user32.dll functions I've already implemented, as well as some of my (not yet finished) code.
OnNoteEvent is the method where note events will be processed, and the note ID should be passed to transform it to a key press

@ianespana
Copy link
Owner

@lilggamegenius You can make push requests to the Testing branch as you please, but I'll keep the development branch as clean as possible

@lilggamegenius
Copy link

Made a PR of my current changes but not ready to be merged yet. Managed to get warframe to react to input but still needs some work.
#4

@ianespana
Copy link
Owner

Issue no longer relevant to this new version. Closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants