SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Studio
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-30-2006, 07:08 PM
afinemetsfan afinemetsfan is offline
Sage User
 
Join Date: Jul 2005
Posts: 26
Automatic refresh?

Is there a way to set a time interval on the refreash() command? Or some way to run the refreash command every X number of seconds?
Reply With Quote
  #2  
Old 06-30-2006, 07:13 PM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
What are you trying to do?

You can use the animation property of a panel to have it update itself periodically, or when a variable is set to true.

- Andy
__________________
SageTV Open Source v9 is available.
- Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1.
- Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus
- HD Extenders: A) FAQs B) URC MX-700 remote setup
Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request.
Reply With Quote
  #3  
Old 06-30-2006, 09:01 PM
afinemetsfan afinemetsfan is offline
Sage User
 
Join Date: Jul 2005
Posts: 26
Well, Im in the process of writing an STVi to import torrent status from Azureus. Azureus can generate an status XML file. Since the status is constantly changing, there needs to be some option to set how often one would want to update the status. I dont have any of the STVi coded yet, just brainstorming on the best way to do things. My plan is to have an array for each column in a table(torrent name, ETA, seeds..ect ) and then populate that array from the XML.

If you think there is a better way to do this, please let me know, im still getting my feet wet with studio.

Thanks
Reply With Quote
  #4  
Old 06-30-2006, 09:29 PM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
There are a lot of things you could do... but one thing to consider is to use the AfterMenuLoad hook & Fork() a thread under it that will watch for updates. It could check things periodically, then use Wait() to pause for a while. When the UI needs to be updated, it could call Reresh() or RefreshArea() if only a certain section needs to be update.

The default STV does something like this for the process of clearing/makring the Watched or Don't Like flag for all of a Favorite's episodes. It goes pretty quick on screen, but it updates the dialog box as it walks through the episodes.

Using the Delete command on a group of shows to delete all of them also does this, pausing a while between each deletion to give the user a change to cancel.

Maybe someone else has another preferred method.

- Andy
__________________
SageTV Open Source v9 is available.
- Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1.
- Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus
- HD Extenders: A) FAQs B) URC MX-700 remote setup
Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 03:43 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.