Results 1 to 7 of 7

Thread: hmM I guess a simple quesiton, findwindow

  1. #1

    Thread Starter
    Fanatic Member scr0p's Avatar
    Join Date
    Oct 2002
    Location
    VA
    Posts
    720

    hmM I guess a simple quesiton, findwindow

    How would I find a button on the nickList of IRC? or find a button on AIM and press it (using SendMessage())

    I know how to use FindWindow to find hWnd using classname or caption of lets say notepad, but after I have hwnd I dont know what to do, also on AIM, the classname for some things are not strings, they are like "#000000 (dialog)" and hWnd has letters (hex I guess, using spy++)
    asdf

  2. #2
    Fanatic Member pradeepkrao's Avatar
    Join Date
    Sep 2001
    Location
    New Jersey
    Posts
    534

    Hi

    Use FindWindowEx to find the subwindows i.e buttons or textfields. Using this handle you use SendMessage..

    Regards,
    Pradeep
    Learn by others experience as you cannot live long to experience them all.
    www.freewebs.com/pradeepkrao

    LOOK AT MY GAMES AT MY WEB SITE.

  3. #3

    Thread Starter
    Fanatic Member scr0p's Avatar
    Join Date
    Oct 2002
    Location
    VA
    Posts
    720
    Ok k0ol, what Message do I send? WM_LMOUSEBUTTON or something?
    asdf

  4. #4
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    For a click, send a down message, and an up message.

    Code:
    Private Const WM_LBUTTONDOWN = &H201
    Private Const WM_LBUTTONUP = &H202
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  5. #5

    Thread Starter
    Fanatic Member scr0p's Avatar
    Join Date
    Oct 2002
    Location
    VA
    Posts
    720
    Ok, thanks, this is wehre I am up to, I found mIRC's main window, then I used FindwindowEx to find the channel bar (it is a bar on the side that holds buttons,I want to click one) the classname is mIRC_SwitchBar. I found the switch bar but I cant send a click to it, which button will get clicked? Now that I have hWnd of switchbar, how do I find a specific button on it?
    asdf

  6. #6

    Thread Starter
    Fanatic Member scr0p's Avatar
    Join Date
    Oct 2002
    Location
    VA
    Posts
    720
    How would I find a button on AIM? they all have the same classname. (in a chat window, the Send, Warn, Block buttons)
    asdf

  7. #7
    Fanatic Member pradeepkrao's Avatar
    Join Date
    Sep 2001
    Location
    New Jersey
    Posts
    534

    Hi..

    Ok k0ol, what Message do I send? WM_LMOUSEBUTTON or something?
    Yeup...
    Learn by others experience as you cannot live long to experience them all.
    www.freewebs.com/pradeepkrao

    LOOK AT MY GAMES AT MY WEB SITE.

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