Sign in to follow this  
Followers 0
Genotypek

WinHTTP cookies in IE

2 posts in this topic

#1 ·  Posted (edited)

Hello.

That's my first post at your forum. :) My english is not very good, I'm polish, so it's not my native language.
I've got a problem. I'm doing bot to the browser game Tribal Wars using WinHTTP.au3
I already wrote this bot using IE.au3, but it's slow and it doesn't always work.

My bot look is at attachment. It's using IE Object to browse a game by user, but everything else is working at WinHTTP.
All time, when any operation is doing in WinHTTP my TribalWars session is expiring. My question is:
Is it possible to include WinHTTP cookies to IE Object, that the session doesn't expire?

E.g. piece of code:

$hConnect = _WinHttpConnect($hOpen, "pl" & $World & ".plemiona.pl") ; Server connect
$hRequest = _WinHttpOpenRequest($hConnect, "GET", "/game.php?screen=info_player") ; The transition to user profile
_WinHttpAddRequestHeaders($hRequest, "Content-Type: application/x-www-form-urlencoded; charset=UTF-8")
_WinHttpSendRequest($hRequest)
_WinHttpReceiveResponse($hRequest)

PS. Is it possible to decline WinHTTP from downloading ANY images when receiving response?

Bez tytułu.jpg

Edited by Genotypek

Share this post


Link to post
Share on other sites



@Genotypek, you seem to have missed the forum rules on your way in, particularly the bit about game automation. Please read through these before you post again, and you'll see why this topic was locked.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0