Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
F1
#1
How do you register is someone has pressed F1?
Reply
#2
What do you mean? Open the new account window?
Reply
#3
GetAsynceKeyState(vbKeyF1)?
Reply
#4
With my method, you will get it if the key is pressed even if the window doesn't have the focus (ie they're doing something in the background). You also have to use some form of timer to constantly check for the event since it is not event-driven like KeyUp/KeyDown subs. With Verrigan's method, you have to have focus on the correct object, and only one object can receive the KeyUp/KeyDown/KeyPress event. This means if they click a form and press buttons, it won't register under Form_KeyDown. Pain in the butt either way. :wink:
Reply
#5
Well, I'm just aiming to create a admin panel like PlayerWorlds's. So I just need to be able to check if someone has puched the f1 key, and if so then make visible the panels that they can see.
Reply
#6
http://www.animerealm.co.uk/uploads/tuto...20Tut.html
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?
Reply
#7
Oh, thnaks, this'll help alot. Smile

~Braydok
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)