Adding new events?

BlitzMax Forums/MaxGUI Module/Adding new events?

Nigel Brown(Posted 2007) [#1]
Is there a way for me to look at events that are not currently in the list? ie: I would like to watch DEVICECHANGED event to monitor when a USB device is plugged or unplpgged.


tonyg(Posted 2007) [#2]
Can you use CreateEvent to do the check and then EmitEvent?


grable(Posted 2007) [#3]
As far as i know, WM_DEVICECHANGE isnt trapped by MaxGUI. So youd have to either create a hidden window and trap it yourself, or override the window func of a maxgui window and trap it there.


Nigel Brown(Posted 2007) [#4]
Thanks for the replies, does anyone have any examples? There seem to be many other events that look usefull additions as well.


grable(Posted 2007) [#5]
something like this?



Nigel Brown(Posted 2007) [#6]
grable, Wow and thats not a "vista wow" many many thanks works exactly as I had hoped.


Nigel Brown(Posted 2007) [#7]
Am looking to do a similar thing on the Mac now and the above example is windows only! Any ideas on a multi platform solution?