Old 13th October 2010, 11:38   #1
Yathosho
Forum King
 
Yathosho's Avatar
 
Join Date: Jan 2002
Location: AT-DE
Posts: 3,363
select file

is it possible to open a directory and mark a certain file, so one doesn't have to go through a (supposedly big) directory to find the file? most browsers can do this for downloads.
Yathosho is offline   Reply With Quote
Old 13th October 2010, 12:23   #2
Animaether
Major Dude
 
Join Date: Jun 2001
Posts: 1,173
Probably - if you opened the browse dialog yourself

If you specify the filename in the nsDialogs::SelectFileDialog call, it'll pre-select that file in the prompt area.. but the 'explorer view' won't have it selected / scrolled into view. Not sure what you'd need that for unless the user can optionally open the file you'd pre-select but is statistically likely to actually want to open a file that is visually (in the explorer view) close to the one you pre-selected.

off-topic.. you can highlight the explorer view part, start typing the name of a file of interest, and it'll scroll right to that file - no need to scroll through manually
Animaether is offline   Reply With Quote
Old 13th October 2010, 12:32   #3
Yathosho
Forum King
 
Yathosho's Avatar
 
Join Date: Jan 2002
Location: AT-DE
Posts: 3,363
Quote:
Originally Posted by Animaether View Post
If you specify the filename in the nsDialogs::SelectFileDialog call, it'll pre-select that file in the prompt area.. but the 'explorer view' won't have it selected / scrolled into view.
i don't need to open a file, i just want to find it for a user. it's not important though, thought there's a simple way to do this as it's already possible in nsDialogs. maybe i can figure out a different approach.

Quote:
Originally Posted by Animaether View Post
off-topic.. you can highlight the explorer view part, start typing the name of a file of interest, and it'll scroll right to that file - no need to scroll through manually
yes, of course. but tell them
Yathosho is offline   Reply With Quote
Old 13th October 2010, 13:15   #4
Animaether
Major Dude
 
Join Date: Jun 2001
Posts: 1,173
Yeah, I'm curious why you're trying to 'find a file for a user' if you already know what it's called and you're not actually using it to open the file or anything.

Unless you slap a name like VisualFileFinder on it and sell it for $2.99 in the App Store, that is.
Animaether is offline   Reply With Quote
Old 13th October 2010, 15:19   #5
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Exec `"$WINDIR\Explorer.exe" /select,[some file path]`

Stu
Afrow UK is offline   Reply With Quote
Old 13th October 2010, 16:20   #6
Yathosho
Forum King
 
Yathosho's Avatar
 
Join Date: Jan 2002
Location: AT-DE
Posts: 3,363
Quote:
Originally Posted by Animaether View Post
Yeah, I'm curious why you're trying to 'find a file for a user' if you already know what it's called and you're not actually using it to open the file or anything
that's because i'm abusing NSIS to create stuff that doesn't install things

here's a video of what i'm currently working on

@afrowuk: thx
Yathosho is offline   Reply With Quote
Old 13th October 2010, 17:36   #7
Animaether
Major Dude
 
Join Date: Jun 2001
Posts: 1,173
ahhh gotcha - well done
I wonder why there's a delay in your UI drawing when you change the paths.. we've got pretty much the same thing going on (green/orange/red depending on path validity).. perhaps LockWindow on/off?
Animaether is offline   Reply With Quote
Old 13th October 2010, 18:24   #8
Yathosho
Forum King
 
Yathosho's Avatar
 
Join Date: Jan 2002
Location: AT-DE
Posts: 3,363
much better now, thanks for the suggestion
Yathosho is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Tags
file, find, mark, select

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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