PSPerspective | Exclusive PSP Network: C++ PRANK - PSPerspective | Exclusive PSP Network

Jump to content

Choose category:
VIP backgrounds
Change width
1
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

C++ PRANK no programs Rate Topic: -----

#1
User is offline   Sn​oopy 

  • Member
  • Group: VIP Member
  • Posts: 360
  • Joined: 11-October 09
  • Gender:Male
  • Location:Texas
  • Interests:Computers, gaming, music.
  • Firmware: 5.00 M33-6 & 5.50 GEN-D3
  • PSP Type:Slim
  • GamerTag:joselikesurmom
Here are 2 source codes you can compile and run, harmless and fun and you can send them to your friends.

Requirements:
Dev C++ or Microsoft C++ express or any compiler

Change the Window Text (the text on the top left corner of a window):

CODE
#include <windows.h>
using namespace std;

int main()
{
    FreeConsole();
    
    HWND Window;
    Window = GetForegroundWindow();
    SetWindowText(Window, "YOUR TEXT HERE");

    SwapMouseButton(true);
    Sleep(10000);
    SwapMouseButton(false);

    return 0;
}


This program first rename the foreground window text to what ever you want, then it swaps the mouse button for 10 seconds. finally it swaps the mouse buttons back and end the program.

Block Input:

CODE
#include <windows.h>
int main()
{
    FreeConsole();
    while(1)
    {
        BlockInput(true);
    }
}


This program simply disables the keyboard and mouse until the user restarts the computer.


Posted Image

Quote

USMarine - Santa is actually a German spy deployed during the WWII era to infiltrate American homes, and to retrieve vital information about American life. In 2012, the Germans will have all the intel they'll need, to destroy the world.


Quote

USMarine - I've seen assholes in the Corps who don't know s​hit about anything and couldn't even lead a pack of seamen out of their di​cks get promoted while I just stand by and watch.


Epic Quotes.

0

#2
User is offline   johny cash 

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 37
  • Joined: 16-November 08
  • Firmware: 4.01
  • PSP Type:Slim
Well sounds like fun,but how the hell do U use that Snoopy???

0

#3
User is offline   hamzeh 

  • PSP | PC | WII | TUT | REQUESTS
  • Group: VIP Member
  • Posts: 1,215
  • Joined: 30-September 08
  • Gender:Male
  • Location:N¤ WhéRë...
  • Firmware: 5.00
  • PSP Type:Fat
EASY .. , u gotaa take c++ codeing lessons...
Hamzeh
Posted Image



Posted Image
Posted Image
Posted Image
Posted Image

200 posts on 18/3/2010
400 posts on 10/8/2010
500 posts on 15/8/2010
600 posts on 18/8/2010
1,000 posts on 26/9/2010



Help Me Plz!!!
Posted Image
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users