Fritoss
New member
- Joined
- Jan 24, 2019
- Messages
- 2
- Reaction score
- 0
Hello everyone! Basically, I'm new with c++ and programming, but I managed to create a program, that's open RakSAMPClient at XX:59 logins and wait for payday, after payday it close RakSAMPClient and waits for next payday. Everything sounds good, but it's uncomfortable because you can't use your mouse when the process is started, basically when the clock hits XX:59 you can't do anything else, just wait.
for example in my code I used
and
so I can hit the "OK" button and same for password input. So what I'm asking, is it possible to make all actions in the background without using a mouse?
for example in my code I used
C++:
mouse_event(MOUSEEVENTF_LEFTDOWN | MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
C++:
POINT cursorPos;
HWND handle = FindWindowA(NULL, "payday");
ScreenToClient(handle, &cursorPos);
int x, y;
x = cursorPos.x;
y = cursorPos.y;
int Rx = 1353;
int Ry = 447;
SetCursorPos(Rx, Ry);