|
-
Feb 18th, 2003, 07:17 PM
#1
Thread Starter
Fanatic Member
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++)
-
Feb 19th, 2003, 07:11 AM
#2
Fanatic Member
Hi
Use FindWindowEx to find the subwindows i.e buttons or textfields. Using this handle you use SendMessage..
Regards,
Pradeep
-
Feb 19th, 2003, 10:26 AM
#3
Thread Starter
Fanatic Member
Ok k0ol, what Message do I send? WM_LMOUSEBUTTON or something?
-
Feb 19th, 2003, 10:44 AM
#4
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
-
Feb 19th, 2003, 10:58 AM
#5
Thread Starter
Fanatic Member
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?
-
Feb 23rd, 2003, 12:29 PM
#6
Thread Starter
Fanatic Member
How would I find a button on AIM? they all have the same classname. (in a chat window, the Send, Warn, Block buttons)
-
Feb 23rd, 2003, 10:39 PM
#7
Fanatic Member
Hi..
Ok k0ol, what Message do I send? WM_LMOUSEBUTTON or something?
Yeup...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|