How to click "Copy room URL to clipboard" link using hwnd?

You can talk about VB programming here

How to click "Copy room URL to clipboard" link using hwnd?

Postby method » Sun May 02, 2010 4:57 pm


hi all i want to click the link "Copy room URL to clipboard" above the paltalk room that has class name "CTransparentTextOut" and i already have its handle. i tried the following but the clipboard was empty !! could you guys tell me what i am doing wrong? Thanks

Call SendMessageByString(hwnd, WM_KEYDOWN, VK_SPACE, 0&)
method
imFiles Master
imFiles Master
 
Posts: 686
Joined: Tue Oct 18, 2005 11:12 am

Re: How to click "Copy room URL to clipboard" link using hwn

Postby Chike » Mon May 03, 2010 6:39 pm

Since it stores the text internaly and not the normal way windows does you probably can't.
Image
Chike
imFiles Master
imFiles Master
 
Posts: 583
Joined: Sun May 13, 2007 6:20 pm

Re: How to click "Copy room URL to clipboard" link using hwn

Postby method » Mon May 03, 2010 6:44 pm

chike thanks for your reply. Is that a button ? once i be able to click i can read the clipboard to get the url but only problem is that i can't click it using above method !!do you mean the button has no caption that is why we can't but it has handle and calass name ... Hope i be able some how be able to click it ..

this is the way i get handle of it:

Code: Select all
Dim dlggroupchatwindowclass As Long, wtlsplitterwindow As Long, cwndvideobar As Long
Dim cpngimagectrl As Long, ctransparenttextout As Long
dlggroupchatwindowclass = FindWindow("dlggroupchat window class", vbNullString)
wtlsplitterwindow = FindWindowEx(dlggroupchatwindowclass, 0&, "wtl_splitterwindow", vbNullString)
wtlsplitterwindow = FindWindowEx(wtlsplitterwindow, 0&, "wtl_splitterwindow", vbNullString)
cwndvideobar = FindWindowEx(wtlsplitterwindow, 0&, "cwndvideobar", vbNullString)
cpngimagectrl = FindWindowEx(cwndvideobar, 0&, "cpngimagectrl", vbNullString)
ctransparenttextout = FindWindowEx(cpngimagectrl, 0&, "ctransparenttextout", vbNullString)
ctransparenttextout = FindWindowEx(cpngimagectrl, ctransparenttextout, "ctransparenttextout", vbNullString)
ctransparenttextout = FindWindowEx(cpngimagectrl, ctransparenttextout, "ctransparenttextout", vbNullString)
ctransparenttextout = FindWindowEx(cpngimagectrl, ctransparenttextout, "ctransparenttextout", vbNullString)
ctransparenttextout = FindWindowEx(cpngimagectrl, ctransparenttextout, "ctransparenttextout", vbNullString)
ctransparenttextout = FindWindowEx(cpngimagectrl, ctransparenttextout, "ctransparenttextout", vbNullString)
ctransparenttextout = FindWindowEx(cpngimagectrl, ctransparenttextout, "ctransparenttextout", vbNullString)
ctransparenttextout = FindWindowEx(cpngimagectrl, ctransparenttextout, "ctransparenttextout", vbNullString)
ctransparenttextout = FindWindowEx(cpngimagectrl, ctransparenttextout, "ctransparenttextout", vbNullString)
ctransparenttextout = FindWindowEx(cpngimagectrl, ctransparenttextout, "ctransparenttextout", vbNullString)
method
imFiles Master
imFiles Master
 
Posts: 686
Joined: Tue Oct 18, 2005 11:12 am


Return to Visual Basic Programming

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests