Help needed for category>refresh

Help each other out

Help needed for category>refresh

Postby YaKa12 on Tue Feb 15, 2005 7:11 pm

Hello everyone,

I have build a screen with a "Folder Browser" category. I would like to refresh the list of files in it without exiting Xlobby. I tried the Category>Refresh event but it seems not to work properly.

Do you have any idea what to do ? Or maybe any alternative.

Thanks in advance for your answers.

Best regards,

YaKa
YaKa12
 
Posts: 15
Joined: Tue Feb 15, 2005 5:38 pm

Postby Colby on Tue Feb 15, 2005 9:51 pm

Good question yaka. Are folder categories real time? would f5 refresh them? How do you refresh them?
Colby
 
Posts: 929
Joined: Mon Feb 02, 2004 7:42 am
Location: Brookline Station, MO, USA

Postby YaKa12 on Wed Feb 16, 2005 7:42 am

Colby wrote:Good question yaka. Are folder categories real time? would f5 refresh them? How do you refresh them?


It seems to be just like a database but the event category>refresh has no effect on it nor F5.

Best regards

YaKa
YaKa12
 
Posts: 15
Joined: Tue Feb 15, 2005 5:38 pm

Postby jovial_mood on Sun May 29, 2005 6:11 pm

Did you find a sollution to this?
jovial_mood
 
Posts: 55
Joined: Sun May 22, 2005 6:07 am
Location: Sweden

Postby lar282 on Mon May 30, 2005 6:50 am

Mine refreshes if I go one step up in the folder structure OR do a button called reset (reset Desktop) event. Desktop is the category.


//Lasse
lar282
 
Posts: 1624
Joined: Thu Apr 01, 2004 4:13 pm
Location: Helsingborg, Sweden

Postby jovial_mood on Mon May 30, 2005 3:19 pm

For me refresh has no effect on the root category.

Let's say I use the category Desktop. If I add a file on the desktop it is not visible in the category Desktop if I don't restart Xlobby. Refresh has no effect. Same problem with the DVD drive. If I don't have the disc in the drive when I start Xlobby it can't be browsed using the category D:\ (D: is my DVD drive). But it can be browsed and is refreshed if I use MyComputer, Drive, Desktop etc. as the root for the category.

If you use the drive letter for your CD- or DVD drive as root in a category (eg 'D:\'), can you refresh the category to see a disc change?
jovial_mood
 
Posts: 55
Joined: Sun May 22, 2005 6:07 am
Location: Sweden

Postby lar282 on Tue May 31, 2005 10:15 am

mine didn't do anything on the rrot either.sorry for that.I tried in a level down
lar282
 
Posts: 1624
Joined: Thu Apr 01, 2004 4:13 pm
Location: Helsingborg, Sweden

Postby jovial_mood on Tue May 31, 2005 4:16 pm

Thanks for letting me know, now I at least know it is not a local problem with my system.

The reason that I want to be able to refresh a root category is that I have a simple file browser in my Xlobby skin. The file browser screen is composed of some buttons representing different disc drives (C:, D: etc.) and categories for browsing the files.
I have now solved this refresh problem by using directory links in the root of each drive category. It's not the perfect sollution but at least I don't have to redesign my browser. ;) Unfortunately normal Windows shortcuts to directories or drives like linkname.lnk does not work in an Xlobby file browser. For example, if you have a link to a drive or a directory and select that in a file browser in Xlobby, Explorer.exe (Utforskaren) is opened. Luckily enough I found a way to make a link that works in an Xlobby browser. I don't know if it is a documented feature but if it isn't, here's how to do it:

- Create a normal directory (folder)

- The directory should have the name you want the link to have

- Create a normal Windows shortcut inside the directory you created. The shortcut should point to the directory or drive you want the final link to point to

- Name the shortcut 'target', if you're using a DOS prompt name it 'target.lnk'

- Then create a normal text file inside the directory

- Name the textfile 'desktop.ini'

(You'll now have two files inside the directory, the 'target.lnk' and 'desktop.ini')

- Open the file desktop.ini in a text editor (eg Notepad) and add the text below.
Code: Select all
[.ShellClassInfo]
CLSID2={0AFACED1-E828-11D1-9187-B532F1E9575D}
Flags=2


- Finally, make the directory write protected. An easy way to do that is to open a DOS prompt and use the command 'attrib'. An example, if the directory is named LINK and resides in the root of the C drive you would open a prompt with C:\ as current directory. At the prompt type 'ATTRIB +R LINK'.

- Now you have a link that works in an Xlobby file browser. Place the link in any directory you want and create a category with the name of the path to that directory. It will open a file browser with a link that always refreshes automatically when selected.
:D
jovial_mood
 
Posts: 55
Joined: Sun May 22, 2005 6:07 am
Location: Sweden