mIRC Home    About    Download    Register    News    Help

Print Thread
#136099 22/11/05 07:10 PM
Joined: Jan 2004
Posts: 129
A
AaronL Offline OP
Vogon poet
OP Offline
Vogon poet
A
Joined: Jan 2004
Posts: 129
Hi all.
I have a triviant bot and i want to send the points directly to my website.
Is this possible and if so, can someone tell me what i need to do to establish that

Greetz
Aaron


Deridio fatum
#136100 22/11/05 07:27 PM
Joined: Oct 2005
Posts: 35
C
Ameglian cow
Offline
Ameglian cow
C
Joined: Oct 2005
Posts: 35
hm... I think you can use the /write command.
I cant make the code, but I can illustrate it:
Code:
 
/write Points.html $read(Points.txt)
;you should write the appropriate html-code-line on the /write-command 

well, I think you get the idea


#indierpgs @ magicstar.net Your indie-rpg fix. Online.
#136101 23/11/05 12:05 AM
Joined: Apr 2003
Posts: 701
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Apr 2003
Posts: 701
You cannot use /write to post to a website. It's possible to write a HTML file to your local disk with lots of /write commands and then /run that html page and have some javascript post to the website. It's just messy since it opens lots of browser windows or tabs.

#136102 23/11/05 12:12 AM
Joined: Apr 2003
Posts: 701
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Apr 2003
Posts: 701
It is possible using sockets, but that would require a very decent knowledge about mIRC scripting, the HTTP protocol (especially the POST method) and sockets and HTML in general. Sockets only provide the most basic connection, you have to script the protocol to the server yourself.
There are some sockets tutorials out there (google, or search this forum, expand date range to a few years), but you'll still need to find out exactly what to send to the web server, and how to process it's response.

If you can paste the entire HTTP connection with all headers, and tell how that data is stored in mIRC, I might be willing to get you underway.


Link Copied to Clipboard