Jump to content

Idc

Members
  • Posts

    7
  • Joined

  • Last visited

Idc's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Hi, i am using Steam (http://steamcommunity.com). I try to use au3 window info to get message from Steam Chat but cannot. Anyone could help me ?
  2. Thanku.Veryusefulforme
  3. Thanku.Veryusefulforme
  4. I found that _WinHttpOpenRequest cause error (DllCall Failed) many times when i try to run this func more than 3 times so what should i do ? Exactly, when i test this au3, it success and no error, But after many hours, i run au3 again, it seem very bad. #include <winhttp.au3> cngoogle() cngoogle() cngoogle() Func cngoogle() Global $hOpen = _WinHttpOpen("User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.9) Gecko/20100315 Firefox/2.0.0.14;MEGAUPLOAD 1.0") If @error Then MsgBox(48, "Error", "Error initializing the usage of WinHTTP functions.") Exit 1 EndIf ; Get connection handle Global $hConnect = _WinHttpConnect($hOpen, "google.com") If @error Then MsgBox(48, "Error", "Error getting connection handle." & @CRLF & "Error number is " & @error) Else ConsoleWrite("+ Connection handle $hConnect = " & $hConnect & @CRLF) MsgBox(64, "Yes!", "Handle is get! $hConnect = " & $hConnect) EndIf Global $hRequest = _WinHttpOpenRequest($hConnect, _ "GET", _ "/index.html", _ Default, _ "http://google.com/index.html", _ "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8") _WinHttpAddRequestHeaders($hRequest, "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.9) Gecko/20100315 Firefox/2.0.0.14;MEGAUPLOAD 1.0") _WinHttpSendRequest($hRequest, _ "Content-Type: application/x-www-form-urlencoded") If @error Then MsgBox(48, "Error", "OPENREQ FAILED") EndIf ; Wait for the response _WinHttpReceiveResponse($hRequest) Global $sHeader = _WinHttpQueryHeaders($hRequest) msgbox(0,"",$sHeader) _WinHttpCloseHandle($hRequest) _WinHttpCloseHandle($hConnect) _WinHttpCloseHandle($hOpen) EndFunc
  5. #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 343, 99, 192, 124) $Input1 = GUICtrlCreateInput("1", 32, 16, 73, 22) $Input2 = GUICtrlCreateInput("10", 32, 56, 73, 22) $Button1 = GUICtrlCreateButton("GO", 232, 32, 73, 25, $WS_GROUP) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### Func compare() If $v1 > $v2 Then msgbox(0,"","$v1 > $v2") Else msgbox(0,"","$v1 < $v2") EndIf EndFunc While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 Global $v1 = GUICtrlRead($Input1) Global $v2 = GUICtrlRead($Input2) compare() EndSwitch WEnd When i fill in input 1 number "3" and click GO it is so amazing 3 > 10 ???? Could someone help me solve this problem ?
  6. Very useful script, thank you
  7. I need help . It is my code : $x = InputBox("Hi","Your Value:","20") If $x >= 0 Then MsgBox(48,"Your value",$x + 1387.4) Else msgbox(48,"Error","error") EndIf When i run it, if i press OK button it run very good but if i press cancel button it also show that value . So what should i do ?? :-s . (i have just learned autoit for 3 days )
×
×
  • Create New...