MATISZON Posted December 7, 2009 Share Posted December 7, 2009 (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 December 7, 2009 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 More sharing options...
Developers Jos Posted December 7, 2009 Developers Share Posted December 7, 2009 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 More sharing options...
MATISZON Posted December 7, 2009 Author Share Posted December 7, 2009 GREAT thanks [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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now