Page 1 of 1

API + Buttons

Posted: Mon Jul 07, 2003 9:08 pm
by DarthPuff
=\ I was wondering how to use the WinAPI in order to see if a button has been clicked... I'm thinking I need to send it a message then process the PB events... but I dont know quite how...

Posted: Mon Jul 07, 2003 9:25 pm
by waffle
not sure why you need the api to read a button.... maybe you wish to simulate a button press from another app? One way to support that would be to add a keyboard shortcut to a menu item in your "PB app" and then use the SendKeys api function to send a message to your "PB app" which then peform some action when the shortcut key is recieved. The triggered event would be the same as a menu item selection, which could call the button pressed function that you would call in the button pressed event.

hope this gets you looking in the right places for answers. Naturally, I left out stuff like how to locate your app from the window title and exactly what parameters you need, but the help files for the win api should provide that information much better than I can.

Posted: Mon Jul 07, 2003 9:31 pm
by DarthPuff
=P I need a really reliable way of getting button presses... =\ has to be win api... i guess...