If you have a problem or need to report a bug please email : support@dsprobotics.com
There are 3 sections to this support area:
DOWNLOADS: access to product manuals, support files and drivers
HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects
USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here
NEW REGISTRATIONS - please contact us if you wish to register on the forum
Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright
Active Window Detection
2 posts
• Page 1 of 1
Active Window Detection
I've designed a plugin where the hotkeys/keyboard shortcuts are very important.
If the plugin window is not the active window, then the hotkeys/keyboard shortcuts won't work. Instead, they will control the DAW.
I'd like to have something in the GUI to show if the plugin window is active or not. Basically, you glance over and if it's green, you know you can use the hotkeys, if it's red then you know you can't and that you need to make the window active.
Has anyone run across a way to do this?
If the plugin window is not the active window, then the hotkeys/keyboard shortcuts won't work. Instead, they will control the DAW.
I'd like to have something in the GUI to show if the plugin window is active or not. Basically, you glance over and if it's green, you know you can use the hotkeys, if it's red then you know you can't and that you need to make the window active.
Has anyone run across a way to do this?
-
SBMastering - Posts: 17
- Joined: Tue Jun 12, 2012 11:47 pm
Re: Active Window Detection
I've just started looking into this myself - I want to make a plugin that turns MIDI or XBox buttons into key presses and other commands that I can send to another app'.
The functions we both need can be accessed using Ruby and the Win32API class to call the Windoze .dlls. There's a section of the user guide about using Win32API, but I've still yet to fully work out the right call signatures for the .dll functions (the Microsoft API doc's are not very helpful!).
I've done similar stuff using AutoIt before, but that hides all of the nasty .dll call stuff.
If I get anywhere, I'll let you know - but hopefully someone with a bit more Windows API experience will be able to chip in before my head explodes!
The functions we both need can be accessed using Ruby and the Win32API class to call the Windoze .dlls. There's a section of the user guide about using Win32API, but I've still yet to fully work out the right call signatures for the .dll functions (the Microsoft API doc's are not very helpful!).
I've done similar stuff using AutoIt before, but that hides all of the nasty .dll call stuff.
If I get anywhere, I'll let you know - but hopefully someone with a bit more Windows API experience will be able to chip in before my head explodes!
All schematics/modules I post are free for all to use - but a credit is always polite!
Don't stagnate, mutate to create!
Don't stagnate, mutate to create!
-
trogluddite - Posts: 1730
- Joined: Fri Oct 22, 2010 12:46 am
- Location: Yorkshire, UK
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 60 guests