![]() |
Basic help (not sure where to post this) - Printable Version +- Mirage Engine (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17) +---- Thread: Basic help (not sure where to post this) (/showthread.php?tid=84) |
Basic help (not sure where to post this) - Matt - 03-06-2006 I'm trying to figure out how to make something happen, when a player presses alt+o. Anyone have any idea? - grimsk8ter11 - 03-06-2006 http://www.thescripts.com/forum/thread14871.html - Obsidian - 03-06-2006 as far as i know... 'alt' can't be used in vb programs. i was going to use it instead of the delete key to cast spells on other players. - Reece - 03-06-2006 here is an example private sub Advo() Dim ascii as long if key ascii = Keyhere then End if End sub that works fine for me dunno if it may for you ^^ (Thats v.basic) Also look at the talking subs and see how its done externally - Matt - 03-06-2006 I know how to do that, I just don't know what the code is for the alt keys. Lol. - BigRed - 03-06-2006 Works with keydown/up and getasynckeystate. Keycode = 18. - Matt - 03-06-2006 The keycode for alt is 18? (Even so, I can't test right now, because of my other problem. ![]() - BigRed - 03-06-2006 Yes, the keycode for alt is 18. - Misunderstood - 03-06-2006 dont know where you heard that obsidian... - Matt - 03-06-2006 Eh, I decided to just put the buttons on the screen, instead. So, don't worry about this. - grimsk8ter11 - 03-06-2006 could use the SetHokey API |