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-01-2009, 09:30 AM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Question about load image call

I am trying to use the load image call here is my code

LoadImageFile("C:\SageTV\SageTV\STVs\SageTV3\SageMCE\PLuckyhdSMWScreens\FanartBlank\BlankBLUBG.JPG")

Then I have a image widget below that both nothing is being displayed

any help is appreciated.

Also how do you abbreviate the c:\sagetv\sagetv to call the default install location as most times I know it will be c:\programs\sagetv\sagetv

thanks
Reply With Quote
  #2  
Old 05-01-2009, 10:11 AM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
Quote:
Originally Posted by PLUCKYHD View Post
I am trying to use the load image call here is my code

LoadImageFile("C:\SageTV\SageTV\STVs\SageTV3\SageMCE\PLuckyhdSMWScreens\FanartBlank\BlankBLUBG.JPG")

Then I have a image widget below that both nothing is being displayed
First, you have backslashes in the path, so they need to be double "\\" instead. Second, you may not even need the call to LoadImageFile(), since you can feed the path to the image widget directly.

Quote:
Also how do you abbreviate the c:\sagetv\sagetv to call the default install location as most times I know it will be c:\programs\sagetv\sagetv
Just use a path relative to the path where sagetv.exe is located, or relative to where the STV file is located, simply leaving off the initial "c:\\...\\" portion that leads up to where the exe or STV file is found.

- 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 05-01-2009, 10:12 AM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Quote:
Originally Posted by Opus4 View Post
First, you have backslashes in the path, so they need to be double "\\" instead. Second, you may not even need the call to LoadImageFile(), since you can feed the path to the image widget directly.

Just use a path relative to the path where sagetv.exe is located, or relative to where the STV file is located, simply leaving off the initial "c:\\...\\" portion that leads up to where the exe or STV file is found.

- Andy
Thanks once agian I will give this go and report back. I can't call it in a image widget as I am setting a property to this file.
Reply With Quote
  #4  
Old 05-01-2009, 11:29 AM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
Quote:
Originally Posted by PLUCKYHD View Post
I can't call it in a image widget as I am setting a property to this file.
What Andy is saying is that you don't need to wrap the string expression in a call to LoadImageFile(). If an Image widget is below an Action widget that evaluates to a String or a java.io.File, then that String or File will be interpreted as the path to an image file, without an explicit call to LoadImageFile().
__________________
-- Greg
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
IMDB image question crarbo1 SageTV Customizations 1 01-01-2009 01:21 PM
Background Image question broderp SageTV Software 3 04-11-2007 08:19 AM
This might be a dumb question but: Quality & CPU Load? judoGTI SageTV Software 2 05-16-2005 11:38 AM
Image quality question Vyts General Discussion 3 05-27-2004 12:26 PM
Image quality question Vyts SageTV Software 0 05-24-2004 12:05 PM


All times are GMT -6. The time now is 08:10 PM.


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