where am I missing

42 views
Skip to first unread message

James Silva

unread,
May 4, 2021, 12:29:34 PM5/4/21
to yad-common
Good afternoon, 

--field '<b>Detectar</b>'!detect.png'!Exibe as Informções do Chip Eprom:FBTN'    \
           '@ bash -c Romdetect; yad --text="'"<b>$Rom_mod</b>"'" --filename='"$Rom_hexa"'                              \
                   --justify center --posx 528 --posy 201 --width 580 --height 449                      \
                   --margins 0 --borders 0 --text-align center --undecorated --skip-taskbar        \
                   --on-top  --no-buttons --no-escape --fixed --text-info'                                            \
--posx 255 --posy 200 --margins 0 --columns 1 --text-align center --undecorated               \
--skip-taskbar --on-top         --no-buttons --no-escape --fixed --form

 I'm writing this script and I can't get YAD to call a function and another command at the same time.

Victor Ananjevsky

unread,
May 4, 2021, 12:49:44 PM5/4/21
to yad-c...@googlegroups.com

hi

use a separate exported function to join several commands in a single button action


#!/bin/bash

function hndl {
echo "first action"
yad --text="second action"
}
export -f hndl

yad --use-interp --form --field=multiaction:fbtn hnld



В Tue, 4 May 2021 09:29:34 -0700 (PDT)
James Silva <vnga...@gmail.com> пишет:
--
wbr
Victor Ananjevsky <vic...@sanana.kiev.ua>

James Silva

unread,
May 4, 2021, 2:18:26 PM5/4/21
to yad-common
adorei sua explicação mas deixe me tirar uma dúvida: se eu colocar um YAD na função hndl toda a vez que o YAD for acionado terei que colocar um botão. Desta forma que estou fazendo não precisa de botao para exibir o texto é isto que estou querendo mas nao consigo executar 2 comando ao mesmo tempo

Victor Ananjevsky

unread,
May 4, 2021, 2:52:50 PM5/4/21
to yad-c...@googlegroups.com

вибачайте, дядьку, але я не розумію на португальську

В Tue, 4 May 2021 11:18:25 -0700 (PDT)

James Silva

unread,
May 4, 2021, 3:17:01 PM5/4/21
to yad-common
sorry press the wrong button and I didn't notice

I loved your explanation but let me ask you a question: if I put a YAD in the hndl function every time the YAD is triggered I will have to put a button. This way I’m doing it doesn’t need a button to display the text This is what I’m looking for but I can’t execute 2 commands at the same time
Reply all
Reply to author
Forward
0 new messages