Valhalla Legends Forums Archive | Battle.net Bot Development | Keyboard Commands?

AuthorMessageTime
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.
May 28, 2003, 6:07 AM
laurion
Add shortcut keys to menus
May 28, 2003, 10:17 AM
timbo
make a button
set the cancel property of the button = true (esc)
May 28, 2003, 12:34 PM
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
May 28, 2003, 1:09 PM
______
[code]

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

unload
[/code]

put this on form_keypress and so on
May 28, 2003, 1:19 PM
CrAz3D
I found a dandy little lister of the keyascii code
http://blizzside.com/crazed/Zips/keyascii.zip
It works quite well.
May 28, 2003, 3:49 PM
Skywing
[quote author=CrAz3D link=board=17;threadid=1462;start=0#msg10971 date=1054136988]
I found a dandy little lister of the keyascii code
http://blizzside.com/crazed/Zips/keyascii.zip
It works quite well.
[/quote]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).
May 28, 2003, 6:26 PM

Search