• Welcome to Valhalla Legends Archive.
 

Quick Channels

Started by Tass, November 14, 2005, 05:38 PM

Previous topic - Next topic

Tass

Is there a way to be able to press anywhere on the form and it will do something for each button you push instead of having to do it for each object on your form? Exaple: F1, F2.. ect to F9 they Keycodes are 112 to 120

Networks

They're called hotkeys. You usually can assign them in any menu interfacing in your IDE.

Tass

The F1 and shit make the menu's look fugly.. kthx

MyndFyre

Quote from: Tass on November 14, 2005, 06:41 PM
The F1 and shit make the menu's look fugly.. kthx
Then custom-draw the menus or handle the windows message.

Then you can also stop being a jackass to people who try to help.  kthx
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

Topaz

You can create the menu item, and set its Visible property to false. I'm sure you can manage the rest on your own ;)

FrOzeN

Awhile back I started making a program to get Global HotKeys, anyway I got as far as this then got bored of it.

Just made it check to see if the Form has focus or not. :)
~ FrOzeN

l2k-Shadow

I suppose this is what FrOzeN's project does, but if not, you could just go keylogger style and use a timer and this code to determine if F1 is pressed:

Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer

Private Sub Timer1_Timer()
    If KeyState(vbKeyF1) Then
       'your function code
    End If
End Sub

Private Function KeyState(Key As Long) As Boolean
     If GetAsyncKeyState(Key) = &H8001 Then KeyState = True
End Function
Quote from: replaced on November 04, 2006, 11:54 AM
I dunno wat it means, someone tell me whats ix86 and pmac?
Can someone send me a working bot source (with bnls support) to my email?  Then help me copy and paste it to my bot? ;D
Já jsem byl určenej abych tady žil,
Dával si ovar, křen a k tomu pivo pil.
Tam by ses povídaj jak prase v žitě měl,
Já nechci před nikym sednout si na prdel.

Já nejsem z USA, já nejsem z USA, já vážně nejsem z USA... a snad se proto na mě nezloběj.

FrOzeN

Yeah, that's exactly what this program does.

I have a more advanced one which hooks onto the system and the keys get parsed to the program each time a key is pressed. This can work as a KeyLogger though it's excellent and extremely proficient for HotKey use aswell. Though it's unfinished and I'm not releasing yet.
~ FrOzeN

Forged

QuoteI have a more advanced one which hooks onto the system and the keys get parsed to the program each time a key is pressed. This can work as a KeyLogger though it's excellent and extremely proficient for HotKey use aswell. Though it's unfinished and I'm not releasing yet.
you can get the same thing off pscode, I found it when looking for a more profficent way of making global hotkeys.
QuoteI wish my grass was Goth so it would cut itself

FrOzeN

Yeah but I prefer writing my own code. :)

That's kind of like saying "I'm writing the connections for my bot.", then you replying "You can just use a open-source bot."
~ FrOzeN

Forged

yeah but from the way he responded I don't think he cares  :(
QuoteI wish my grass was Goth so it would cut itself