Results 1 to 13 of 13

Thread: changing focus to a paticular window, all i know is the window title

Threaded View

  1. #1

    Thread Starter
    Fanatic Member SkiNLaB's Avatar
    Join Date
    Jan 2002
    Location
    Sydney, Australia
    Posts
    747

    changing focus to a paticular window, all i know is the window title

    Hi, I would like to change the focus to a window of title "WindowTItle".

    i am guessing i need to loop thru all the windows (how?) and use that getwindowtext API to compare the window title, and once found setfocus API?

    or if i get desperate

    do
    sendkeys "%{TAB}", true
    loop until getActiveWindowTitle = "WindowTitle"

    how do u type that code in "visual basic code" syntax on the post?
    Last edited by SkiNLaB; Feb 24th, 2002 at 07:24 AM.

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