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 10-21-2008, 01:35 PM
Thraxius Thraxius is offline
Sage Advanced User
 
Join Date: Jan 2007
Posts: 77
Example Code Request

I need some assistance. I have a file that I would like to store its location in the sage properties file. The file location of course is dynamic, on one box it is at this location on another it is at another location.

I was trying to make a textinput box so I can paste the correct location into the STV or type it in with my keyboard hit enter and it save it to the sage.properties file.

Does anyone have some example code on how I could do that?
Reply With Quote
  #2  
Old 10-21-2008, 02:12 PM
stanger89's Avatar
stanger89 stanger89 is offline
SageTVaholic
 
Join Date: May 2003
Location: Marion, IA
Posts: 15,188
You should be able to link to the file browser widget(s) that the stock UI does. I believe I do that in the IVL STV import, that might be a place to start.
Reply With Quote
  #3  
Old 10-21-2008, 02:50 PM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
You could use the directory browser dialogs to choose a location, like Stanger mentioned.

If you just want to type in the location, then search for "Get Alternate Movie Category Name" (w/o the quotes) for a basic text entry dialog where the text is saved to a property.

You could probably even copy the text from the clipboard -- search for getSystemClipboard & then see the Java docs for how to get text from the clipboard instead of copying to the clipboard like the STV does.

- 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
  #4  
Old 10-22-2008, 01:38 PM
Thraxius Thraxius is offline
Sage Advanced User
 
Join Date: Jan 2007
Posts: 77
Thanks

Thanks guys... This gets me going I think.. I will mess around with it tonight.

I don't know which approach will work best.

Stanger89 you are always on the ball pulling me out the fire.

and

Thanks Opus4 your coding expertise is always useful.
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
Plugin: Web User Interface for SageTV 2.2-6.6 (V2.25 18 Sep 2009) nielm SageTV Customizations 2644 10-24-2016 10:18 AM
Request: Placeshifter for Windows Mobile Nerva SageTV Placeshifter 6 09-30-2008 09:30 AM
send 4 digit code after 5 sec Dror Engel SageTV Software 2 09-02-2008 07:59 AM
Feature Request Razillian SageTV Software 4 07-12-2008 09:51 PM
Feature Request following 3.0.3 beta snoopy SageTV Beta Test Software 83 03-31-2006 03:38 PM


All times are GMT -6. The time now is 11:53 PM.


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