flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
DOS386
> read in the character the user presses
> Is this possible in FASM? NO : http://board.flatassembler.net/topic.php?t=11172 ![]() |
|||
![]() |
|
NanoBytes
In the chapter? what chapter?
And, adr you saying that it is not possible? |
|||
![]() |
|
JohnFound
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. |
|||
![]() |
|
Picnic
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 |
|||
![]() |
|
bitRAKE
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 |
|||
![]() |
|
Picnic
Ιndeed there was a mistake, i fixed it.
Good to see you bitRAKE. |
|||
![]() |
|
CandyMan
When i pressed only right alt, message was displayed than left ctrl is pressed.
|
|||
![]() |
|
Picnic
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.
|
|||
![]() |
|
Picnic
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.
|
|||
![]() |
|
DOS386
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 |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.