Jump to content
shinnok

rjl software pranks

Recommended Posts

Posted

Cu ocazia asta mi-am adus aminte ca am scris si eu candva un cod pentru un maus dinasta nebun :D ...oooold times....


#include <windows.h>

int
main (void)
{

POINT *newp, *oldp;
newp = new POINT;
oldp = new POINT;
FreeConsole ();
GetCursorPos (oldp);
for (
{
GetCursorPos (newp);
if (newp->x > oldp->x)
SetCursorPos (newp->x - 3, newp->y);
if (newp->x < oldp->x)
SetCursorPos (newp->x + 3, newp->y);
if (newp->y < oldp->y)
SetCursorPos (newp->x, newp->y + 3);
if (newp->y > oldp->y)
SetCursorPos (newp->x, newp->y - 3);
oldp->x = newp->x;
oldp->y = newp->y;
Sleep(10);
}
}

compilati-l sub Visual Studio pentru ca nu l-am testat sub altceva

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...