Jump to content


Photo

Close dialog after script execution through HotKey


  • Please log in to reply
5 replies to this topic

#1 Gleno0h

  • New Member
  • 2 posts

0
Neutral

Posted 3 October 2019 - 08:09

Hi guys,
I've created a script to control my philips hue lights which i've assigned to a hotkey. All works perfect.

What i would like to know is how i can AUTO close the "press ok to close" screen after pressing the hotkey (a.k.a script dialog)

Or is there another way perhaps?

Thanks!

Edited by Gleno0h, 3 October 2019 - 08:09.


Re: Close dialog after script execution through HotKey #2 mrvica

  • Senior Member
  • 1,224 posts

+81
Good

Posted 3 October 2019 - 09:08

rename your

script.sh

to

!script.sh

!preceding exclamtion mark



Re: Close dialog after script execution through HotKey #3 Gleno0h

  • New Member
  • 2 posts

0
Neutral

Posted 3 October 2019 - 10:36

rename your
script.sh
to
!script.sh
!preceding exclamtion mark


So easy... Thanks!

Re: Close dialog after script execution through HotKey #4 Pike_Bishop

  • Senior Member
  • 1,130 posts

+72
Good

Posted 3 October 2019 - 22:07

or instead rename to !script.sh ;

BOXIP=http://localhost
WGET=/usr/bin/wget

and on the right place then that;
$WGET -q -O - $BOXIP/web/remotecontrol?command=174 # 174 = key for exit
or instead;
$WGET -q -O - $BOXIP/web/remotecontrol?command=352 # 352 is key for ok

regards

Pike


Receiver: VU Ultimo 4K, Octagon SF8008 4K, Gigablue Quad 4K

Image: OpenPLI-8.3


Re: Close dialog after script execution through HotKey #5 littlesat

  • PLi® Core member
  • 56,260 posts

+691
Excellent

Posted 4 October 2019 - 07:52

The wget trick is ugly when you think about what happens in your box and eg you press another button or so before the script ends.... use the ! is strongly recommended.

Edited by littlesat, 4 October 2019 - 07:53.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Close dialog after script execution through HotKey #6 Pike_Bishop

  • Senior Member
  • 1,130 posts

+72
Good

Posted 20 October 2019 - 21:32

hmm, but what is now if i have a script that runs longer and i need no output because i have logging build in in the script

and i want only to see a startmessage a endmessage and a error message with wget if the script fails ?

for these scripts i closed first after start from the script the window with wget and a button command as example;

$WGET -q -O - $BOXIP/web/remotecontrol?command=352

and then the script runs in the background and only the messages that i have build in in the script are coming on display and are automatically closed after a timeout.

 

this are not works anymore, earlier that works without problems, but now indifferent the script is named !blabla.sh or only blabla.sh it didn't work because the osd from the script

is open until then the script runs, and you can nothing do in this time with the box.

i don't know if this have to do with exclamation mark but it's not a good solution as it is now for scripts they runs longer.

 

 

regards

Pike


Receiver: VU Ultimo 4K, Octagon SF8008 4K, Gigablue Quad 4K

Image: OpenPLI-8.3



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users