Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Lost control on mouse and so...
#1
Alright so... I made a troll program. 

I did two versions, not dangerous and dangerous. First version is for you to test, if you want. 

There is light version: which makes that mouse going crazy after launching program. It's in cmd so it's quite simple to close it with keyboard. Just by ctrl+c, or going task manager.
Hard version is more dangerous and i pretty sure that if someone launch it, he will not able to close it. Mouse going crazy, clicking and moving randomly places and opening websites(screamers) each second or so. It's getting really laggy that you can't do anything.

There are links:

LINK->Light version
Code:
#include <iostream>
#include <ctime>
#include <windows.h>
#include <Tchar.h>


using namespace std;


main()
{
srand(time(NULL));

   int g = 5;
   do
   {

       int x = rand()%1000;
       int y = rand()%1000;

       SetCursorPos(x,y);

   // ShellExecute( NULL, "open", "http://agor.io", "", "", SW_SHOWNORMAL );
   // mouse_event(MOUSEEVENTF_LEFTDOWN, 0 , 0 , 0 , 0);
   // mouse_event(MOUSEEVENTF_LEFTUP, 0 , 0 , 0 , 0);

   }while(g>0);



}
LINK->Hard version
Code:
#include <iostream>
#include <ctime>
#include <windows.h>
#include <Tchar.h>


using namespace std;


main()
{
srand(time(NULL));

   int g = 5;
   do
   {

       int x = rand()%1000;
       int y = rand()%1000;

       SetCursorPos(x,y);

    ShellExecute( NULL, "open", "http://agor.io", "", "", SW_SHOWNORMAL );
    mouse_event(MOUSEEVENTF_LEFTDOWN, 0 , 0 , 0 , 0);
    mouse_event(MOUSEEVENTF_LEFTUP, 0 , 0 , 0 , 0);

   }while(g>0);



}
I included images of code there and .cpp to edit the code. (in those links) Smile

Hope you like it!
Reply
#2
(06-21-2015, 03:01 PM)Clerkosh Wrote:  Alright so... I made a troll program. 

I did two versions, not dangerous and dangerous. First version is for you to test, if you want. 

There is light version: which makes that mouse going crazy after launching program. It's in cmd so it's quite simple to close it with keyboard. Just by ctrl+c, or going task manager.
Hard version is more dangerous and i pretty sure that if someone launch it, he will not able to close it. Mouse going crazy, clicking and moving randomly places and opening websites(screamers) each second or so. It's getting really laggy that you can't do anything.

There are links:

LINK->Light version
Code:
#include <iostream>
#include <ctime>
#include <windows.h>
#include <Tchar.h>


using namespace std;


main()
{
srand(time(NULL));

   int g = 5;
   do
   {

       int x = rand()%1000;
       int y = rand()%1000;

       SetCursorPos(x,y);

   // ShellExecute( NULL, "open", "http://agor.io", "", "", SW_SHOWNORMAL );
   // mouse_event(MOUSEEVENTF_LEFTDOWN, 0 , 0 , 0 , 0);
   // mouse_event(MOUSEEVENTF_LEFTUP, 0 , 0 , 0 , 0);

   }while(g>0);



}
LINK->Hard version
Code:
#include <iostream>
#include <ctime>
#include <windows.h>
#include <Tchar.h>


using namespace std;


main()
{
srand(time(NULL));

   int g = 5;
   do
   {

       int x = rand()%1000;
       int y = rand()%1000;

       SetCursorPos(x,y);

    ShellExecute( NULL, "open", "http://agor.io", "", "", SW_SHOWNORMAL );
    mouse_event(MOUSEEVENTF_LEFTDOWN, 0 , 0 , 0 , 0);
    mouse_event(MOUSEEVENTF_LEFTUP, 0 , 0 , 0 , 0);

   }while(g>0);



}
I included images of code there and .cpp to edit the code. (in those links) Smile

Hope you like it!

Really nice, in the dangerous version you should make it so it opens 10 windows with porn or something.
Reply
#3
(06-21-2015, 03:20 PM)Loouh69 Wrote:  Really nice, in the dangerous version you should make it so it opens 10 windows with porn or something.
It opens infinitely  many times, cause it's looped. ^-^
Reply
#4
I am scared to click it
Reply
#5
damn, 889kb :O
what compiler are you using? lol
just compile it as C code with gcc and it will be like 10kb
also, to get rid of the console just change the target type to GUI Application (assuming you using code::blocks)
Reply
#6
would i be able to put this in a .bat file format for someone to open
Reply
#7
(06-29-2015, 01:39 PM)Racyy Wrote:  would i be able to put this in a .bat file format for someone to open

Are you autistic?
That's C source code and must be compiled into a  binary using a compiler you scrub.
Also post approved!
Reply
 




Users browsing this thread: 1 Guest(s)