Help me: how to read info text from a browser page?

0 favourites
  • 4 posts
From the Asset Store
OpenAI TTS
$10 USD
Text-to-Speech plugin.Allows your Construct 3 project to convert written text into spoken words
  • Hello everyone, please help how to make the browser read some information on the site, let's say such information is displayed when opening a link with an API key

    {"money":264.44,"currency":"RUB","success":true}

    I just took the base link on the site and added my KEY API and when I enter this entire link into the browser, I get a line like this in Construct 2 so that for example the variable money is updated every 5 seconds and takes only money using the link, that is, the number 264.44?

    Thanks

    Tagged:

  • What you are looking at is JSOn data you should use AJAX to request that URL and then use on AJAX completed parse JSON string to AJAX.lastData then set a variable to JSON.Get("money") and in this case it will set it to 264.44

  • What you are looking at is JSOn data you should use AJAX to request that URL and then use on AJAX completed parse JSON string to AJAX.lastData then set a variable to JSON.Get("money") and in this case it will set it to 264.44

    Event Sheet:

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • What you are looking at is JSOn data you should use AJAX to request that URL and then use on AJAX completed parse JSON string to AJAX.lastData then set a variable to JSON.Get("money") and in this case it will set it to 264.44

    Preview:

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)