flat assembler
Message board for the users of flat assembler.
Index
> Windows > CONIO in FASM |
Author |
|
DOS386 15 Dec 2011, 05:42
> read in the character the user presses
> Is this possible in FASM? NO : http://board.flatassembler.net/topic.php?t=11172 |
|||
15 Dec 2011, 05:42 |
|
NanoBytes 15 Dec 2011, 12:51
In the chapter? what chapter?
And, adr you saying that it is not possible? |
|||
15 Dec 2011, 12:51 |
|
JohnFound 15 Dec 2011, 13:32
Of course it is possible.
Read the help for: SetConsoleMode and ReadConsole API functions. Also, you can read console input with ReadFile if you provide handle of the console, but there are some oddities that you have to check in the API reference. |
|||
15 Dec 2011, 13:32 |
|
Picnic 03 Mar 2013, 19:59
I made a simple BASIC like INKEY$ routine for the Windows console.
It can process normal ASCII keys, enhanced keys, function keys, and control state keys. Link Last edited by Picnic on 08 Apr 2015, 15:02; edited 4 times in total |
|||
03 Mar 2013, 19:59 |
|
bitRAKE 04 Mar 2013, 07:42
Nice example Picnic.
Code: struct __uCharUnion UnicodeChar db ? AsciiChar dw ? ends http://msdn.microsoft.com/en-us/library/windows/desktop/ms684166%28v=vs.85%29.aspx _________________ ¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup |
|||
04 Mar 2013, 07:42 |
|
Picnic 04 Mar 2013, 22:22
Ιndeed there was a mistake, i fixed it.
Good to see you bitRAKE. |
|||
04 Mar 2013, 22:22 |
|
CandyMan 05 Mar 2013, 20:24
When i pressed only right alt, message was displayed than left ctrl is pressed.
|
|||
05 Mar 2013, 20:24 |
|
Picnic 06 Mar 2013, 07:31
Thanks for the response CandyMan, i have no clue right now, it seems to work ok in all my pc but i will test it more.
|
|||
06 Mar 2013, 07:31 |
|
Picnic 25 Mar 2013, 14:21
I saw the bug you mention CandyMan, i think it's related to the AltGr key which behaves differently depending on the keyboard, and needs more special handling.
|
|||
25 Mar 2013, 14:21 |
|
DOS386 27 Mar 2013, 12:49
Picnic wrote: I made a simple BASIC like INKEY$ routine for the Windows console. Yeah seems to work too. http://board.flatassembler.net/download.php?id=5538 |
|||
27 Mar 2013, 12:49 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.