flat assembler
Message board for the users of flat assembler.
Index
> Windows > Fasm 1.73 64 bit GetAsyncKeyState not work. |
Author |
|
Tomasz Grysztar 23 Nov 2019, 14:33
The problem here is that the variants of "invoke" macro that allow embedded string arguments would pass a pointer to a string instead of character code to GetAsyncKeyState. So, for example, your snippet would work correctly with "win32a.inc" but not with "win32ax.inc". In 64-bit case even the basic "win64a.inc" already supports embedded strings.
To make this unambiguous, simply enforce numeric treatment of the argument like this: Code: invoke GetAsyncKeyState,+'1' |
|||
23 Nov 2019, 14:33 |
|
Roman 23 Nov 2019, 14:40
Thanks !
Its magic |
|||
23 Nov 2019, 14:40 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.