Sign in to follow this  
Followers 0
OutOfGravity

get steam items and count how many of them are there

6 posts in this topic

Hello there i am kind new to autoi so please dont kill me if i did something wrong :D

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 help

Case $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)

 

Share this post


Link to post
Share on other sites



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

 


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

Share this post


Link to post
Share on other sites

it just has to count how often 1433652401 exist in the source so what can i use instead

Share this post


Link to post
Share on other sites

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


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

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

lol xD thanks very much :D

Edited by OutOfGravity

Share this post


Link to post
Share on other sites

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.


,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

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