|
-
May 17th, 2002, 11:58 AM
#1
Thread Starter
Lively Member
next qestion is (about findwinex...)?
Megatron(or someone else):
where i can get the name of class which i use in findwindiwex
and can i ,useing this function or something like that , clik on a button in other application ,write my own text ...... ,not just read from them
i mean not just read a text from "notepad" ,,,,from my program write something in "notepad"
huh i've finished
thank's(and don't say "don't understand u!")
-
May 19th, 2002, 09:35 AM
#2
Hyperactive Member
In Microsoft Visual Studio Tools there is a utility called Spy++
That can help you find class names
"Today's mighty oak is just yesterday's nut,
that held its ground."
-
May 20th, 2002, 12:27 AM
#3
PowerPoster
After you find the handle to Notpad or whatever window it is, you'll also have to find the handle of the edit box where you wanna write to. Then you use SendMessage to set the text like this:
VB Code:
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Private Const WM_SETTEXT = &HC
SendMessage myhwnd, WM_SETTEXT, 0, ByVal ("New Text"))
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|