Ban from admin console

You can talk about VB programming here

Ban from admin console

Postby Newbie » Fri Oct 07, 2005 2:52 pm


Why This code doesn't work:
Dim window As Long
Dim X As Long, ban As Long, console As Long, editx As Long
Dim Button As Long
Dim banbutton As Long
window = FindWindow("my window class", vbNullString)
PostMessage window, WM_COMMAND, 32998, 0
console = FindWindow("#32770", vbNullString)
X = FindWindowEx(console, 0&, "ComboBox", vbNullString)
editx = FindWindowEx(X, 0&, "Edit", vbNullString)
Call SendMessageByString(editx, WM_SETTEXT, 0&, "abc")
Button = FindWindowEx(console, 0&, "button", "Ban Selected User")
Call SendMessageLong(Button, WM_KEYDOWN, VK_SPACE, 0&)
Call SendMessageLong(Button, WM_KEYUP, VK_SPACE, 0&)
ban = FindWindow("#32770", "Ban User?")
banbutton = FindWindowEx(ban, 0&, "button", "&Yes")
Call SendMessageLong(banbutton, WM_KEYDOWN, VK_SPACE, 0&)
Call SendMessageLong(banbutton, WM_KEYUP, VK_SPACE, 0&)

Kinda Hard to findout
User avatar
Newbie
imFiles Junior
imFiles Junior
 
Posts: 95
Joined: Fri Oct 07, 2005 2:51 pm

Postby Crashypoo » Fri Oct 07, 2005 11:20 pm

wtf is

findwindow = "MY WINDOW CLASS"
User avatar
Crashypoo
NINJA PALTALK GOD
NINJA PALTALK GOD
 
Posts: 470
Joined: Sun Jan 02, 2005 7:53 am

Postby Guest » Fri Oct 07, 2005 11:53 pm

Crashypoo wrote:wtf is

findwindow = "MY WINDOW CLASS"


thats what i call the handle for that window
Guest
 

Postby Guest » Tue Oct 11, 2005 6:37 pm

aaaaaaaaaahhhhhhhhhh ahahahah i have been released that change my staus program seen here....

:arrow: http://www.paltalk-hacks.com/phpBB2/viewtopic.php?t=179

Image

This Program was Released as Beta on September 23th 2005
Change my Paltalk Status
Last tested on PalTalk Messenger 8.1 Build 104
For Options to pick from to change your Paltalk Status to.

Download is Available at the link below.


http://www.paltalk-hacks.com/Beta/CMPS.zip
Guest
 

Postby Guest » Wed Oct 12, 2005 5:08 am

when i released it i forgot to change the frame1 to options :cry: stop fighting.
Guest
 

Postby locohacker » Sun Oct 16, 2005 1:54 am

hey Newbie :) u trying to make a banner or bouncer :)
User avatar
locohacker
Site Admin
Site Admin
 
Posts: 4361
Joined: Fri Dec 31, 2004 6:59 pm

Postby Newbie » Sun Oct 16, 2005 8:11 am

Yeah
Trying To Make A Ban

However doesn't seem to work. Seem to be that findwindow(#32770,"Ban User?") doens't work. cannot find that handle
User avatar
Newbie
imFiles Junior
imFiles Junior
 
Posts: 95
Joined: Fri Oct 07, 2005 2:51 pm

Postby locohacker » Mon Oct 17, 2005 10:41 am

umm i was working on sothing like this i give u the code tomorrow :) today is a schoolday, check tomorrow it should be here :)
User avatar
locohacker
Site Admin
Site Admin
 
Posts: 4361
Joined: Fri Dec 31, 2004 6:59 pm

Postby locohacker » Tue Oct 18, 2005 10:31 am

Umm well I think I fix it :), but check this I could not make this code work lol dont know why
Code: Select all
 banbutton = FindWindowEx(ban, 0&, "button", "&Yes")


So I did this instead
Code: Select all
x = FindWindow("#32770", "Ban User?")
button = FindWindowEx(x, 0&, "button", vbNullString)
Call SendMessageLong(button, WM_KEYDOWN, VK_SPACE, 0&)
Call SendMessageLong(button, WM_KEYUP, VK_SPACE, 0&)


So the final code would look like this

Code: Select all
Dim window As Long
Dim x As Long, ban As Long, console As Long, editx As Long
Dim button As Long
Dim banbutton As Long
window = FindWindow("my window class", vbNullString)
PostMessage window, WM_COMMAND, 32998, 0
console = FindWindow("#32770", vbNullString)
x = FindWindowEx(console, 0&, "ComboBox", vbNullString)
editx = FindWindowEx(x, 0&, "Edit", vbNullString)
Call SendMessageByString(editx, WM_SETTEXT, 0&, "abc")
button = FindWindowEx(console, 0&, "button", "Ban Selected User")
Call SendMessageLong(button, WM_KEYDOWN, VK_SPACE, 0&)
Call SendMessageLong(button, WM_KEYUP, VK_SPACE, 0&)
x = FindWindow("#32770", "Ban User?")
button = FindWindowEx(x, 0&, "button", vbNullString)
Call SendMessageLong(button, WM_KEYDOWN, VK_SPACE, 0&)
Call SendMessageLong(button, WM_KEYUP, VK_SPACE, 0&)


Dont know why its weird cause when i try to use &Yes too it didnt work :(

hey but that one works :)
User avatar
locohacker
Site Admin
Site Admin
 
Posts: 4361
Joined: Fri Dec 31, 2004 6:59 pm

Postby Newbie » Wed Oct 19, 2005 8:29 am

Still Doesn't work for me :(
I already try to delay the findwindow cuz i think the code execute too fast. It find the window before it appears, but still....doesn't work.Weird
User avatar
Newbie
imFiles Junior
imFiles Junior
 
Posts: 95
Joined: Fri Oct 07, 2005 2:51 pm

Postby locohacker » Wed Oct 19, 2005 9:06 pm

lol same thing it happen to me,

but hey i mean if u try
Code: Select all
x = FindWindow("#32770", "Ban User?")
button = FindWindowEx(x, 0&, "button", vbNullString)
Call SendMessageLong(button, WM_KEYDOWN, VK_SPACE, 0&)
Call SendMessageLong(button, WM_KEYUP, VK_SPACE, 0&)


alone it works when the ban user box is open .

and i havent try a time delay, did u put it before the ban user box comes up in the even procedure
User avatar
locohacker
Site Admin
Site Admin
 
Posts: 4361
Joined: Fri Dec 31, 2004 6:59 pm

Postby Newbie » Thu Oct 20, 2005 1:28 pm

I give up this project

Don't know why!!! IT DOESNT WORK
User avatar
Newbie
imFiles Junior
imFiles Junior
 
Posts: 95
Joined: Fri Oct 07, 2005 2:51 pm

Postby ibeeback » Thu Oct 20, 2005 4:02 pm

Can you write this code and we can download it.

source code...
ibeeback
 
Posts: 6
Joined: Sun Aug 07, 2005 1:17 pm

Postby locohacker » Thu Oct 20, 2005 5:32 pm

man dont give up lol, just keep on trying i think u got to do something with a time delay, or a loop to find window then ban, some crazy thing like that but dont give up :)

ibeback, you want the source or exe :?:
User avatar
locohacker
Site Admin
Site Admin
 
Posts: 4361
Joined: Fri Dec 31, 2004 6:59 pm

Postby Departure » Thu Oct 20, 2005 6:06 pm

I used a time delay for the misconduct bomber, I had the same problem of the code running too fast
User avatar
Departure
Global Moderator
Global Moderator
 
Posts: 996
Joined: Thu Mar 17, 2005 11:26 am
Location: Australia

Next

Return to Visual Basic Programming

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests

cron