getnextwindow help

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Steve

    #1

    getnextwindow help

    i just posed asking about getnextwindow.. .i was able to find it but have
    another problem

    pwin = GetWinByClass(T ext2.Text)
    bwin = FindWindowEx(pw in, ByVal 0&, Text5.Text, Text7.Text)
    nwin = GetNextWindow(b win, GW_HWNDNEXT)
    Text6.Text = nwin
    errors with overflow

    text2.text = parent window
    text5.text = window (text box) im looking for
    text7.text = text in box (nothing)

    ive made a little program to return #'s of what it finds just to make sure
    its finding stuff...its prolly something little and stupid, plz help


  • J French

    #2
    Re: getnextwindow help

    On Mon, 1 Nov 2004 11:41:23 -0600, "Steve" <bla@blah.com > wrote:
    [color=blue]
    >i just posed asking about getnextwindow.. .i was able to find it but have
    >another problem
    >
    >pwin = GetWinByClass(T ext2.Text)
    >bwin = FindWindowEx(pw in, ByVal 0&, Text5.Text, Text7.Text)
    >nwin = GetNextWindow(b win, GW_HWNDNEXT)
    >Text6.Text = nwin
    >errors with overflow[/color]

    Text6.Text = Str$( nwin )

    Text6.Text is a String
    - or possibly a Variant containing a String

    nwin is a number - it should be a Long
    [color=blue]
    >
    >text2.text = parent window
    >text5.text = window (text box) im looking for
    >text7.text = text in box (nothing)
    >
    >ive made a little program to return #'s of what it finds just to make sure
    >its finding stuff...its prolly something little and stupid, plz help
    >
    >[/color]

    Comment

    • Steve

      #3
      Re: getnextwindow help

      It errors with 'Overflow' on this line:
      nwin = GetNextWindow(b win, GW_HWNDFIRST)

      "J French" <erewhon@nowher e.uk> wrote in message
      news:41876dc3.3 811200@news.btc lick.com...[color=blue]
      > On Mon, 1 Nov 2004 11:41:23 -0600, "Steve" <bla@blah.com > wrote:
      >[color=green]
      >>i just posed asking about getnextwindow.. .i was able to find it but have
      >>another problem
      >>
      >>pwin = GetWinByClass(T ext2.Text)
      >>bwin = FindWindowEx(pw in, ByVal 0&, Text5.Text, Text7.Text)
      >>nwin = GetNextWindow(b win, GW_HWNDNEXT)
      >>Text6.Text = nwin
      >>errors with overflow[/color]
      >
      > Text6.Text = Str$( nwin )
      >
      > Text6.Text is a String
      > - or possibly a Variant containing a String
      >
      > nwin is a number - it should be a Long
      >[color=green]
      >>
      >>text2.text = parent window
      >>text5.text = window (text box) im looking for
      >>text7.text = text in box (nothing)
      >>
      >>ive made a little program to return #'s of what it finds just to make sure
      >>its finding stuff...its prolly something little and stupid, plz help
      >>
      >>[/color]
      >[/color]


      Comment

      Working...