To push Tab Button automatically in the code without pressing the Tab Button

Started by etow, February 29, 2008, 02:48:43 PM

Previous topic - Next topic

etow

Hi

How do you make Easy Code Visual Application to Tab automatically without physically pressing the Tab button on the keyboard?

Thanks

etow


Ramon Sala

Hi etow,

If you mean whether there is a method to do that, the answer is no, but if you want to simulate a button to be clicked just send a WM_LBUTTONDOWN and a WM_LBUTTONUP messages to the button. First, you must get the handle to the button (using the GetWindowItem method). Now, let's supose you have the button's handle in the Edi register:

Invoke SendMessage, Edi, WM_LBUTTONDOWN, MK_LBUTTON, 0
Invoke SendMessage, Edi, WM_LBUTTONUP, 0, 0



Ramon
Greetings from Catalonia