Jump to content

Need som help with VB6 button

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
6 replies to this topic

#1
Qvintus

Qvintus

    Newbie

  • Members
  • Pip
  • 3 posts
Hi all im new at this forum and i need som help with my Flash game trainer.
to my flash game trainer i made a "hp" button and a "mp" button but i want some hotkeys for them like then i click "h" it click HP button and "m" MP button.

Is this posible in VB6 ? plz help me littel out here :P

------EDIT-----
Well i got so long... -.-

If Hotkey(vbKeyH) Then
Do Call ShockwaveFlash1.SetVariable("d.life", 100)
End If
but wont work :(

Edited by Qvintus, 01 May 2008 - 05:04 AM.
got longer


#2
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
You could catch a KeyDown event, if your circumstances permit.
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#3
Qvintus

Qvintus

    Newbie

  • Members
  • Pip
  • 3 posts
hmm.. can ye giv me a exsample?

#4
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
I'm not too sure about your one, but see if there is an event on the form that looks like "KeyDown", "KeyPress", "KeyUp" etc - these events will fire whenever the key is pressed (depending on the event). One of the event parameters will contain the current keypress or keycode. Well, that's what it does in VB.NET, anyway. I couldn't say whether it would work for your one.
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#5
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts
Where did you make that code?

#6
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
It would have to be somewhere that is called pretty often, otherwise the keypress won't be captured.
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums

#7
Qvintus

Qvintus

    Newbie

  • Members
  • Pip
  • 3 posts
this is what i made RapidShare: 1-Click Webhosting
Made in VB6 and would yust know tha code to make so then like h is pressed its click the hp button ye understand?