- This topic has 10 replies, 4 voices, and was last updated 18 years ago by Newbie.
-
AuthorPosts
-
October 22, 2005 at 2:56 pm #189261AdminAdministrator
Hey I was working a little on the admin bot, but here my big problem 🙂
I can,t highlight the nick on the room list accurately, lol I being using this code to hightlight the nick
Dim mywindowclass As Long, wtlsplitterwindow As Long, atlb As Long
Dim syslistview As Long
mywindowclass = FindWindow("my window class", Text5)
wtlsplitterwindow = FindWindowEx(mywindowclass, 0&, "wtl_splitterwindow", vbNullString)
wtlsplitterwindow = FindWindowEx(wtlsplitterwindow, 0&, "wtl_splitterwindow", vbNullString)
wtlsplitterwindow = FindWindowEx(wtlsplitterwindow, 0&, "wtl_splitterwindow", vbNullString)
atlb = FindWindowEx(wtlsplitterwindow, 0&, "atl:005047b8", vbNullString)
syslistview = FindWindowEx(atlb, 0&, "syslistview32", vbNullString)
Call SendMessageByString(syslistview, WM_LBUTTONDOWN, 0&, 0&)
SendKeys Text6 + vbCrwhere Text6 is the textbox where the nick goes 🙂
anyways I just wondering if anyone has being able to accurately do it, lol like with the method i am using its about 10 percent accuratley 🙂 eheheh
October 22, 2005 at 9:04 pm #189271NewbieMemberCode Seem To Be Ok
However. When I try to putPostMessage mywindowclass, WM_COMMAND, 32946, 0
after
SendKeys
Then the Select nick seem to be ok, but Post message donesn’t work. Something is wrongOctober 23, 2005 at 12:39 pm #189270AhFoxMemberOf course it doesn’t work … ’cause Sendkey is just same thing as hit a key board ..
try to send first letter only.
Example your nickname: “Admin”
Try to find: “L”
Then if it doesn’t work then find another “L”
October 23, 2005 at 2:32 pm #189269NewbieMemberhow do you know if it will find the exact user
like , in the room, there is a “Admin” and “Admin1”
October 23, 2005 at 3:04 pm #189268AhFoxMemberEverytime you hit the first letter … it jumps …
eventually it comes to the right nick!
October 23, 2005 at 3:06 pm #189267AdminAdministratorNVYE What u mean send the first letter u mean using like sendmessege something like that ❓
October 23, 2005 at 4:40 pm #189266NewbieMember😆
October 23, 2005 at 6:10 pm #189265AhFoxMemberYour code:
Dim mywindowclass As Long, wtlsplitterwindow As Long, atlb As Long
Dim syslistview As Long
mywindowclass = FindWindow("my window class", Text5)
wtlsplitterwindow = FindWindowEx(mywindowclass, 0&, "wtl_splitterwindow", vbNullString)
wtlsplitterwindow = FindWindowEx(wtlsplitterwindow, 0&, "wtl_splitterwindow", vbNullString)
wtlsplitterwindow = FindWindowEx(wtlsplitterwindow, 0&, "wtl_splitterwindow", vbNullString)
atlb = FindWindowEx(wtlsplitterwindow, 0&, "atl:005047b8", vbNullString)
syslistview = FindWindowEx(atlb, 0&, "syslistview32", vbNullString)
Call SendMessageByString(syslistview, WM_LBUTTONDOWN, 0&, 0&)
SendKeys Text6 + vbCrLooks perfect.
SendKeys Text6 + vbCr
Instead use left(text6.text, 1)
‘Jumps three times …
SendKeys Left(text6.text, 1)
SendKeys Left(text6.text, 1)
SendKeys Left(text6.text, 1)if you see it will select a nickname with first letter …
then if you add it again … it jumps to another nick …Eventually it will jump to the right nick. Maybe you use the getUID and check for the nick … that match your nick ….
Hope this helps … becareful for infinite loop if the nick doesn’t exists.
October 23, 2005 at 8:55 pm #189264NewbieMemberWell there is another problem
For example , in a room, there are
“Oyah”
“Admin”
“Admin1”So if we type the 3 first letters, we dont know wich Admin we are talking about. How ever if we type the 4th letter, it will jum to Oyah.
I dont know but i have a confusion in the nickname
October 23, 2005 at 11:53 pm #189263AhFoxMemberI said … hit the first letter only …
Admin …
Hit “L” only …
No O or C or H
hit the first letter and it jumps …
May 28, 2006 at 6:45 pm #189262methodMemberloco did u your solve your problem in highlighting user name ? furthermore, could u tell me how to run this code ? i want to test it. What controles do i need in my form ? do i need to be admin to use this code ?looking forward to your reply.
-
AuthorPosts
Related
- You must be logged in to reply to this topic.