AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Bot

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Slipknot



Joined: 08 Oct 2009
Posts: 2

PostPosted: Thu Oct 08, 2009 8:23 pm    Post subject: Bot Reply with quote

I have a bot that sends messages in game. Although, I need to revise it completely.

It uses LBBrowse3.dll to view the game online.

I will post the code, below:

Code:

Name = ###
Samp = Information
#NoTrayIcon
DetectHiddenWindows, On

CheckForDll:
IfNotExist, lbbrowse3.dll
 Goto, Lbbrowse3
LBBHandle := DllCall("LoadLibrary", "str", "lbbrowse3.dll")

InputBox, Loops, Accounts, How many accounts?
InputBox, Time, Delay, How long between posts in seconds? (minimum 10)
Time := (Time * 1000)

Loop, %Loops%
{
Loop, 10
{
Random, Number, 1, 26
FileReadLine, Letter, Letters.txt, %Number%
FileAppend, %Letter%, Mail.txt
}
FileAppend, `n, Mail.txt
}

CreatGui:
Gui,Font,cWhite
Gui,Add,Text,x6 y414,Options |
Gui,Add,Picture,gForms x+4 y410,Pic.jpg
Gui,Add,Text,x+4 y414,|
Gui,Add,Picture,gDoo x+4 y410,PicDos.jpg
Gui,Add,Text,x+4 y414,|
Gui,Add,Picture,gWoo x+4 y410,Exit.jpg
Gui, Color,black,black
Gui,Show,w662,%Name%
WinSet, Transparent, 180, %Name%
WinGet,GuiID,ID,%Name%
WinSet, Style, -0xC00000, %Name%
WinSet, Style, -0x40000, %Name%

XIE = 6 ;Browser X
YIE = 6 ;Browser Y
WIE = 650 ;Browser Width
HIE = 400 ;Browser Height
Url = http://website.com

DLLCall("lbbrowse3\CreateBrowser","uInt",GuiID,"Int",XIE,"Int",YIE,"Int",WIE,"Int",HIE,"Str",Url,"Int",1)
DllCall("lbbrowse3\EnableBrowser","Int",1)
DllCall("lbbrowse3\ShowBrowser","Int",0)
DLLCall("lbbrowse3\MoveBrowser","Int",XIE,"Int",YIE,"Int",WIE,"Int",HIE)
return



;Options
Forms:
N = 1
Loop, %Loops%
{
FileReadLine, Email, Mail.txt, %N%
Url3 = javascript:function D(a,b){c=b.split('|');d=false;for(q=0;q<c.length;q++){if(c[q]==a)d=true;}return d;}function E(){f0=document.forms[0];f0['username'].value='%Email%@gmail.com';f0['king'].value='%Email%';f0['pwd'].value='whatthezor';f0['pwd2'].value='whatthezor';for(i=0;i<f0['sex'].length;i++){if(D(f0['sex'][i].value,'0')){f0['sex'][i].checked=true;}}}E()
DllCall("lbbrowse3\Navigate", "str", Url3)
Sleep, 1000
Url4 = javascript:document.forms[0].submit()
DllCall("lbbrowse3\Navigate", "str", Url4)
Sleep, 2000
StatusBarWait, Done,,, %Name%
Sleep, 10000
H = 1
Loop, 5
{
ControlClick, x385 y370, %Name%
Sleep, 200
ControlSend, MacromediaFlashPlayerActiveX1, Put message here, %Name%
Sleep, 200
ControlClick, x433 y365, %Name%
Sleep, %Time%
H ++
}
N ++
DllCall("lbbrowse3\Navigate", "str", Url)
Sleep, 5000
}

Lbbrowse3:
msgbox,262180,Start URL,This ahk-script requires lbbrowse3.dll`n`nDownload`n- lbbrowse3.dll`n`nfrom`nhttp://www.alycesrestaurant.com/lbbrowse.htm`n`nLBBROWSE.DLL is copyright Alyce Watson, 2005.`n`nWould you like to download lbbrowse3.dll now?
ifmsgbox,NO
   {
   exitapp
   return
   }
else
   {
   ;run,http://www.alycesrestaurant.com/lbbrowse.htm
   run,http://www.alycesrestaurant.com/zips/browsdll3.zip
   exitapp
   return
   }
return

Woo:
GuiClose:
FileDelete, Mail.txt
ExitApp

Doo:
Menu,Tray,Icon
TrayTip,%Name%,Press WIN and E to show the window.
WinHide,%Name%
return

#e::
Menu,Tray,NoIcon
WinShow,%Name%
return


But whenever I run it, I get an error,
503 Service Unavailable
The service is not available. Please try again later.

Why am I getting this?

Slipknot
Back to top
View user's profile Send private message
Carcophan



Joined: 24 Dec 2008
Posts: 768
Location: :noitacoL

PostPosted: Thu Oct 08, 2009 8:29 pm    Post subject: Reply with quote

Quote:

The 503 Service Unavailable error is an HTTP status code that means the web site's server is simply not available at the moment


That, or your address is wrong.

Are you able to test this with a different site?
Back to top
View user's profile Send private message AIM Address
Slipknot



Joined: 08 Oct 2009
Posts: 2

PostPosted: Thu Oct 08, 2009 10:15 pm    Post subject: Reply with quote

I just changed the URL for it to google.com, and it did not work. What could this mean?

I can view sites fine with FireFox...

Slipknot
Back to top
View user's profile Send private message
Jex



Joined: 01 Aug 2008
Posts: 101

PostPosted: Fri Oct 09, 2009 3:34 am    Post subject: Reply with quote

I have no idea...here's general trouble shooting:

It could be the .dll, have you updated it?
Improper calling of the dll? (ahk syntax or dll function)
Updated Ahk version?
_________________
Woot.

Please read forum etiquette
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group