XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently 2017年 Dec 13日 01:21

All times are UTC - 8 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: 2014年 Sep 30日 17:05 
Offline

Joined: 2013年 Oct 26日 08:17
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: 2014年 Oct 1日 03:42 
Offline
User avatar

Joined: 2012年 May 12日 20:32
Posts: 576
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: 2014年 Oct 1日 09:40 
Offline

Joined: 2013年 Oct 26日 08:17
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: 2014年 Oct 4日 20:50 
Offline

Joined: 2012年 Jun 18日 00:07
Posts: 269
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: 2014年 Oct 5日 07:54 
Offline

Joined: 2013年 Oct 26日 08:17
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: 2014年 Oct 10日 01:40 
Offline
User avatar

Joined: 2012年 May 12日 20:32
Posts: 576
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: 2015年 Jan 16日 08:47 
Offline
User avatar

Joined: 2013年 Mar 8日 22:27
Posts: 357
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 6 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