Results 1 to 2 of 2

Thread: Controlsend keys [to not active window]

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2008
    Posts
    74

    Controlsend keys [to not active window]

    I understand that i cant use SendKeys.SendWait("sampletext") to send keys to not active window. is there any other way can I do this?
    Code:
                Dim ProcID As Integer
                ProcID = Shell("notepad.EXE")
    
                ControlSend ( "title", controlID, "string"
    
                title - The title of the window to access. 
                controlID - Send text to the 1st Edit control in the Notepad window 
                String - of characters to send to the control.
    
                ControlSend("Untitled - Notepad", "Edit1", "sampletext"
                ControlSend("Untitled - Notepad", "[CLASSNN:Edit1]", "sampletext")
                ControlSend("Untitled - Notepad", "[CLASS:Edit; INSTANCE:1]", "sampletext")
    Last edited by goldenix; Apr 10th, 2008 at 07:14 PM.

    M.V.B. 2008 Express Edition

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