From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
Somebody knows if is it possible to move the mouse pointer to anywhere I want, something like SetGlobalMouseState... or a way to create a similar function? I'm working with images instead of buttons so this would be the only way to maintain the mouseOver functions while using KEYPRESS events to move along the menu options.
Since a mouse is an input device CVI only offers functions like GetRelativeMouseState to read the state of the mouse. There is a function in the Windows DSk called mouse_event. I know you can use that function to generate mouse events. I'm not sure if this will move the mouse once an event is generated. You can find more informatin on this function in the Windows SDK help.
Thanks, I've finally resolved it using a Windows API which has a function called SetCursorPos(x,y). It needs "windows.h" to be included and "user32.lib" library added to project.