Button Targets to launch external links/scripts/apps

The forum for designers and developers.
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Virgus
Posts: 39
Joined: 9. Oct 06, 19:43
Location: Rome, Italy
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Button Targets to launch external links/scripts/apps

Postby Virgus » 9. Oct 06, 20:03

Hi I've been testing SJ for two days and think it's a great product.
I'm eagerly awaiting for the web interface option to control my home audio from my PDA :-)
meanwhile I'm using with Ajax to control it remotely (both with a remote and via http)

I wanted to add a button to the skin interface to turn the amplifier on/off (through ) but there seems to be no option to set an external target.

Just for clarification:
1) I learn the IR codes from the HiFi remote with USBUIRT device,
2) set the PWR ON/OFF code to be sent from Girder with the AMPPWRON command
3) enabled Girder Web Interface
4) now if I open the link (or better if I use a HTTP GET or POST command without even opening the browser) http://server:port/ajax_sendevent.lhtml ... &device=18 the IR codes are sent to the HiFi and it's turned on.

Is there any way to set the execution of a HTTPget/HTTPpost/script/batch_file as a target of a button?

Thanks,
Virgus from Italy

User avatar
Service-Team
Posts: 2448
Joined: 7. Dec 04, 04:48
Location: Germany
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Button Targets to launch external links/scripts/apps

Postby Service-Team » 9. Oct 06, 20:21

Hello Virgus,

wecome aboard!

Virgus wrote:
> [...] Is there any way to set the execution of a
> HTTPget/HTTPpost/script/batch_file as a target of
> a button?

Not yet, but this is a feature standing on one of the top places on our TODO-List ;-) You can expect such a feature in one of the next versions.

Best regards,
Your Silverjuke Team

Virgus
Posts: 39
Joined: 9. Oct 06, 19:43
Location: Rome, Italy
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Button Targets to launch external links/scripts/apps

Postby Virgus » 9. Oct 06, 20:31

Great, I subscribed to SJ newsletter :-D
meanwhile I've more questions/ideas to ask :shocked:
but they need a wishlist post :mrgreen:

Ciao!

User avatar
Service-Team
Posts: 2448
Joined: 7. Dec 04, 04:48
Location: Germany
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Button Targets to launch external links/scripts/apps

Postby Service-Team » 21. Nov 06, 09:20


User avatar
JoneK
Posts: 14
Joined: 5. May 10, 15:27
Location: Finland
Contact:

Re: Button Targets to launch external links/scripts/apps

Postby JoneK » 6. Aug 10, 18:19

Hi, i'm trying to get this to work.

I have a button but for some reason it gives me an error

<button x="0" y="0" src="button1.png" onclick ="program.run('c:\windows\notepad.exe');"/>
<button x="0" y="20" src="button1.png" onclick="program.run('c:\table.png')" />

I tried these scripts.. and they didn't work. Do i need something to the .sj file? This is my first time trying to script.

edit

ok so... for a reason unknown
2010-08-07 23:22:28.548: Error: Execution of command 'c:windows otepad.exe' failed (error 2: the system cannot find the file specified.)
2010-08-07 23:22:28.548: Error: Line 1: Error: cannot run [/graphite 1.66.sjs#zip:main.xml]

xml is ansi codec but for a reason, it won't read the line properly?!

Re edit..

It is the \ ... !??! any ideas?

Service-Team wrote:
> Hello again,
>
> version 2.10beta8 (available in the customer area)
> now supports lauching external applications using
> the onclick attribute combined with a
> program.run() statement.
>
> Example:
>
> <button x=".." y=".."
> src=".."
> onclick="program.run('c:\windows\notepad.exe')"
> />
>
> Best regards,
> Your Silverjuke Team

SilverEagle
Posts: 713
Joined: 30. Sep 08, 14:00
Location: Netherlands
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Button Targets to launch external links/scripts/apps

Postby SilverEagle » 9. Aug 10, 08:30


User avatar
JoneK
Posts: 14
Joined: 5. May 10, 15:27
Location: Finland
Contact:

Re: Button Targets to launch external links/scripts/apps

Postby JoneK » 10. Aug 10, 09:59

Tnx, didn't see that :)


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “Developer Network”