Results 1 to 4 of 4

Thread: Get window coordinates using only substring of window caption

  1. #1

    Thread Starter
    Member
    Join Date
    May 2005
    Posts
    35

    Get window coordinates using only substring of window caption

    Hi,

    The poker site that I play at has windows that have captions like this...
    Table 35282 - NL Hold'em - $5 Buy-in + $1 Entry Fee. Good Luck checkerpro !

    I need to be able to retrieve the coordinates of this window. The only portion of the window caption that I know for sure is the Table # (Ex. Table 35282).

    So, I am guessing that i need to
    A) Get the handle of the window that has "Table 35282" in its caption.
    B) Get the coordinates of the window with this handle.

    Is that right? Any ideas?

    Thanks

  2. #2
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: Get window coordinates using only substring of window caption

    To get the handle of a window by only part of the caption, look here :

    http://www.vbforums.com/showthread.php?t=316924
    http://www.vbforums.com/showpost.php...7&postcount=36


    Has someone helped you? Then you can Rate their helpful post.

  3. #3
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: Get window coordinates using only substring of window caption

    To get the coordinates of a window based on the handle you need to use the GetWindowRect API...


    Has someone helped you? Then you can Rate their helpful post.

  4. #4

    Thread Starter
    Member
    Join Date
    May 2005
    Posts
    35

    Re: Get window coordinates using only substring of window caption

    Thanks.

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