-->
Page 1 of 2

Extend control over address bar

PostPosted: Mon Feb 01, 2016 3:30 pm
by gobas
Hi,
first of all, many thanks for this great program.

Could you please implement an extension to the IP to reload + restart the "default" programm by this way. i.e.:

192.168.4.1/default or eventually more universal:
192.168.4.1/run?name=default

At the moment this is only possible with two commands via the editor:

192.168.4.1/edit?name=default
192.168.4.1/run

Regards

Re: Extend control over address bar

PostPosted: Mon Feb 01, 2016 7:25 pm
by Mmiscool
Security wise it would not exactly be safe to do this.

This could how ever be implemented by saving a default program with the following code.

use
http://xxx.xxx.xxx.xxx/input?name=nameofprogramtorun


edited : to remove run command and use load in stead.
Code: Select allonload [run]
wait

[run]
msgget "name" appname
if appname <> "" then  load appname
wait

Re: Extend control over address bar

PostPosted: Wed Feb 03, 2016 2:33 pm
by gobas
OK, thank you, that was a good hint for further tests.
By the way: The command ' run ' is not yet documented.

Best Regards.

Re: Extend control over address bar

PostPosted: Sun Feb 07, 2016 2:11 am
by gobas
Hi,
the feature, I asked for is doable with your suggestion, but with "load appname".
"run appname" leads to a crash.
The src-code of "load" and "run" are nearly the same, whereupon "load" seems to be the correct version.
Is it possible, that "run" is obsolete?
Regards