Results 1 to 3 of 3

Thread: next qestion is (about findwinex...)?

  1. #1

    Thread Starter
    Lively Member mmiill's Avatar
    Join Date
    May 2002
    Location
    SERBIA
    Posts
    73

    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!")
    mm

  2. #2
    Hyperactive Member Alan777's Avatar
    Join Date
    Jan 2001
    Location
    New Zealand
    Posts
    303
    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."

  3. #3
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827
    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:
    1. 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
    2. Private Const WM_SETTEXT = &HC
    3.  
    4. SendMessage myhwnd, WM_SETTEXT, 0, ByVal ("New Text"))
    Baaaaaaaaah

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width