iPad reading data from directory and Controlling desktop App
Posted: Wed May 21, 2014 9:18 pm
Hi All,
I've had a little play with LiveCode and it looks great, but I was wondering (and I realise this may be me running before I can walk, but it's normally the way I learn best
) if it is possible to do something like this.
But first a bit of background:
I currently have a quiz which runs in, for all intents and purposes in Flash (Written using a program called SWiSH). The set-up is as follows;
I normally have a router setting up a basic network, and 2 pcs (well a Mac and a PC) to run the quiz
The Mac displays the quiz and reads the questions, images, video and sound files it requires from a shared directory. It also gets the "live" scores from here - a plain text file written by the 2nd computer.
The PC runs a LibertyBasic program I wrote many, many years ago which stores team names and then the scores for each team etc. which it writes to a text file in the shared directory as mentioned above. (I don't have access to the program anymore, so can't make any amendments etc.)
Now I am sure that I could get LiveCode to replace both those machines - i.e. an app to run a quiz, and an app for inputting scores etc.
But my questions are:
1. Would I need to write 2 apps - 1 to play the quiz and another to sort out teams and their scores, or could one instance of an app, which had 2 branches i.e. Quiz and Scores be possible? (I am guessing 2 separate apps would be safer, but thought I would ask.)
2. (and here's my pipe dream) Could I get my iPad to access the text files so that it could display the relevant question on my iPad rather than me reading the screen and
3. Could I have a button on the iPad that advanced the quiz, or started a timer for the question - i.e. could an iPad app control a desktop app either directly, or by means of saving a file with a 1 instead of a 0 for example, or am I just asking too much?
4. Does any of this make sense?
(actually, my real pipe dream would be to supply teams with iPads or similar that they could answer from, and therefore automate all the scoring etc. But I'll stick with the "easy" stuff for now lol)
I thought I would try and find the answers out now, before I got too far into writing the app.
All help and advice gratefully appreciated.
Wayne
I've had a little play with LiveCode and it looks great, but I was wondering (and I realise this may be me running before I can walk, but it's normally the way I learn best

But first a bit of background:
I currently have a quiz which runs in, for all intents and purposes in Flash (Written using a program called SWiSH). The set-up is as follows;
I normally have a router setting up a basic network, and 2 pcs (well a Mac and a PC) to run the quiz
The Mac displays the quiz and reads the questions, images, video and sound files it requires from a shared directory. It also gets the "live" scores from here - a plain text file written by the 2nd computer.
The PC runs a LibertyBasic program I wrote many, many years ago which stores team names and then the scores for each team etc. which it writes to a text file in the shared directory as mentioned above. (I don't have access to the program anymore, so can't make any amendments etc.)
Now I am sure that I could get LiveCode to replace both those machines - i.e. an app to run a quiz, and an app for inputting scores etc.
But my questions are:
1. Would I need to write 2 apps - 1 to play the quiz and another to sort out teams and their scores, or could one instance of an app, which had 2 branches i.e. Quiz and Scores be possible? (I am guessing 2 separate apps would be safer, but thought I would ask.)
2. (and here's my pipe dream) Could I get my iPad to access the text files so that it could display the relevant question on my iPad rather than me reading the screen and
3. Could I have a button on the iPad that advanced the quiz, or started a timer for the question - i.e. could an iPad app control a desktop app either directly, or by means of saving a file with a 1 instead of a 0 for example, or am I just asking too much?
4. Does any of this make sense?

(actually, my real pipe dream would be to supply teams with iPads or similar that they could answer from, and therefore automate all the scoring etc. But I'll stick with the "easy" stuff for now lol)
I thought I would try and find the answers out now, before I got too far into writing the app.
All help and advice gratefully appreciated.
Wayne