flat assembler
Message board for the users of flat assembler.
Index
> Windows > Weird check Button press. |
Author |
|
revolution 14 Jul 2022, 14:38
520 or 620 == 620
520 == 0x208 620 == 0x26c 0x208 or 0x26c == 0x26c |
|||
14 Jul 2022, 14:38 |
|
Roman 14 Jul 2022, 14:45
i mean i write 520 value or 620
its not asm command or. |
|||
14 Jul 2022, 14:45 |
|
Roman 14 Jul 2022, 14:46
i try this, work
Code: invoke SendMessage,[hwndButton1],BM_GETSTATE,0,0 and ax,BST_PUSHED ;BTN_Click ;BST_HOT ;+BST_PUSHED jz .notpushed do some .notpushed: |
|||
14 Jul 2022, 14:46 |
|
Roman 14 Jul 2022, 15:41
but weird this. buttons "user dll and user action" work always. Button uppp not.
https://www.youtube.com/watch?v=Hx9gA2rzuhY&ab_channel=Roman8139 all 3 buttons check like this. Code: invoke SendMessage,[hwndButton1],BM_GETSTATE,0,0 and ax,BST_PUSHED ;BTN_Click ;BST_HOT ;+BST_PUSHED jz .notpushed1 do some .notpushed1: invoke SendMessage,[hwndButton2],BM_GETSTATE,0,0 and ax,BST_PUSHED ;BTN_Click ;BST_HOT ;+BST_PUSHED jz .notpushed2 do some .notpushed2: invoke SendMessage,[hwndButton3],BM_GETSTATE,0,0 and ax,BST_PUSHED ;BTN_Click ;BST_HOT ;+BST_PUSHED jz .notpushed3 do some .notpushed3: |
|||
14 Jul 2022, 15:41 |
|
I 15 Jul 2022, 02:24
You could try test or bt which change flags only.
Code: test eax,BST_PUSHED jz .notpushed1 do some .notpushed1: or Code: bt eax,2 ; (BST_PUSHED = 4) jnc .notpushed1 do some .notpushed1: |
|||
15 Jul 2022, 02:24 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.