XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently 2017年 Aug 21日 09:52

All times are UTC - 8 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: 2013年 Mar 22日 00:12 
Offline

Joined: 2012年 Jun 18日 00:07
Posts: 268
What code can be used to update a core from a button press ?, for example
webparsercore1.update or accweathercore1.update


Top
 Profile  
 
PostPosted: 2013年 Mar 22日 01:41 
Offline

Joined: 2013年 Mar 22日 01:04
Posts: 7
- In WebParseCore and RSSCore it's done with !Refresh (OnClick)
- In AccWeatherCore it's !UpdateWeather (OnClick).

But don't forget to bind your "button" to your specific core (e.g. accweathercore1).


Top
 Profile  
 
PostPosted: 2013年 Mar 22日 21:45 
Offline

Joined: 2012年 Jun 18日 00:07
Posts: 268
Quote:
- In WebParseCore and RSSCore it's done with !Refresh (OnClick)
- In AccWeatherCore it's !UpdateWeather (OnClick).
But don't forget to bind your "button" to your specific core (e.g. accweathercore1).


Thank you very much for your reply, that works OK when you want one event to be triggered by one button.
What code would I use to trigger these two events from one button
example-
WebParseCore1.!Refresh;
AccWeatherCore1.!UpdateWeather;

These do not work and give debug errors.


Top
 Profile  
 
PostPosted: 2013年 Mar 22日 23:10 
Offline
User avatar

Joined: 2012年 Jun 10日 05:57
Posts: 315
WebParseCore1.cmd(null,'!Refresh');
AccWeatherCore1.cmd(null,'!UpdateWeather');


Top
 Profile  
 
PostPosted: 2013年 Mar 22日 23:39 
Offline

Joined: 2012年 Jun 18日 00:07
Posts: 268
Thank you qiancang :D


Top
 Profile  
 
PostPosted: 2016年 Mar 9日 03:08 
Offline
User avatar

Joined: 2012年 Dec 5日 17:52
Posts: 4526
So speaking for the rest of the cores, it will be like this?

ramcore1.cmd(null,'!Refresh');

_________________
Image
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/


Top
 Profile  
 
PostPosted: 2016年 May 23日 15:42 
Offline
User avatar

Joined: 2012年 Jun 12日 11:05
Posts: 257
Location: Barcelona
Hi, I also have a question:
Code for battery refresh? is this?
batterycore1.cmd(null,'!Refresh')
Thanks!


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 5 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:  

Powered by phpBB® Forum Software © phpBB Group