#include <cstring>#include <windows.h>void movecursor(long x, long y);void leftclick();#ifdef _MSC_VER#define argc __argc#define argv __argvint WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) {#elifint main(int argc, char *argv[]) {#endif if (argc == 2 && !strcmp(argv[1], "click")) { leftclick(); } else if (argc == 4 && !strcmp(argv[1], "move")) { long x, y; x = atol(argv[2]); y = atol(argv[3]); movecursor(x, y); } return 0;}void movecursor(long x, long y) { INPUT buffer = {0}; buffer.type = INPUT_MOUSE; buffer.mi.dwFlags = MOUSEEVENTF_MOVE; buffer.mi.dx = x; buffer.mi.dy = y; SendInput(1, &buffer, sizeof(INPUT));}void leftclick() { INPUT buffer = {0}; buffer.type = INPUT_MOUSE; buffer.mi.dwFlags = MOUSEEVENTF_LEFTDOWN; SendInput(1, &buffer, sizeof(INPUT)); Sleep(50); buffer.mi.dwFlags = MOUSEEVENTF_LEFTUP; SendInput(1, &buffer, sizeof(INPUT));}
Sweet... Now we can all build at 123's level of precision. Oh and welcome to GTM!
YOU ARE AWESOME, BRO.
We're getting so close to BFE/AAM, yet far enough to not cross the line. xD
You got my vote for RA2 Wizard. Always and forever.
THATS SO AMAZING.EDIT: BFE/AAM is going outside of the game and editing the files that are inside the game, aka cheating. But this is inside the game, so I think it's ok!
For once the mods did something right
I think SM is a pretty cool guy, eh builds unicycle-bots and doesn't afraid of anything
I get "The system cannot find movepixel.exe" when I try anything.EDIT: Missing .dll file. Fixed now. Pretty cool. Might help with stacking in Stock
Well... That was the single greatest first post on this forum..
Now,We are so precise i may well check what the limit height is for a HPZ,a supervolt(with CB on?)And a DDT.Nah,not me ill be eyeballing it :P
obligatory battlebots 5 comment