XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently May 10th, 2025, 1:35 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: September 30th, 2014, 5:05 pm 
Offline

Joined: October 26th, 2013, 8:17 am
Posts: 362
Quote:
[Update log]
v1.92 2014-9-2
Add: XWidget.exe support cmd line to Show/Hide widget by widget's FolderName: showWidget:folderName, hideWidget:foderName, showHideWidget:folderName. etc: "d:\soft\xwidget\xwidget.exe hidewidget:htchome"

1. is it support show/hide of multiple widgets in one command?
if so then how?

2. is there any command available that can be used in code to do show/hide on other widgets (like msg() but without adding [OnMsg] event on other widget)

> i mean a command that execute inside Xwidget, without need of start another process


-------
currently:
i'm using a loop to show/hide each widget by cmd line,
but this way there will be some problems:

1. it will start too many processes,

2. sometimes one of the processes get high on cpu Usage and hangs, and Xwidget will be hanged until i [EndTask] that process, then all the others will do correctly and Xwidget get back working,


Top
 Profile  
 
PostPosted: October 1st, 2014, 3:42 am 
Offline
User avatar

Joined: May 12th, 2012, 8:32 pm
Posts: 594
Hi Hamid,
You can uses cmd line "msg" to batch show/hide multiple widgets in one command, for excample will send msg to all widget with "aaabbb":
d:\soft\xwidget\xwidget.exe msg:|aaabbb

if you need send msg to some widget with a folderName excample "eker_note", then uses:
d:\soft\xwidget\xwidget.exe msg:eker_note|aaabbb


Tony


hamid wrote:
Quote:
[Update log]
v1.92 2014-9-2
Add: XWidget.exe support cmd line to Show/Hide widget by widget's FolderName: showWidget:folderName, hideWidget:foderName, showHideWidget:folderName. etc: "d:\soft\xwidget\xwidget.exe hidewidget:htchome"

1. is it support show/hide of multiple widgets in one command?
if so then how?

2. is there any command available that can be used in code to do show/hide on other widgets (like msg() but without adding [OnMsg] event on other widget)

> i mean a command that execute inside Xwidget, without need of start another process


-------
currently:
i'm using a loop to show/hide each widget by cmd line,
but this way there will be some problems:

1. it will start too many processes,

2. sometimes one of the processes get high on cpu Usage and hangs, and Xwidget will be hanged until i [EndTask] that process, then all the others will do correctly and Xwidget get back working,

_________________
XWidget Software Developer
[XWidget for Android] [Lastest version of XWidget] [Lastest patch of XWidget]
[XDesktop for Android/Windows]


Top
 Profile  
 
PostPosted: October 1st, 2014, 9:40 am 
Offline

Joined: October 26th, 2013, 8:17 am
Posts: 362
thanks for the info Tony,
but still i didn't find the answer,

i mean to have 2 or more folder name in one command,
is there anyway to separate folder names in one command?

for example:
Code:
"d:\soft\xwidget\xwidget.exe hidewidget:netmeter,clock,calendar,sysinfo"


Top
 Profile  
 
PostPosted: October 4th, 2014, 8:50 pm 
Offline

Joined: June 18th, 2012, 12:07 am
Posts: 268
Hi hamid
I can not try it because I am not using the latest version but did you try, in a function
run("c:\pathto\xwidget\xwidget.exe hideWidget:folder1name|widget1name");
run("c:\pathto\xwidget\xwidget.exe hideWidget:folder2name|widget2name");
run("c:\pathto\xwidget\xwidget.exe hideWidget:folder3name|widget3name");
etc.

Or is this what you mean by
Quote:
i'm using a loop to show/hide each widget by cmd line,


Top
 Profile  
 
PostPosted: October 5th, 2014, 7:54 am 
Offline

Joined: October 26th, 2013, 8:17 am
Posts: 362
meme wrote:
Or is this what you mean by
Quote:
i'm using a loop to show/hide each widget by cmd line,

yes, i'm using same way but with Open2("","") function,
and it will have these problems:
Quote:
but this way there will be some problems:

1. it will start too many processes,

2. sometimes one of the processes get high on cpu Usage and hangs, and Xwidget will be hanged until i [EndTask] that process, then all the others will do correctly and Xwidget get back working


also there is another problem:
3. on [showwidget] command, the opacity of widgets will be 100%, until i mouse over widget


Top
 Profile  
 
PostPosted: October 10th, 2014, 1:40 am 
Offline
User avatar

Joined: May 12th, 2012, 8:32 pm
Posts: 594
Hi Hamid,
You can uses cmd line "msg" to show/hide 2 or more widgets in one command, for excample will send msg to all widget with "hamidmsg_aaabbb":
d:\soft\xwidget\xwidget.exe msg:|hamidmsg_aaabbb

and then you can write script in your 2 or more widgets to get the msg text and check wether contain perfix "hamidmsg_" , if yes then do action.

etc pseudo-code:

function widgetOnMsg(msg){
if msg begin with "hamidmsg_" then {
do some action
}
}



hamid wrote:
thanks for the info Tony,
but still i didn't find the answer,

i mean to have 2 or more folder name in one command,
is there anyway to separate folder names in one command?

for example:
Code:
"d:\soft\xwidget\xwidget.exe hidewidget:netmeter,clock,calendar,sysinfo"

_________________
XWidget Software Developer
[XWidget for Android] [Lastest version of XWidget] [Lastest patch of XWidget]
[XDesktop for Android/Windows]


Top
 Profile  
 
PostPosted: January 16th, 2015, 8:47 am 
Offline
User avatar

Joined: March 8th, 2013, 10:27 pm
Posts: 353
This pipe character '|' causes issues. It is used as a shell piping separator and thus is a reserved symbol.
This doesn't work. You MUST change that '|' to someting else

_________________
Life is a myriad game... Just play it!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 45 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

Powered by phpBB® Forum Software © phpBB Group