LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

set mouse position and left click on that position

Hi, I am trying to close some dialog boxes generated by an existing program which i have opened by using the command LaunchExectable(). I have tried the fakekeystroke() but it does not work.

I am presently using CVI 5.5. I also want to set mouse position as well as to left click on the position through a program.

I got a clue from one of the articles in your knowledge base about using windows SDK. When i include the winuser.h from the /../sdk/include/.. and compile..there is always an error of syntax error; found 'identifier' expecting ';' for lines
typedef VOID MENUTEMPLATEA
typedef PVOID LPMENUTEMPLATEA

Plus, as the win32.lib comes with CVI? I searched my whole harddisk but found nothing similar

Than
ks

wee liat
0 Kudos
Message 1 of 3
(3,182 Views)
The Windows SDK comes with the full development system of CVI. And it gets installed under /bin/sdk. Assuming you have it installed, make sure you include the file before CVI's header file , in case you are using the latter. Do not include winuser.h by itself. There are several necessary macros that windows.h defines for you. Besides, windows.h includes winuser.h. Give it a try.

Regards,
Azucena Perez
National Instruments
0 Kudos
Message 2 of 3
(3,182 Views)
Thanks Aperez...but can i ask is there any commands to simulate a mouse left click on the position that i have set using SetCursorPos

Thanks
wee liat
0 Kudos
Message 3 of 3
(3,182 Views)