Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


How to set a hotkey in VB2008

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
therock364
Newbie cheater
Reputation: 0

Joined: 30 Dec 2007
Posts: 10

PostPosted: Wed Nov 26, 2008 4:17 pm    Post subject: How to set a hotkey in VB2008 Reply with quote

How do you set a hot key in visual basic search and it said that there has to be a hot key property in the object property but when i looked at a timer there isn't one there and I know you can set them on timers because I have seen programs before with hot keys on timers. If and one knows how to set a hot key it would be nice if you could right a code for a Hot key "E"
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Wed Nov 26, 2008 5:09 pm    Post subject: Reply with quote

GetAsyncKeyState

or RegisterHotKey, and respond to the WM_HOTKEY message.
Back to top
View user's profile Send private message
ElectroFusion
Grandmaster Cheater
Reputation: 0

Joined: 17 Dec 2006
Posts: 786

PostPosted: Wed Nov 26, 2008 5:24 pm    Post subject: Reply with quote

RegisterHotKey is better, or if you wanna use GetAsyncKeyState you could do

Code:

bool bExit = false;

int DoStuff(){
while (bExit){
 // do stuff
}
}

if(GetAsyncKeyState(VK_E)){
if(!bExit){
bExit = true;
}else{
bExit = false;
}


look at http://msdn.microsoft.com/en-us/library/ms646309(VS.85).aspx

_________________
qwerty147 wrote:

ghostonline wrote:

what world are you in?

bera

but i live in NZ
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Wed Nov 26, 2008 5:46 pm    Post subject: Reply with quote

ElectroFusion wrote:
RegisterHotKey is better, or if you wanna use GetAsyncKeyState you could do

Code:

bool bExit = false;

int DoStuff(){
while (bExit){
 // do stuff
}
}

if(GetAsyncKeyState(VK_E)){
if(!bExit){
bExit = true;
}else{
bExit = false;
}


look at http://msdn.microsoft.com/en-us/library/ms646309(VS.85).aspx


that is hideous.
Back to top
View user's profile Send private message
&Vage
Grandmaster Cheater Supreme
Reputation: 0

Joined: 25 Jul 2008
Posts: 1053

PostPosted: Wed Nov 26, 2008 8:42 pm    Post subject: Reply with quote

slovach wrote:
ElectroFusion wrote:
RegisterHotKey is better, or if you wanna use GetAsyncKeyState you could do

Code:

bool bExit = false;

int DoStuff(){
while (bExit){
 // do stuff
}
}

if(GetAsyncKeyState(VK_E)){
if(!bExit){
bExit = true;
}else{
bExit = false;
}


look at http://msdn.microsoft.com/en-us/library/ms646309(VS.85).aspx


that is hideous.


Code:


if(GetAsyncKeyState(VK_E)){ bExit ^= 1; }

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites