OutOfGravity Posted December 13, 2015 Share Posted December 13, 2015 Hello there i am kind new to autoi so please dont kill me if i did something wrong so the script get activated by a button click which isnt in the code here cause passwords etc.it`ll read out the html of the link and search for 1433652401 and 1432420920 which are both different items and counts them.the problem is it only displays one result of the two.pls helpCase $c1 $html = _INetGetSource("http://steamcommunity.com/id/outofgravity/inventory/json/730/2") stringreplace($html,"1433652401","") GUICreate("cases" , 500, 500) GUICtrlCreateLabel (@extended, 0,0) stringreplace($html,"1432420920","") GUIctrlcreatelabel(@extended, 0,24) GUISetState(@SW_SHOW) Link to comment Share on other sites More sharing options...
Developers Jos Posted December 13, 2015 Developers Share Posted December 13, 2015 No idea what this is all about but your StringReplace() statement don't do anything in the posted code as the result field isn't specified.Jos 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...
OutOfGravity Posted December 13, 2015 Author Share Posted December 13, 2015 it just has to count how often 1433652401 exist in the source so what can i use instead Link to comment Share on other sites More sharing options...
Developers Jos Posted December 13, 2015 Developers Share Posted December 13, 2015 In that case the second StringReplace() is fine but the first one needs to go one line down, because that now reports the @extended returned by GuiCreate().Jos 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...
OutOfGravity Posted December 13, 2015 Author Share Posted December 13, 2015 (edited) lol xD thanks very much Edited December 13, 2015 by OutOfGravity Link to comment Share on other sites More sharing options...
iamtheky Posted December 13, 2015 Share Posted December 13, 2015 dont get too comfortable asking steam related questions, as game / game server / game provider and anything else you want to call it is generally frowned upon. Not at all disparaging this question, just dont be alarmed if you catch resistance for similar efforts. ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) 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