This topic is now closed to further replies.
Recently Browsing 0 members
No registered users viewing this page.
I was wondering if you can help me with the function called; InetRead().
My scripts are using this function a lot for several conditions and everything works fine!
But sometimes when the server is a little bit buggy of simply not available my script is hanging.
It takes about 90sec before this function returns a Timeout, when i adjust the parameter it still is hanging about 90sec.
The following script is a example where the script is hanging for aprox. 90sec;
; Set Timeout to 2sec AutoItSetOption ("TCPTimeout", 2000) ; Read Website InetRead("http://www.geenverbinding.nl/",1) ; Show Msgbox before Ending Script. Msgbox(64,"","Finished")
The following script is a example where the script show the Msgbox pretty fast;
; Set Timeout to 2sec AutoItSetOption ("TCPTimeout", 2000) ; Read Website InetRead("http://www.google.nl/",1) ; Show Msgbox before Ending Script. Msgbox(64,"","Finished")
My question now is, what am i doing wrong and/or is there a other way to prevent Hanging the script?
Hi everyone, hope you are doing fine
Well, I'm currently writing a small script that goes to a certain web page, finds the first link of a specified section and download the file associated to this link.
Depending on the computer that the tool is launched, the script gets the computer model and search in the (provided here) ini file which link to follow.
At first, Dell was kind enough to provide only one link but now, they provide two of them. The first one is now a .txt file ( ) whereas my script has been designed to download only the fist and latest link released for the BIOS Update.
Here's the current code which is working with only the first and latest link of the BIOS category:
So the question is:
In the case of double links like shown in the picture above, how it is possible to tell the script to download only the link containing an the .exe file?
Of course, I could have changed the array result to  instead of  [which is working] but it seems that Dell does that randomly and that I deal with a lot of computer models.
Thanks for the help you can provide,
Hello AutoIT community.
I am attempting to make a script that will login to my bank account and retrieve one of my account balances and display it in a MsgBox, however it am having some difficulty getting the correct value.... The MsgBox keep displaying a value of "0" instead of the actual string in between the source code I'm looking for.... Any help would be greatly appreciated!
$readtext = InetRead("https://www.xxxbanksitexxx.com/das/cgi-bin/session.cgi?screenid=SIGNON_PORTAL_PAUSE&LOB=CONS",1)
$source = BinaryToString($readtext)
$text = _StringBetween($source,'CHECKING XXXXXXXXXX ', ' "> ')
MsgBox(0,"balance",$text) ;This keeps returning a value of "0"
* Sorry for my many questions,
i use that and it's true and fine,
Local $dData = InetRead("http://example.com/my.html",1) $my = BinaryToString(StringReplace($dData, "0A", "0D0A"), 4) now how can i add functions in "my.html" and autoit run that function,
it's meant when ever "Read" data from website, use that serve as "Autoit Function",
something like that :
In "my.html" we have this :
MsgBox (1,"This is from website","this is from website") In script we have this :
#include <GUIConstantsEx.au3> $hGUI = GUICreate("Test", 500, 500) GuiSetState() Local $dData = InetRead("http://example.com/my.html",1) $my = BinaryToString(StringReplace($dData, "0A", "0D0A"), 4) ;this place is for MsgBox from "my.html" While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Thanks Alot,
After i use that, all of thing is good and perfect,
Local $dData = InetRead("http://example.com/my.html",1) $my = BinaryToString(StringReplace($dData, "0A", "0D0A"), 4) but now how can i reload that after x time ?!
by this ( top script ) , i need to relunch the script to see modified,
now! how can i update data after X time !?
for example :
in "my.html" we have number "3" , i try to change it to "5", now we need to relunch script to see "3" => "5",
how we can use that without relunch script.
thanks alot and sorry for my bad english & too long question.