flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
rambo
yO!
i think, that you should to know, that there is something like "winapi reference". it`s help-file with all functions explained.. anyway. as you said, there is SendMessage function: Code: invoke SendMessage,hwnd,message,wparam,lparam so, simply: Code: invoke SendMessage,window_hwnd,WM_SETTEXT,0,the_text i think ![]() |
|||
![]() |
|
OzzY
Yeah! I know about "winapi reference", I have it. And I also know about SendMessage API and WM_SETTEXT... but the problem is:
I tried to use FindWindow to get the handle to notepad and the use Code: invoke SendMessage,window_hwnd,WM_SETTEXT,0,the_text to send the text... but it change the title of notepad and not the editbox text... So, I need to know how to get the handle of the editbox of notepad... That's my problem... I don't know how to do it! Any ideas? Thanks! |
|||
![]() |
|
drs
I can tell you right now that you will end up having to use some kind of COM interface to do what you want. I'm not sure what the object is you will need but later I can probably find out. I have seen an example of what you want to do being done in many VBScript programs.
I know for a fact also that the ActiveState Perl distrobution includes a script that also does it. I don't think you can use the standard Win32API SendMessage calls here. |
|||
![]() |
|
coconut
use FindWindowEx for the child. i did not check if the class names were correct:
Code: hwndnotepad dd ? hwndedit dd ? pad db 'Notepad',0 edit db 'edit',0 sz db 0 invoke FindWindow,pad,sz mov [hwndnotepad],eax invoke FindWindowEx,hwndnotepad,0,edit,sz mov [hwndedit],eax invoke SendMessage,[hwndedit],WM_SETTEXT,0,edit |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.