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 


[Visual Basics 6.0] Hotkeying (Question)
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Tue Oct 30, 2007 8:35 pm    Post subject: Reply with quote

You would put a call to the function that you are using to enable or disable your code.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
The Dami3n
Master Cheater
Reputation: 1

Joined: 15 Nov 2006
Posts: 441
Location: Mulkerolandia

PostPosted: Wed Oct 31, 2007 12:52 am    Post subject: Reply with quote

When i made bf2 hack with Vb, i used this as hotkey button
There was also timer which allowed this to happen every 500ms...

Code:
if(GetAsyncKeyState(VK_NUMPAD2)) //F1 is VK_F1 and so on
   {
//Place your "do this when i press it" code here!
}

_________________
Back to top
View user's profile Send private message
Splizes
Grandmaster Cheater Supreme
Reputation: 0

Joined: 21 Jun 2006
Posts: 1944
Location: Florida

PostPosted: Wed Oct 31, 2007 5:09 am    Post subject: Reply with quote

You guys seriously need to looks shit up
if getasynckeystate(112) then ' F1
msgbox "yay"
end if
112 'f1
113 'f2
114 'f3
115 'f4
116 'f5
Back to top
View user's profile Send private message
Pseudo Xero
I post too much
Reputation: 0

Joined: 16 Feb 2007
Posts: 2607

PostPosted: Wed Oct 31, 2007 5:49 am    Post subject: Reply with quote

The Dami3n wrote:
When i made bf2 hack with Vb, i used this as hotkey button
There was also timer which allowed this to happen every 500ms...

Code:
if(GetAsyncKeyState(VK_NUMPAD2)) //F1 is VK_F1 and so on
   {
//Place your "do this when i press it" code here!
}

That isn't VB code.

_________________
haxory' wrote:
can't VB do anything??
windows is programmed using VB right? correct me if im wrong.

so all things in windows you have like the start menu is a windows form too.
Back to top
View user's profile Send private message
The Dami3n
Master Cheater
Reputation: 1

Joined: 15 Nov 2006
Posts: 441
Location: Mulkerolandia

PostPosted: Wed Oct 31, 2007 5:59 am    Post subject: Reply with quote

Xenephobe wrote:
The Dami3n wrote:
When i made bf2 hack with Vb, i used this as hotkey button
There was also timer which allowed this to happen every 500ms...

Code:
if(GetAsyncKeyState(VK_NUMPAD2)) //F1 is VK_F1 and so on
   {
//Place your "do this when i press it" code here!
}

That isn't VB code.

Lol i made it with -> "Visual C++ 2005 Express Edition"
soz, sorry my bad Razz

_________________
Back to top
View user's profile Send private message
Reak
I post too much
Reputation: 0

Joined: 15 May 2007
Posts: 3496

PostPosted: Wed Oct 31, 2007 7:37 am    Post subject: Reply with quote

Code:
if(GetAsyncKeyState(dunno))


shouldn't this be:

Code:
if Odd(GetAsyncKeyState(dunno))


and I already said that 123 is F12.
Back to top
View user's profile Send private message
AtheistCrusader
Grandmaster Cheater
Reputation: 6

Joined: 23 Sep 2006
Posts: 681

PostPosted: Wed Oct 31, 2007 12:09 pm    Post subject: Reply with quote

if getasinckeystate(vbkeysomething, or 123 or w/*e numbers both are right)
then
...

else
...
end if
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
Goto page Previous  1, 2
Page 2 of 2

 
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