Jump to content

Bug in autoit ?


 Share

Recommended Posts

Ex

$val = 1000 ;OK!
$val = "1000" ;bad
$val = GuiCtrlRead($input) ;bad
$val = IniRead("det.ini", "settings", "val", "1000") ;bad

I mean with like will use $val = 1000 in this script is good but use a different from the examples already bad :)

script

Func izolatka()
        $formid = 5
        $sepa = 1
        For $x = 1 To $strony
            _IENavigate($IE, "http://bialoleka.prisonwars.pl/"&$strona1&"/" & $sepa & "/")
            $html = _IEBodyReadHTML($IE)
            $kasa = _StringBetween($html, "class=right>$", "</td>")
            For $y = 0 To UBound($kasa) - 1
                ;   MsgBox(0, $s, $kasa[$s])
                ;   ToolTip($kasa[$y], 2, 2)
                Sleep(90)
                $kasax = StringReplace($kasa[$y], " ", "")
                MsgBox(0, "", $kasax)
                If $val <= $kasax Then
                    TrayTip("Bot", "Wykupuje z izoltaki zysk: " & $kasa[$y], 10, 1)
                    $form = _IETagNameGetCollection($IE, "form", $formid + $y)
                    ;MsgBox(0, "", "")
                EndIf
            Next
            $sepa += 1
        Next
EndFunc   ;==>izolatka

If you want I can give my whole script

I can do something with this?

Edited by MATISZON

[size="3"][font="Arial Black"]I'm from the Polish do not as well know how English[/font][/size]

Link to comment
Share on other sites

  • Developers

Use the Number() function to change a String to a Value before using it.

$val = Number("1000") 
$val = Number(GuiCtrlRead($input))
$val = Number(IniRead("det.ini", "settings", "val", "1000"))

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...