ThanhDuy Posted October 8, 2009 Posted October 8, 2009 (edited) 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 October 8, 2009 by ThanhDuy
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now