No skillz needed
We've Moved! Visit us at http://newerahacks.tk/ and sign up!
No skillz needed
We've Moved! Visit us at http://newerahacks.tk/ and sign up!
No skillz needed
Would you like to react to this message? Create an account in a few clicks or log in to continue.


NoSkillzNeeded
 
HomePortalLatest imagesSearchRegisterLog in
We've Moved! so join up at our new site! : http://newerahacks.tk/

 

 Useful little Function

Go down 
2 posters
AuthorMessage
TheFallen
Admin
Admin
TheFallen


Posts : 20
Join date : 2010-07-26

Useful little Function Empty
PostSubject: Useful little Function   Useful little Function EmptyThu Jul 29, 2010 12:41 am

ok well this is a way(very easy to make)
but pretty much some might not understand it

so this will make u wait until a button is pressed then the program will proceed

function:
Code:

bool waittill(DWORD Button){
              while(1){
                    if(GetAsyncKeyState(Button)&1){
                              return true;
                    }
              }
}

u can call using this

Code:

#include <windows.h>
#include <iostream>
 
int main(){
    std::cout << "Press F1 To Continue!\n";
    waittill(VK_F1);
    std::cout << "F1 was Pressed\n";
}
Back to top Go down
L00py
Admin
Admin
L00py


Posts : 80
Join date : 2010-01-18
Age : 28
Location : home

Useful little Function Empty
PostSubject: Re: Useful little Function   Useful little Function EmptyThu Jul 29, 2010 11:21 am

nice, should help choobs
Back to top Go down
 
Useful little Function
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
No skillz needed :: Programming :: C/C++-
Jump to: