Move Mouse/Keyboard Press

Blitz3D Forums/Blitz3D Beginners Area/Move Mouse/Keyboard Press

AJ00200(Posted 2009) [#1]
Is there a way to move the mousa/press a key with a program?

Im trying to use the wii Internet Channel to control my computer.


Warner(Posted 2009) [#2]
For keys, you could use api_kbd_event. For mouse, use api_SetCursorPos.
Both commands first need to be declared in a .decls file. That are textfiles that are renamed to .decls instead of .txt, containing a description of the commands. For example, see this thread:
http://www.blitzbasic.com/codearcs/codearcs.php?code=1943


AJ00200(Posted 2009) [#3]
Thanks, that helps a lot.
Now I just need a way ti-o move the mouse