Trả lời mọi thắc mắc của bạn


Liệt kê những bài viết mới nhất

Bài viết mớiNgười viếtVào lúc
paltalk code HdAd
Sun Mar 06, 2016 1:28 am
vb ListView HdAd
Sun Mar 06, 2016 1:00 am
Find occurent of character in string nth HdAd
Sat Jan 16, 2016 10:48 pm
Send listbox items to textbox HdAd
Wed Jan 13, 2016 9:55 pm
[VB] Find word in listbox items HdAd
Wed Jan 13, 2016 7:55 pm
code cho hint2 HdAd
Wed Jan 13, 2016 3:22 pm
[vb] Font RTB HdAd
Tue Dec 29, 2015 10:29 am
[vb] selected text RTB HdAd
Tue Dec 29, 2015 9:06 am
[vb] send unicode text HdAd
Tue Dec 29, 2015 9:03 am
[vb] format multi richtextbox HdAd
Tue Dec 29, 2015 9:01 am
Trang web tai cac bang sang che HdAd
Mon Dec 28, 2015 1:28 pm
[VB] Sử dụng resource của chính chương trình HdAd
Sat Dec 26, 2015 8:56 pm
[vb] Phân biệt class và Module HdAd
Thu Dec 24, 2015 2:39 pm
[VB] MY API and Functions declaration HdAd
Mon Dec 21, 2015 1:45 pm
[vb] Khai báo và sử dụng hàm Setforeground HdAd
Mon Dec 21, 2015 1:29 pm
[VB] Sử dụng hàm Sendmessage để gửi tiếng việt, và format richtextbox HdAd
Mon Dec 21, 2015 1:26 pm
[VB] Find menu context handle/ID by SPY++ HdAd
Fri Dec 18, 2015 1:20 pm
[VB] Find menu context handle/ID - Vu Hai Ninh HdAd
Fri Dec 18, 2015 1:00 pm
[VB] Find menu context handle/ID HdAd
Fri Dec 18, 2015 12:54 pm
[VB] Sleep in VB program HdAd
Thu Dec 17, 2015 7:48 pm
[VB] CLose window if found HdAd
Wed Dec 16, 2015 7:07 pm
[VB] Không cho thay đổi kích cỡ form khi chạy HdAd
Wed Dec 16, 2015 3:28 pm
[VB] Không cho thay đổi text box khi chạy HdAd
Wed Dec 16, 2015 3:22 pm
[VB] Tìm cửa sổ và Button bằng FindWindow & FindWindowsEx HdAd
Wed Dec 16, 2015 3:16 pm
[VB] Xóa text mặc định của text box khi click HdAd
Wed Dec 16, 2015 3:12 pm


You are not connected. Please login or register

paltalk code

View previous topic View next topic Go down  Message [Page 1 of 1]

1 paltalk code on Sun Mar 06, 2016 1:06 am

HdAd

avatar
Admin
Find Handle (chike)
Code:
[size=12][size=12]Public[/size][size=12] [/size][size=12]Delegate [/size][size=12]Function[/size][size=12] [/size][size=12]EnumWChildindowaProc[/size][size=12]([/size][size=12]ByVal [/size][size=12]Handle [/size][size=12]As[/size][size=12] [/size][size=12]IntPtr[/size][size=12],[/size][size=12] [/size][size=12]ByRef [/size][size=12]Parameter [/size][size=12]As[/size][size=12] [/size][size=12]IntPtr[/size][size=12])[/size][size=12] [/size][size=12]As[/size][size=12] [/size][size=12]Boolean[/size][/size]
[size=12][size=12]Public[/size][size=12] [/size][size=12]Declare[/size][size=12] [/size][size=12]Auto [/size][size=12]Function[/size][size=12] [/size][size=12]EnumChildWindows [/size][size=12]Lib[/size][size=12] [/size][size=12]"User32.dll"[/size][size=12] [/size][size=12]_[/size][/size]
[size=12][size=12]([/size][size=12]ByVal [/size][size=12]hwnd [/size][size=12]As[/size][size=12] [/size][size=12]IntPtr[/size][size=12],[/size][size=12] [/size][size=12]ByVal [/size][size=12]Callback [/size][size=12]As[/size][size=12] [/size][size=12]EnumWChildindowaProc[/size][size=12],[/size][size=12] [/size][size=12]ByRef [/size][size=12]lParam [/size][size=12]As[/size][size=12] [/size][size=12]IntPtr[/size][size=12])[/size][size=12] [/size][size=12]As[/size][size=12] [/size][size=12]Boolean[/size][/size]
[size=12] [/size]
[size=12][size=12]Declare[/size][size=12] [/size][size=12]Auto [/size][size=12]Function[/size][size=12] [/size][size=12]GetDlgCtrlID [/size][size=12]Lib[/size][size=12] [/size][size=12]"User32.dll"[/size][size=12] [/size][size=12]_[/size][/size]
[size=12][size=12]([/size][size=12]ByVal [/size][size=12]hwnd [/size][size=12]As[/size][size=12] [/size][size=12]IntPtr[/size][size=12])[/size][size=12] [/size][size=12]As[/size][size=12] [/size][size=12]Integer[/size][/size]
[size=12] [/size]
[size=12][size=12]Public[/size][size=12] [/size][size=12]Function[/size][size=12] [/size][size=12]EnumFindID[/size][size=12]([/size][size=12]ByVal [/size][size=12]hwnd [/size][size=12]As[/size][size=12] [/size][size=12]IntPtr[/size][size=12],[/size][size=12] [/size][size=12]ByRef [/size][size=12]lParam [/size][size=12]As[/size][size=12] [/size][size=12]IntPtr[/size][size=12])[/size][size=12] [/size][size=12]As[/size][size=12] [/size][size=12]Boolean[/size][/size]
[size=12][size=12]If[/size][size=12] [/size][size=12]([/size][size=12]GetDlgCtrlID[/size][size=12]([/size][size=12]hwnd[/size][size=12])[/size][size=12] [/size][size=12]=[/size][size=12] [/size][size=12]lParam[/size][size=12])[/size][size=12] [/size][size=12]And[/size][size=12] [/size][size=12]IsWindowVisible[/size][size=12]([/size][size=12]hwnd[/size][size=12])[/size][size=12] [/size][size=12]Then[/size][/size]
[size=12][size=12]lParam[/size][size=12] [/size][size=12]=[/size][size=12] [/size][size=12]hwnd[/size][/size]
[size=12][size=12]Return[/size][size=12] [/size][size=12]False[/size][/size]
[size=12][size=12]End[/size][size=12] [/size][size=12]If[/size][/size]
[size=12][size=12]Return[/size][size=12] [/size][size=12]True[/size][/size]
[size=12][size=12]End[/size][size=12] [/size][size=12]Function[/size][/size]
[size=12] [/size]
[size=12][size=12]Sub [/size][size=12]main[/size][size=12]([/size][size=12])[/size][/size]
[size=12][size=12]Dim [/size][size=12]hwnd[/size][size=12] [/size][size=12]=[/size][size=12] [/size][size=12]FindWindow[/size][size=12]([/size][size=12]"DlgGroupChat Window Class"[/size][size=12],[/size][size=12] [/size][size=12]vbNullString[/size][size=12])[/size][/size]
[size=12][size=12]Dim [/size][size=12]ctl[/size][size=12] [/size][size=12]=[/size][size=12] [/size][size=12]&[/size][size=12]amp[/size][size=12];[/size][size=12]amp[/size][size=12];[/size][size=12]H6FD[/size][/size]
[size=12][size=12]EnumChildWindows[/size][size=12]([/size][size=12]hwnd[/size][size=12],[/size][size=12] [/size][size=12]AddressOf [/size][size=12]EnumFindID[/size][size=12],[/size][size=12] [/size][size=12]ctl[/size][size=12])[/size][/size]
[size=12][size=12]Console[/size][size=12].[/size][size=12]WriteLine[/size][size=12]([/size][size=12]"user names: "[/size][size=12] [/size][size=12]&[/size][size=12]amp[/size][size=12];[/size][size=12]amp[/size][size=12];[/size][size=12] [/size][size=12]ctl[/size][size=12].[/size][size=12]ToString[/size][size=12]([/size][size=12]"X8"[/size][size=12])[/size][size=12])[/size][/size]
[size=12][size=12]ctl[/size][size=12] [/size][size=12]=[/size][size=12] [/size][size=12]&[/size][size=12]amp[/size][size=12];[/size][size=12]amp[/size][size=12];[/size][size=12]HCA[/size][/size]
[size=12][size=12]EnumChildWindows[/size][size=12]([/size][size=12]hwnd[/size][size=12],[/size][size=12] [/size][size=12]AddressOf [/size][size=12]EnumFindID[/size][size=12],[/size][size=12] [/size][size=12]ctl[/size][size=12])[/size][/size]
[size=12][size=12]Console[/size][size=12].[/size][size=12]WriteLine[/size][size=12]([/size][size=12]"room text: "[/size][size=12] [/size][size=12]&[/size][size=12]amp[/size][size=12];[/size][size=12]amp[/size][size=12];[/size][size=12] [/size][size=12]ctl[/size][size=12].[/size][size=12]ToString[/size][size=12]([/size][size=12]"X8"[/size][size=12])[/size][size=12])[/size][/size]
[size=12][size=12]ctl[/size][size=12] [/size][size=12]=[/size][size=12] [/size][size=12]&[/size][size=12]amp[/size][size=12];[/size][size=12]amp[/size][size=12];[/size][size=12]HCB[/size][/size]
[size=12][size=12]EnumChildWindows[/size][size=12]([/size][size=12]hwnd[/size][size=12],[/size][size=12] [/size][size=12]AddressOf [/size][size=12]EnumFindID[/size][size=12],[/size][size=12] [/size][size=12]ctl[/size][size=12])[/size][/size]
[size=12][size=12]Console[/size][size=12].[/size][size=12]WriteLine[/size][size=12]([/size][size=12]"user edit: "[/size][size=12] [/size][size=12]&[/size][size=12]amp[/size][size=12];[/size][size=12]amp[/size][size=12];[/size][size=12] [/size][size=12]ctl[/size][size=12].[/size][size=12]ToString[/size][size=12]([/size][size=12]"X8"[/size][size=12])[/size][size=12])[/size][/size]
[size=12][size=12]End[/size][size=12] [/size][size=12]Sub[/size][/size]

View user profile http://hoidap.probb.org

2 Re: paltalk code on Sun Mar 06, 2016 1:28 am

HdAd

avatar
Admin
I think there is an example of red dotting in Loco’s Admin Bot project but Im not sure and its way to early for me to be bothered to look.

Or, you could do something like:
Get the list of nics in the room from the room list.
Save that list to an array. (note, that the first item is 0(zero).
Since the code you provided above already gets the name of the offending person, find that name in your array.
Its position in the array will be its index.
Once you know its index, you can then send a message to the rooms listview and choose the nic using LVM_SETITEMSTATE.
Then, use the same method you used to open the window in your “Room Stats” project to choose the Red Dot menu item.

There is an example somewhere on the forum on how to get the rooms list of nics. Search for it and research the LVM_SETITEMSTATE and you can probably figure out the rest.

0

View user profile http://hoidap.probb.org

View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum