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 05-11-2009, 02:40 PM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
wait for no input?

Is there an action command to wait until user input is stopped for set amount of time?

I know about wait but wondering if there is a way to say wait until user doesn't press a button for set amount of time?
Reply With Quote
  #2  
Old 05-11-2009, 02:45 PM
jaminben jaminben is offline
Sage Icon
 
Join Date: Sep 2007
Location: Norwich, UK
Posts: 1,754
Send a message via MSN to jaminben
Have you tried the InactivityTimeout() hook.
__________________
Server - Win7 64bit, 2.4Ghz Intel Core 2 Duo, TBS 6284 PCI-E Quad DVB-T2 Tuner, 3 x HD200 & 1 x HD300 extenders
Reply With Quote
  #3  
Old 05-11-2009, 02:55 PM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
That is called for a period of no user activity but what is the time period for that?
Reply With Quote
  #4  
Old 05-11-2009, 05:41 PM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
I am thinking there has got to be be a no user input time call but can't find it.

I am wanting to fire and animation on a listener but only after so long without input but can't find it anywhere.
Reply With Quote
  #5  
Old 05-11-2009, 05:46 PM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
The v6.5 beta release notes mention a new call: GetTimeSinceLastInput().

- 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
  #6  
Old 05-11-2009, 06:15 PM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Quote:
Originally Posted by Opus4 View Post
The v6.5 beta release notes mention a new call: GetTimeSinceLastInput().

- Andy
Okay that makes sense but using that as a listener

If GetTimeSinceLastInput > 2500

fires what I want if I could figure out how to refresh the listener after 2600 so the property would be true a i will always be false when the listener is originally fired.
Reply With Quote
  #7  
Old 05-11-2009, 08:08 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
What is your listener listening for? What specifically are you trying to accomplish?

(Also note you need parentheses after a method name to actually call it.)
__________________
-- Greg
Reply With Quote
  #8  
Old 05-11-2009, 08:44 PM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
Quote:
Originally Posted by PLUCKYHD View Post
fires what I want if I could figure out how to refresh the listener after 2600 so the property would be true a i will always be false when the listener is originally fired.
I think there are at least a couple words missing there, so I am not sure what you are asking. If you want to do something after some time has elapsed, then use a loop to wait a bit, check, wait a bit, check, wait a bit, check... etc.

There are forked looping waits & so on in the default STV you should look for & there is more you may want/need to do -- is the menu still active where the loop was started? If not, don't bother doing what you were waiting to do. Does the action depend on the item still being in focus? Stop the wait loop & don't do anything more if changing focus should cancel the action. And so on.

Quote:
Originally Posted by GKusnick View Post
What is your listener listening for? What specifically are you trying to accomplish?
Yes, exactly. It is hard for someone to suggest something when the goal is unknown.

- 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
  #9  
Old 05-12-2009, 05:40 AM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Quote:
Originally Posted by Opus4 View Post
I think there are at least a couple words missing there, so I am not sure what you are asking. If you want to do something after some time has elapsed, then use a loop to wait a bit, check, wait a bit, check, wait a bit, check... etc.

There are forked looping waits & so on in the default STV you should look for & there is more you may want/need to do -- is the menu still active where the loop was started? If not, don't bother doing what you were waiting to do. Does the action depend on the item still being in focus? Stop the wait loop & don't do anything more if changing focus should cancel the action. And so on.

Yes, exactly. It is hard for someone to suggest something when the goal is unknown.

- Andy
Sorry I wasn't clear but your guys response helped me out. I was trying to wait a certian amount of time and check a property if it was false I wanted to set it to true and animate. I wanted this response to happen after up/down. I realized after much fiddling and looking at loops that it wasn't necessary for my cause. It was easier for me to put it in a focus gained hopefully I understood it correctly. I put a

Fork()
----Wait(time)
----------If GetTimeSinceLastInput() > time
-------------------------------set property
---------------------------------------animate
-------------------------------------------refresh

It seems to be working correct me if I missed something.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Loading Preview. Please wait, and wait and wait... dshields Hardware Support 7 05-10-2006 09:55 PM
30 Second wait between searches dbfresh23 General Discussion 8 04-18-2006 11:38 AM
Get MVP or wait for 3.0 phantomfsoc SageTV Customizations 28 05-17-2005 10:47 AM
I'm seeing double ... no wait .... Redrum SageTV Software 1 11-11-2004 06:09 PM
Buy now or wait? coppit General Discussion 3 01-11-2004 01:06 PM


All times are GMT -6. The time now is 02:25 AM.


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