Posted by member 7223 on 2003-10-09 06:08:25
Hi,
As you might know, scandir is a great, usefull module; but it doesn't allow you to change Path on the fly (via !bangs).
Then, you must have to do some scripting to !textreplace stuff and reload scandir like this:
I use to call this script this way:
But this doesn't work :(
In that example, "wallpaperpath" is replace as expected but scandir doesn't seem to be reloaded. I've tried to !netunloadmodule it before, make some pause (10000ms), !netreloadmodule it, etc...
But if I call the script twice, like this:
It's works
Is scandir known to have problems to be reload, or what ?
As you might know, scandir is a great, usefull module; but it doesn't allow you to change Path on the fly (via !bangs).
Then, you must have to do some scripting to !textreplace stuff and reload scandir like this:
*script bang !wallpaperscan
*script exec !textreplace @$configdir$themevars.rc@ @wallpaperpath @ @&%{args}
*script exec !reload
*script exec !netreloadmodule $scandirmodule$
*script exec !scandir wallpaper
*script ~bang
*script exec !textreplace @$configdir$themevars.rc@ @wallpaperpath @ @&%{args}
*script exec !reload
*script exec !netreloadmodule $scandirmodule$
*script exec !scandir wallpaper
*script ~bang
I use to call this script this way:
!comdlgfolder !wallpaperscan ^@dp^
But this doesn't work :(
In that example, "wallpaperpath" is replace as expected but scandir doesn't seem to be reloaded. I've tried to !netunloadmodule it before, make some pause (10000ms), !netreloadmodule it, etc...
But if I call the script twice, like this:
[!comdlgfolder !wallpaperscan ^@dp^][!pause 250][!comdlgexec !wallpaperscan ^@dp^]
It's works
Is scandir known to have problems to be reload, or what ?