Close dialog after script execution throug...
Gleno0h 3 Oct 2019
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.
Gleno0h 3 Oct 2019
rename your
script.sh
to
!script.sh
!preceding exclamtion mark
So easy... Thanks!
Pike_Bishop 3 Oct 2019
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
littlesat 4 Oct 2019
Edited by littlesat, 4 October 2019 - 07:53.
Pike_Bishop 20 Oct 2019
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