المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Can we invoke any event as a Mouse Left/Right button action?



C++ Programming
04-09-2009, 06:47 AM
I would like to select Window objects (Start, File, Close, Minimize, Maximize ...) as a real mouse, however I don't have a real mouse, but I can use my capture coordinate to move the mouse as the following:

SetCapture();
SetCursorPos(pos_X, pos_Y);
ReleaseCapture();

By any chance, when my pointer (pos_X, pos_Y) pointing at a Window object, can I invoke any command, event to do as Left/Right-Click like the real Left/Right mouse buttons?

Many thanks for any help. http://www.barakasoft.com/script/Forums/Images/smiley_doh.gif