I have been trying out some things with the SendMessage function which is supposed to send keystrokes to a certain window.
Code:
SendMessage(hwndMineSweeper, WM_LBUTTONDOWN, MK_LBUTTON, (YPos<<16)+XPos);
SendMessage(hwndMineSweeper, WM_LBUTTONUP, MK_LBUTTON, (YPos<<16)+XPos);
I have a float number which always has 3 digits before the decimal point and 2 after: XXX.XX
Is there a way I can send the whole float number without having to create a seperate Sendmessage command for each digit?
If not, could the number first be converted to a string and then sent as a string to the sendmessage function?