• Welcome to Valhalla Legends Archive.
 

Keyboard Commands?

Started by WiLD, May 28, 2003, 01:07 AM

Previous topic - Next topic

WiLD

Hi all,

i was looking at a bot the other day it had a command that when you press "Esc" it closed it or whatever. I was wondering how this was done. If you could give some examples maybe.

Thx in advance.
=_=  &&  g0dFraY  &&  -=Templar=-  @USWest

Tazo

Add shortcut keys to menus

timbo

make a button
set the cancel property of the button = true (esc)

CrAz3D

using the keyascii properties is how some ppl do it.  The enter key is 13, so it'd be:
If keyascii=13 then
   Do all ur stuff
end if
rebundance - having or being in excess of sheer stupidity
(ré-bun-dance)
Quote from: Spht on June 22, 2004, 07:32 PMSlap.
Quote from: Adron on January 28, 2005, 09:17 AMIn a way, I believe that religion is inherently evil, which includes Christianity. I'd also say Christianity is eviller than Buddhism (has more potential for evil).
Quote from: iago on April 19, 2005, 01:06 PM
CrAz3D's ... is too big vertically, at least, too big with ... iago ...

______



If keyascii=27 then ' esc button
  unload me
  end
end if

unload


put this on form_keypress and so on

CrAz3D

I found a dandy little lister of the keyascii code
http://blizzside.com/crazed/Zips/keyascii.zip
It works quite well.
rebundance - having or being in excess of sheer stupidity
(ré-bun-dance)
Quote from: Spht on June 22, 2004, 07:32 PMSlap.
Quote from: Adron on January 28, 2005, 09:17 AMIn a way, I believe that religion is inherently evil, which includes Christianity. I'd also say Christianity is eviller than Buddhism (has more potential for evil).
Quote from: iago on April 19, 2005, 01:06 PM
CrAz3D's ... is too big vertically, at least, too big with ... iago ...

Skywing

Quote from: CrAz3D on May 28, 2003, 10:49 AM
I found a dandy little lister of the keyascii code
http://blizzside.com/crazed/Zips/keyascii.zip
It works quite well.
Visual Basic provides symbolic constants for many characters.  I'd strongly recommend using those if possible.

Under Win32, you can easily view how characters are mapped with the current charset by using charmap.exe, which can be installed along with Windows (you can add it from the CD using Add/Remove Windows Components if you didn't install it when you installed Windows).