Jump to content
Sign in to follow this  
OutOfGravity

get steam items and count how many of them are there

Recommended Posts

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

 


SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     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

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 Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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  

×
×
  • Create New...