Jump to content
Sign in to follow this  
VisMan

Need help with script

Recommended Posts

VisMan
Hi guys. I am new to AutoIT script and i need a little explanation ) 
 
Can anyone help me to understand what each line means... ?
 
 
 
#$Var0738 = @TempDir & "~tmp3.html"
InetGet(http://www.x.com/123.txt", $Var0738, 1)
$Var0739 = FileOpen($Var0738, 0)
Local $Local013B[Fn01FE($Var0738)][4]
For $Local0027 = 0 To Number(Fn01FE($Var0738) - 1)
$Var06CB = FileReadLine($Var0739)
$Var06CB = Fn01BB(0, $Var06CB, $Var06C3, 1)
$Var06CD = StringSplit($Var06CB, ",")
$Local013B[$Local0027][0] = StringStripWS($Var06CD[1], 2)
$Local013B[$Local0027][1] = StringStripWS($Var06CD[2], 2)
$Local013B[$Local0027][2] = StringStripWS($Var06CD[3], 2)
$Local013B[$Local0027][3] = Number(StringStripWS($Var06CD[4], 2))
Next
FileClose($Var0739)
Sleep(0x0064)
FileDelete($Var0738)
Sleep(0x0064)
$Var073A = False
$Var073B = False
Fn0012($Local013B, 0, 0, 0, 3)
 
 
 
------------------------------------------------------------------------------------
 
 
 
Func Fn01D4()
TCPStartup()
$Var06C5 = TCPNameToIP("www.x.com")
$Var06C6 = TCPNameToIP("y.ru")
TCPShutdown()
If $Var06C5 = "x.x.x.x" And $Var06C6 = "y.y.y.y" Then
$Var06C7 = @TempDir & "~tmp1.html"
$Var06C8 = @TempDir & "~tmp2.html"
InetGet("http://y.ru/", $Var06C7, 1)
InetGet("http://www.x.com/license/1.html", $Var06C8, 1)
$Var06C9 = FileOpen($Var06C7, 0)
$Var06CA = FileOpen($Var06C8, 1)
While 1
$Var06CB = FileReadLine($Var06C9)
If @error = -1 Then ExitLoop
If StringInStr($Var06CB, "чтототам: ") Then
$Var06CB = Fn01BA($Var06CB, "чтототам: ", "</h1>")
$Var06CB = StringSplit($Var06CB[0], "-")
$Var06CC = Number($Var06CB[1] & $Var06CB[3] & $Var06CB[2])
EndIf
WEnd
While 1
$Var06CB = FileReadLine($Var06CA)
If @error = -1 Then ExitLoop
$Var06CB = Fn01BB(0, $Var06CB, $Var06C3, $Var06C4)
If StringInStr($Var06CB, $Var06C2) Then
$Var06CD = StringSplit($Var06CB, "|")
$Var06CE = Number($Var06CD[2])
$Var06BE = StringMid($Var06CD[2], 7, 2) & "." & StringMid($Var06CD[2], 5, 2) & "." & StringMid($Var06CD[2], 1, 4)
If $Var06CE < $Var06CC Then
MsgBox(0, "x.com blablabla", "blablabla")
$Var06C1 = True
ExitLoop
Else
$Var06C1 = False
ExitLoop
EndIf
Else
EndIf
WEnd
Else
MsgBox(0, Error Check file " WindowsSystem32driversetchosts")
EndIf
FileClose($Var06C9)
FileClose($Var06CA)
Sleep(0x0064)
FileDelete($Var06C7)
Sleep(0x0064)
FileDelete($Var06C8)
Sleep(0x0064)
EndFunc

Share this post


Link to post
Share on other sites
Melba23

VisMan,

Welcome to the AutoIt forum. :)

May I ask from where you got that script? As you obviously have no knowledge of AutoIt (not in itself a bad thing and we are ready to help you learn) and do not understand the code you obviously did not code it yourself. To my eyes it has some interesting characteristics. ;)

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

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  

×