Valley Posted April 18, 2009 Share Posted April 18, 2009 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 Link to comment Share on other sites More sharing options...
Developers Jos Posted April 18, 2009 Developers Share Posted April 18, 2009 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 appreciatedAs 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 More sharing options...
Richard Robertson Posted April 18, 2009 Share Posted April 18, 2009 There's a lot of ways to do that. Try being less vague. Link to comment Share on other sites More sharing options...
Valley Posted April 19, 2009 Author Share Posted April 19, 2009 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 More sharing options...
Kip Posted April 19, 2009 Share Posted April 19, 2009 You could try downloading it with your own TCP functions. MailSpons: Fake SMTP server for safe email testing Dutch postcode & address API. Link to comment Share on other sites More sharing options...
martin Posted April 19, 2009 Share Posted April 19, 2009 (edited) 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 April 19, 2009 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 More sharing options...
Valley Posted April 19, 2009 Author Share Posted April 19, 2009 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now