|
Post by Mortiis on Jun 13, 2004 9:01:51 GMT -5
Do you have a list of keycodes? (e.g. VK_LEFT ,VK_SPACE)
|
|
|
Post by AHBanen on Jun 13, 2004 16:23:31 GMT -5
VK_LBUTTON = 1 VK_RBUTTON = 2 VK_CANCEL = 3 VK_MBUTTON = 4 VK_BACK = 8 VK_TAB = 9 VK_CLEAR = 12 VK_RETURN = 13 VK_SHIFT = 16 VK_CONTROL = 17 VK_MENU = 18 VK_PAUSE = 19 VK_PRINT = 42 VK_CAPITAL = 20 VK_KANA = 0x15 VK_HANGEUL = 0x15 VK_HANGUL = 0x15 VK_JUNJA = 0x17 VK_FINAL = 0x18 VK_HANJA = 0x19 VK_KANJI = 0x19 VK_CONVERT = 0x1C VK_NONCONVERT = 0x1D VK_ACCEPT = 0x1E VK_MODECHANGE = 0x1F VK_ESCAPE = 27 VK_SPACE = 32 VK_PRIOR = 33 VK_NEXT = 34 VK_END = 35 VK_HOME = 36 VK_LEFT = 37 VK_UP = 38 VK_RIGHT = 39 VK_DOWN = 40 VK_SELECT = 41 VK_EXECUTE = 43 VK_SNAPSHOT = 44 VK_INSERT = 45 VK_DELETE = 46 VK_HELP = 47 VK_0 = 48 VK_1 = 49 VK_2 = 50 VK_3 = 51 VK_4 = 52 VK_5 = 53 VK_6 = 54 VK_7 = 55 VK_8 = 56 VK_9 = 57 VK_A = 65 VK_B = 66 VK_C = 67 VK_D = 68 VK_E = 69 VK_F = 70 VK_G = 71 VK_H = 72 VK_I = 73 VK_J = 74 VK_K = 75 VK_L = 76 VK_M = 77 VK_N = 78 VK_O = 79 VK_P = 80 VK_Q = 81 VK_R = 82 VK_S = 83 VK_T = 84 VK_U = 85 VK_V = 86 VK_W = 87 VK_X = 88 VK_Y = 89 VK_Z = 90 VK_LWIN = 0x5B VK_RWIN = 0x5C VK_APPS = 0x5D VK_NUMPAD0 = 96 VK_NUMPAD1 = 97 VK_NUMPAD2 = 98 VK_NUMPAD3 = 99 VK_NUMPAD4 = 100 VK_NUMPAD5 = 101 VK_NUMPAD6 = 102 VK_NUMPAD7 = 103 VK_NUMPAD8 = 104 VK_NUMPAD9 = 105 VK_MULTIPLY = 106 VK_ADD = 107 VK_SEPARATOR = 108 VK_SUBTRACT = 109 VK_DECIMAL = 110 VK_DIVIDE = 111 VK_F1 = 112 VK_F2 = 113 VK_F3 = 114 VK_F4 = 115 VK_F5 = 116 VK_F6 = 117 VK_F7 = 118 VK_F8 = 119 VK_F9 = 120 VK_F10 = 121 VK_F11 = 122 VK_F12 = 123 VK_F13 = 124 VK_F14 = 125 VK_F15 = 126 VK_F16 = 127 VK_F17 = 128 VK_F18 = 129 VK_F19 = 130 VK_F20 = 131 VK_F21 = 132 VK_F22 = 133 VK_F23 = 134 VK_F24 = 135 VK_NUMLOCK = 144 VK_SCROLL = 145 VK_LSHIFT = 160 VK_LCONTROL = 162 VK_LMENU = 164 VK_RSHIFT = 161 VK_RCONTROL = 163 VK_RMENU = 165 VK_PROCESSKEY = 229
|
|
|
Post by Mortiis on Jun 13, 2004 16:52:40 GMT -5
thanks
|
|
|
Post by Tom Mulgrew on Jun 13, 2004 20:02:14 GMT -5
Btw, you can also click the "Help" menu, choose "Function and Constant List", click on the "Constants" tab and scroll down to the VK_xxx part.
-Tom
|
|
|
Post by AHBanen on Jun 14, 2004 8:01:51 GMT -5
Tom, A note on the 'Funtion and Constant list': could you make it so these can be selected and copied from the list (and pasted into the code). This can save a lot of typos. B.t.w. I could be very helpful if the functions were described in a reuasble way, e.g. instead of: int loadimage( string ) as i = loadimage( path_to_bmp$ ) This would make cut-'n-paste programming much easier as one wouldn't have to try to look up a function (which often isn't described yet). It would really be a tremendous help with functions when the functionality is known but the right parameters have been slightly forgotten André
|
|
|
Post by Tom Mulgrew on Jun 15, 2004 22:27:12 GMT -5
The function & constant lists are a raw dump of the data stored in the compiler. So it's guaranteed up to date, but it doesn't have any extra data that the compiler doesn't use like meaningful parameter names.
It could always be used as a basis for a more meaningful list (or help file index e.t.c).
|
|
|
Post by AHBanen on Jun 16, 2004 3:50:32 GMT -5
Tom, >"The function & constant lists are a raw dump of the data stored in the compiler. " This is very cool! It would be nice though if the list could be split up into meaningful parts, e.g. basic language contructs (Dim, struct, if, wend, for, gosub, etc.), core functions (len$, sin, sleep, etc), Sprite functions and GL functions. I hope this is possible.
And as I said, it would be great if one could copy from the list...
André
|
|
|
Post by NoVaGene on Jun 16, 2004 12:29:44 GMT -5
Listing them in alphabetical order would be enough. Not necessary to classify them as contructs, fn, etc. Not worth the effort as the vocab is undergoing changes.
Instead, I would suggest a simple search as in bringing the user to the part of the list where the first char of the fn resembles the char being typed. eg. type "v" would jump to say, VK_DOWN.
The cut n paste (i have thought of it quite some time back) is pretty much a good-to-have feature and not significant.
-Lucas Tan-
|
|
|
Post by AHBanen on Jun 16, 2004 14:12:08 GMT -5
Lucas, Grouping of functions and keycodes may make the learning curve less steep for starting and intermediate level users (e.g. the ones looking for the Basic part in Basic4GL). It would be different if there was aother means of knowing the latest available functions etc. And as the current lists of functions and constants can't be copied this is another hurdle to make an annotated list oneself. The search-on-first-letter-typed (like in Windows Start-Programs or the Explorer) is a very good idea, I second that fully (Note it would mean grouping on function name André
|
|