flat assembler
Message board for the users of flat assembler.
Index
> Windows > How to close or send button clicks to window or child window |
Author |
|
LocoDelAssembly 16 Jul 2011, 17:22
WM_CLOSE works for me:
Code: include 'win32axp.inc' TITLE_TO_FIND equ 'Sin tÃtulo - Bloc de notas' ; This is the Spanish title when you open notepad without opening any text file, change as necessary. proc start invoke PostMessage, <invoke FindWindow, NULL, TITLE_TO_FIND>, WM_CLOSE, 0, 0 invoke ExitProcess, 0 endp .end start I'm using WinXP 32-bit BTW. |
|||
16 Jul 2011, 17:22 |
|
Walkerboh 16 Jul 2011, 21:39
Thanks LocoDelAssembly, invoking FindWindow from the parameter field of PostMessage worked for me. I did something wrong when I used ITOA to convert the window handle to a string and then manually input that number as the handle parameter for my PostMessage.
|
|||
16 Jul 2011, 21:39 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.