Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*#include <windows.h>
- #include <stdio.h>
- //#include <d3dx9.h>
- #include <tlhelp32.h>
- //#pragma comment(lib,"d3dx9.lib")
- #include <time.h>
- #include <math.h>
- #pragma comment(lib,"wsock32.lib")
- int i,l,s1=0,s2=0,cx,cy;
- void pointer() {
- POINT p;
- signed int dirx,diry=3;
- if (time(0)%2) {
- s2--;
- p.x=0;
- dirx=-3;
- }
- else {
- s1--;
- p.x=cx;
- dirx=3;
- }
- while (!GetAsyncKeyState(VK_F11)) {
- if (p.y<=0||p.y>=cy) diry=-diry;
- if ((p.x>=70&&p.x<=80&&p.y>=i&&p.y<=(i+120)) || (p.x>=cx-80&&p.x<=cx-70&&p.y>=l&&p.y<=(l+120))) dirx=-dirx;
- if (p.x<70) {
- s2++;
- dirx=-dirx;
- while (!GetAsyncKeyState(VK_RIGHT)) SetCursorPos(80,i+60);
- GetCursorPos(&p);
- }
- if (p.x>cx-80) {
- s1++;
- dirx=-dirx;
- while (!GetAsyncKeyState(VK_NUMPAD0)) SetCursorPos(cx-80,l+60);
- GetCursorPos(&p);
- }
- p.x+=dirx;
- p.y+=diry;
- SetCursorPos(p.x,p.y);
- Sleep(1);
- }
- }
- void A() {
- while (1) {
- while (!GetAsyncKeyState('O')) Sleep(100);
- Sleep(500);
- while (!GetAsyncKeyState('O')) {
- keybd_event(VK_SHIFT,0,0,0);
- //mouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,0);
- Sleep(30);
- keybd_event(VK_SHIFT,0,KEYEVENTF_KEYUP,0);
- //mouse_event(MOUSEEVENTF_LEFTUP,0,0,0,0);
- Sleep(100);
- }
- Sleep(500);
- }
- }
- int main(int argc,char *argv[]) {
- //int a=10;int *b=&a;*b=(*b)+1;printf("%d",a);
- //getchar();
- //A();
- lolref();
- char sc[50];
- HDC dc=GetDC(0),d1=CreateCompatibleDC(dc),d2=CreateCompatibleDC(dc),d3=CreateCompatibleDC(dc);
- cx=GetSystemMetrics(SM_CXSCREEN);
- cy=GetSystemMetrics(SM_CYSCREEN);
- while (!GetAsyncKeyState(VK_F11));
- Sleep(100);
- SelectObject(d1,CreateCompatibleBitmap(dc,10,120));
- SelectObject(d2,CreateCompatibleBitmap(dc,10,120));
- SelectObject(d3,CreateCompatibleBitmap(dc,10,cy));
- for (i=0;i<10;i++)
- for (l=0;l<120;l++) {
- SetPixel(d1,i,l,0xFF0000);
- SetPixel(d2,i,l,0x0000FF);
- }
- for (i=0;i<10;i++)
- for (l=0;l<cy;l++)
- SetPixel(d3,i,l,0xFFFFFF);
- i=l=0;
- CreateThread(0,0,(LPTHREAD_START_ROUTINE)pointer,0,0,0);
- while (1) {
- sprintf(sc,"%d-%d",s1,s2);
- TextOut(dc,cx/2-10,100,sc,strlen(sc));
- BitBlt(dc,70,0,10,cy,d3,0,0,SRCCOPY);
- BitBlt(dc,cx-80,0,10,cy,d3,0,0,SRCCOPY);
- BitBlt(dc,70,i,10,120,d1,0,0,SRCCOPY);
- BitBlt(dc,cx-80,l,10,120,d2,0,0,SRCCOPY);
- if (GetAsyncKeyState(VK_UP)&&i>=0) i-=10;
- if (GetAsyncKeyState(VK_DOWN)&&i<=cy-120) i+=10;
- if (GetAsyncKeyState(VK_NUMPAD8)&&l>=0) l-=10;
- if (GetAsyncKeyState(VK_NUMPAD5)&&l<=cy-120) l+=10;
- Sleep(4);
- }
- }
- /*int main(int argc,char *argv[]) {
- POINT p1,p2;
- COLORREF c;
- int r,g,b,m,M;
- while (1) {
- Sleep(1);
- GetCursorPos(&p1);
- if (p1.x!=p2.x||p1.y!=p2.y) {
- p2.x=p1.x;
- p2.y=p1.y;
- c=GetPixel(GetDC(0),p2.x,p2.y);
- r=c>>16;
- g=(c>>8)&0xFF;
- b=c&0xFF;
- m=M=r;
- if (g<m) m=g;
- if (g>M) M=g;
- if (b<m) m=b;
- if (b>M) M=b;
- printf("%d %d %d %d\n",r,g,b,M-m);
- }
- }
- }*/
- #include <windows.h>
- #include <stdio.h>
- void pointerpos() {
- POINT p;
- while (1) {
- if (GetAsyncKeyState(VK_F7)&0x8000) {
- GetCursorPos(&p);
- printf("%u %u\n",p.x,p.y);
- Sleep(100);
- }
- Sleep(100);
- }
- }
- void clickat(int x,int y) {
- SetCursorPos((x*GetSystemMetrics(SM_CXSCREEN))/1680,(y*GetSystemMetrics(SM_CYSCREEN))/945);
- mouse_event(MOUSEEVENTF_LEFTDOWN,0,0,0,0);
- Sleep(100);
- mouse_event(MOUSEEVENTF_LEFTUP,0,0,0,0);
- Sleep(1000);
- }
- void rclickat(int x,int y) {
- SetCursorPos((x*GetSystemMetrics(SM_CXSCREEN))/1680,(y*GetSystemMetrics(SM_CYSCREEN))/945);
- mouse_event(MOUSEEVENTF_RIGHTDOWN,0,0,0,0);
- Sleep(100);
- mouse_event(MOUSEEVENTF_RIGHTUP,0,0,0,0);
- Sleep(1000);
- }
- void keypress(char *keys) {
- int i;
- for (i=0;keys[i]!=0;i++) {
- keybd_event(keys[i],0,0,0);
- Sleep(100);
- keybd_event(keys[i],0,KEYEVENTF_KEYUP,0);
- Sleep(200);
- }
- }
- int main() {
- CreateThread(0,0,(LPTHREAD_START_ROUTINE)pointerpos,0,0,0);
- while (1) {
- SetForegroundWindow(FindWindow(0,"PVP.net Client"));
- SetWindowPos(FindWindow(0,"PVP.net Client"),0,0,0,0,0,SWP_NOSIZE);
- clickat(639,44);
- clickat(333,235);
- clickat(940,713);
- keypress("PZANVBPQUZZ\x09 ABCDEFG\x0d");
- Sleep(6000);
- clickat(746,461);
- clickat(734,577);
- clickat(933,456);
- clickat(895,497);
- Sleep(2000);
- clickat(848,503);
- clickat(596,557);
- Sleep(30000);
- while (FindWindow(0,"League of Legends (TM) Client")) {
- rclickat(547,427);
- Sleep(4000);
- rclickat(952,427);
- Sleep(4000);
- clickat(825,646);
- Sleep(4000);
- }
- Sleep(5000);
- clickat(1037,735);
- Sleep(3000);
- }
- }
Add Comment
Please, Sign In to add comment