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 


Help! Visual Basic Hotkeys

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

Joined: 11 May 2008
Posts: 15
Location: Finland

PostPosted: Fri Jun 27, 2008 4:00 am    Post subject: Help! Visual Basic Hotkeys Reply with quote

Okey. There are possible some topics about this problem, but I am so lazy
so I didnt care to look for them =)

So, can somebody tell me how to make a hotkey for some specific button

For example if I have a navigate button in my web browser project
Code:
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
        WebBrowser1.Navigate(TextBox1.Text)

    End Sub

So, I want this "Button3" to execute its command when "Enter" is pressed

_________________
Never try. Trying is the first step to failure.
- Homer Simpson
Back to top
View user's profile Send private message
Typhoon808
Expert Cheater
Reputation: 0

Joined: 27 Mar 2008
Posts: 175
Location: Wales

PostPosted: Fri Jun 27, 2008 4:46 am    Post subject: Reply with quote

Handle the address bar KeyDown event.
Back to top
View user's profile Send private message
LogicX
Newbie cheater
Reputation: 0

Joined: 11 May 2008
Posts: 15
Location: Finland

PostPosted: Fri Jun 27, 2008 9:08 am    Post subject: Reply with quote

Can you give me a code?
_________________
Never try. Trying is the first step to failure.
- Homer Simpson
Back to top
View user's profile Send private message
avril18
Master Cheater
Reputation: 0

Joined: 11 Apr 2007
Posts: 380
Location: En san salvador, El Salvador

PostPosted: Fri Jun 27, 2008 9:14 am    Post subject: Reply with quote

i think is something like

Code:
dim enter as keysend
          enter.keysend= Yourbutton.click


dont know man try to find it in msdn
look for the fuction getasynkeystate thats how i found it

_________________


Back to top
View user's profile Send private message
Typhoon808
Expert Cheater
Reputation: 0

Joined: 27 Mar 2008
Posts: 175
Location: Wales

PostPosted: Fri Jun 27, 2008 11:57 am    Post subject: Reply with quote

In the address bar keydown event:

If e.KeyCode = Keys.Enter Then
WebBrowser1.Navigate(txtAddressBar)
Enf If
Back to top
View user's profile Send private message
LogicX
Newbie cheater
Reputation: 0

Joined: 11 May 2008
Posts: 15
Location: Finland

PostPosted: Fri Jun 27, 2008 4:17 pm    Post subject: Reply with quote

Hey, thanks! It works Very Happy Very Happy
_________________
Never try. Trying is the first step to failure.
- Homer Simpson
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