flat assembler
Message board for the users of flat assembler.
Index
> Windows > SendKeys() --> How to? |
Author |
|
rambo 09 Mar 2005, 20:52
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 i`m not winapi master. |
|||
09 Mar 2005, 20:52 |
|
OzzY 09 Mar 2005, 21:04
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! |
|||
09 Mar 2005, 21:04 |
|
drs 09 Mar 2005, 22:41
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. |
|||
09 Mar 2005, 22:41 |
|
coconut 09 Mar 2005, 22:57
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 |
|||
09 Mar 2005, 22:57 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.