写入记事本或其他窗口 [英] Write to notepad or other windows
本文介绍了写入记事本或其他窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
hi
想用SendMessage API写一个文本框其他窗口的例子
谢谢
hi
Want to write a example of textbox other windows with SendMessage API
thank
推荐答案
如果你有导入的SendMessage
和FindWindow
dll,这是你可以试试的
If you have got theSendMessage
andFindWindow
dlls imported, here is what you can try
hwnd = FindWindow("Notepad",NULL)
SendMessage(FindWindowEx(hwnd, NULL, "Edit", NULL), WM_SETTEXT, 0, (LPARAM)text);
谢谢
我找到了Spy ++,我用的是windows
样本
这篇关于写入记事本或其他窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文