#166909 - 2006-09-06 04:36 PM
Re: KiX 4.53 RC1, MessageBox: Error Code = Return Value
|
Witto
MM club member
Registered: 2004-09-29
Posts: 1828
Loc: Belgium
|
Jooel, Get works as described in the manual. Richard just referred to the fact that Get handles p.e. function keys with error codes. That is why I just suggested that these *return* values could be put in the Return Value. I did not say it is a must.
I do not get the suggestion about the @RESULT macro Code:
Dim $SO Get $SO ? "Key: " + $SO ? "Error " + @ERROR + ": " + @SERROR ? "Result: " + @RESULT ? "KiX: " + @KIX
When pressing F1 I get Code:
Key: Error 59: Er is een onverwachte netwerkfout opgetreden. Result: KiX: 4.53 Release Candidate 1
|
Top
|
|
|
|
#166913 - 2006-09-06 05:07 PM
Re: KiX 4.53 RC1, MessageBox: Error Code = Return Value
|
Witto
MM club member
Registered: 2004-09-29
Posts: 1828
Loc: Belgium
|
What about the suggestion returning an array in advanced mode? Code:
Get $SO /A
A keystroke can return - Key - KeyCode - Ascii value all in different dimension
|
Top
|
|
|
|
#166914 - 2006-09-06 05:14 PM
Re: KiX 4.53 RC1, MessageBox: Error Code = Return Value
|
Lonkero
KiX Master Guru
Registered: 2001-06-05
Posts: 22346
Loc: OK
|
returning array would break all current scripts using get. can't even consider that.
and yes, my post about result macro was a suggestion... and I did edit it before you posted your reply
Edited by Jooel (2006-09-06 05:18 PM)
|
Top
|
|
|
|
#166917 - 2006-09-06 05:35 PM
Re: KiX 4.53 RC1, MessageBox: Error Code = Return Value
|
Witto
MM club member
Registered: 2004-09-29
Posts: 1828
Loc: Belgium
|
I was just thinking about what someone would want to verify
- Key, just as now, press "a" and catch "a", Press {TAB} and catch Chr(9)
- KeyCode, My A is next to the TAB-key, where most probably your Q is. Press it evt. with Shift, Ctrl or Alt and we should get the same value
- Ascii, maybe redundant, Key maybe does the trick, p.e. the enter key would return "13"
|
Top
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 370 anonymous users online.
|
|
|