need a dynamic xPopup with default action Thread last updated on 2006-04-07 00:13:32

Posted by member 51749 on 2006-03-29 16:56:32

hey,
trying to extend my current wallpaper changer entry in my popup menu to its own popup.

in my main popup, i have this entry:

*Popup .icon="some icon" "wallpapers" !popupdynamicactionfolder:!wallpaper:"$PersonalDir$Wallpapers\"

which works a treat. but now i want a middle click popup!
so ive tried this

*Popup "change wallpaper" !New !popupwalls
*Popup "huh" !popupDynamicActionFolder:!wallpaper:"$PersonalDir$Wallpapers\"
*popup ~New

which works, but it has a leading folder. anyway to get rid of it, and just have the folder contents displayed? while keeping the !wallpaper action?

Posted by member 212670 on 2006-03-29 17:13:48 link

*Popup "" !New !Whatever
*Popup "" !PopupDynamicFolder "c:\path\to\walls\"
*Popup ~New

(using xpopup)

Posted by member 51749 on 2006-03-29 17:17:05 link

doesnt work. still has a leading (albiet blank) folder.
i think you meant !PopupDynamicActionFolder too.

Posted by member 212670 on 2006-03-29 19:28:07 link

Nope, I meant !PopupDynamicFolder, with xPopup 1.2.5. I tested it before posting.

You say you wanted to do it with a middle click?

This is exactly what I tested. The popup shows only the contents of the folder...no leading folder at all (\test\ contains only images used for testing my latest release - they're not my regular walls :P).

*jDeskMButton3 [.none;!Whatever;.none;.none]

*Popup "" !New !Whatever
*Popup "" !PopupDynamicFolder "C:\Documents and Settings\xcal\My Documents\Litestep\test"
*Popup ~New


And this is what it produces on middle clicking my desktop: Click

Posted by member 51749 on 2006-03-29 20:04:53 link

ok
when using !popupDynamicFolder, doesnt seem to produce a popup with a leading folder..
but when using !popupDynamicActionFolder, it does.. which is a bugger, as i need it to specify an alternative opening action.

Posted by member 212670 on 2006-03-29 20:13:09 link

Now you're confusing me... do you want the folder or not?

And if you want another opening action, you can do:

thisprefixOnOpen !bang

*Popup "" !New !Whatever thisprefix

Maybe I'm misunderstanding, now.

Posted by member 51749 on 2006-03-29 20:30:46 link

well, visually i want what you posted.

but functionally, i want to click on an image and have it set as a wallpaper. my original entry in my main popup does just that with !popupDynamicActionFolder. but it now seems as if its folder display functions doesnt behave in exactly the same manner as !popupDynamicFolder.

but prefixOnOpen would probably work. ill give that a try.

Posted by member 51749 on 2006-03-29 20:34:55 link

nope, OnOpen only controls the opening of a popup, not an entry..

Posted by member 51749 on 2006-03-29 20:40:35 link

for the record, heres info on !popupDynamicActionFolder

-------------------------------------------------------------
* !popupdynamicactionfolder:ACTION:FOLDER

This creates a dynamic subfolder that displays the contents of the specified drive or directory.
Dynamic folders differ from static folders in that the Popup folder will automatically update when the directory is updated, meaning that a !Recycle is not necessary to see changes.

OnClick the ACTION is executed with the FILEPATH as an argument!!

Restriction:
SubFolders are not visible!!

Example:
*popup "MyActionFolder" !popupactionfolder:!alert:"$desktopdir$"

This would display your Desktop in a folder, but if you click an entry the "action" (!alert) is executed
with the filepath as quoted argument. You can (probably) use any action, not only Litestep Bangs!
------------------------------------------------

just seems to me like it should behave the same as !popupDynamicFolder when the title given is "".

Posted by member 212670 on 2006-03-29 22:39:06 link

Ok, sorry about the misunderstanding, but I get what you're talking about now. Don't have an answer for that.

Posted by member 299300 on 2006-04-07 00:13:32 link

*points to ls-universe.info*
Try asking andymon? I'm sure he might be able to tell you.