Jump to content
Sign in to follow this  
Valley

Downloading Variables

Recommended Posts

Valley

Hi, I'm trying to create a program that reads a php page or xml file from a website, and then parsing that info into variables.

Any help appreciated

Share this post


Link to post
Share on other sites
Jos

Hi, I'm trying to create a program that reads a php page or xml file from a website, and then parsing that info into variables.

Any help appreciated

As in InetGet() ?

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
Richard Robertson

There's a lot of ways to do that. Try being less vague.

Share this post


Link to post
Share on other sites
Valley

Right here it goes,

Im trying to basically get a php page to send key strokes to another computer. Using the php page from a phone/laptop I need autoit to read the variables in the MySQL database or outputted as XML (or other?) and then depending on what that variable is trigger a command/keystroke etc

I've had a go with InetGet() but downloading a file every second or so doesnt seem like the right way to go about this, and it makes my cursor loader icon go mad ^_^

Any help appreciated!

Share this post


Link to post
Share on other sites
martin

You could try downloading it with your own TCP functions.

Maye it would be easier if your AutoIt Script simply used _INetGetSource to read the output of a small php script for example www.webaddress\actions.php?commanNo=5 to get the fifth command.

The php script can read the relevant command and the total number of commands from the database which has been set with data by the php script your phoine is talking to.

echo "command $_Post['commandNo'] is >$command[$_Post['commandNo']<. Lastcommand is $lastcommand"

Then your AutoIt script just has to read the command and see if there are any more commands. If no more commands try againg in a few seconds.

Edited by martin

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites
Valley

Maye it would be easier if your AutoIt Script simply used _INetGetSource to read the output of a small php script for example www.webaddress\actions.php?commanNo=5 to get the fifth command.

The php script can read the relevant command and the total number of commands from the database which has been set with data by the php script your phoine is talking to.

echo "command $_Post['commandNo'] is >$command[$_Post['commandNo']<. Lastcommand is $lastcommand"

Then your AutoIt script just has to read the command and see if there are any more commands. If no more commands try againg in a few seconds.

cheers will have a play

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  

×