Sign in to follow this  
Followers 0
MATISZON

Bug in autoit ?

3 posts in this topic

#1 ·  Posted (edited)

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]

Share this post


Link to post
Share on other sites



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"))

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

GREAT thanks


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

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  
Followers 0