-
Автор темы
- #1
C++:
#include <iostream>
#include <windows.h>
#define argh 0x80
int main()
{
// y = (-) Верх (+) Низ
// x = (-) Лево (+) Право
float SetpositionCursor_x = 0.0f;
float SetpositionCursor_y = 0.0f;
bool foo = true;
POINT TakepositionCursor;
std::cout << "Working" << std::endl;
while (foo)
{
GetCursorPos(&TakepositionCursor);
if ((GetKeyState('C') & argh) != 0)
{
SetpositionCursor_y += 0.1f;
SetCursorPos(TakepositionCursor.x - (int)SetpositionCursor_x, TakepositionCursor.y + (int)SetpositionCursor_y);
Sleep(3);
std::cout << "Working MACROS" << std::endl;
}
else {
SetpositionCursor_y = 0.0f;
SetpositionCursor_x = 0.0f;
system("cls");
// std::cout << "Clear BUFFERS" << std::endl;
}
}
}