Jump to content
Sign in to follow this  
ThanhDuy

How to write a function to check invisible at http://www.invisible-scanner.com

Recommended Posts

ThanhDuy

I want write te a function to check invisible. But i don't know how to write it in AutoIT. Can You help me ?

function checkUser() {
    xmlHttp=GetXmlHttpObject()
    if (xmlHttp==null) {
        alert ("Browser does not support HTTP Request")
        return
    }
 
    var user=document.getElementById('user').value;
    //var isId=document.getElementById('isId').checked;
    var isOnline=document.getElementById('isOnline').checked;
    var isAvatar=document.getElementById('isAvatar').checked;
 
    checkUserAction();
 
    var url="ans2.php"
    params="user="+user
    //if (isId) params=params+"&isId=1"
    //if (isOnline) params=params+"&isOnline=1"
    params=params+"&isOnline=1"
    //if (isAvatar) params=params+"&isAvatar=1"
    params=params+"&isAvatar=1"
    params=params+"&sid="+Math.random()
    xmlHttp.onreadystatechange=stateChanged
    xmlHttp.open("POST",url,true)
    xmlHttp.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
    xmlHttp.send(params);
}

My code. but it doesn't work

Func Scanner($Yid)
    $oHTTP = ObjCreate("WinHttp.Winhttprequest.5.1")
    Local $server = "http://www.invisible-scanner.com"
    $para = "user=" & $Yid & "&isOnline=1" &"&isAvatar=1" & "&sid=" & Random()
    $oHTTP.Open("GET", $server & "/ans2.php")
    $oHTTP.setRequestHeader('Content-Type','application/x-www-form-urlencoded')
    $oHTTP.Send($para)
    $HTMLSource = $oHTTP.Responsetext
    ConsoleWrite($HTMLSource)
EndFunc
Edited by ThanhDuy

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.