Forum Navigation
"Error 42: Symbol Undefined _mouse_event@16 --- errorlevel 1"
Moderators:
kris
Posted: 10/06/09 06:20:25 Modified: 10/06/09 08:10:41Hello, I'm using Windows with D 1.041 and Tango 0.99.8 (http://www.dsource.org/projects/tango/wiki/DmdDownloads) and have the following code:
import tango.sys.win32.UserGdi; class Mouse{ alias SetCursorPos set_pos; alias GetCursorPos get_pos; void left_click(){ mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0); mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0); } void right_click(){ mouse_event(MOUSEEVENTF_RIGHTDOWN, 0, 0, 0); mouse_event(MOUSEEVENTF_RIGHTUP, 0, 0, 0); } }I'm using mouse_event instead of SendInput? because only that is defined within the UserGdi? module.
When I try to compile it though I get the following error:
Error 42: Symbol Undefined _mouse_event@16 --- errorlevel 1Any help on that? I already tried it on two Windows (XP) machines.