The MASM Forum Archive 2004 to 2012

Project Support Forums => IDE Development and Support => Easy Code => Topic started by: etow on February 29, 2008, 02:48:43 PM

Title: To push Tab Button automatically in the code without pressing the Tab Button
Post by: etow on February 29, 2008, 02:48:43 PM
Hi

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

Thanks
Title: Re: To push Tab Button automatically in the code without pressing the Tab Button
Post by: etow on February 29, 2008, 02:50:06 PM
I mean to Tab to the first Tab Stop position which is 0
Title: Re: To push Tab Button automatically in the code without pressing the Tab Button
Post by: Ramon Sala on February 29, 2008, 05:05:55 PM
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