Jump to content

Downloading Variables


Recommended Posts

  • Developers

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() ?

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

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!

Link to comment
Share on other sites

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.
Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...