This is continuing the thread from
http://www.litestep.net/?section=4&action=details&catId=1&id=4907
I am trying to create a button in my taskbar that launches a popup menu. Currently, I have the line
PopupDynamicFolder "C:\LiteStep\personal\Games shortcuts" -355 -200
in non|step's bottom bar config below where I set up the button, but when I click on the button, nothing happens. Do I have the line in the right place, or is there something else I'm doing wrong?
P.S. I apologize for "hijacking" the previous thread. I had read other threads while searching for an solution to my problem and seen that people get reprimanded for starting new threads about topics already covered.
Try !PopupDynamicFolder instead of PopupDynamicFolder...there is a difference. You should also read the docs for Popups.
LINK
My line already has the bang. And I already read the docs, but although I understood the syntax of the different commands and such, I didn't entirely understand the structure of the popup code. Any help, please?
SomeLabelOnLeftClick !PopupDynamicFolder "C:\LiteStep\personal\Games shortcuts" -355 -200
That still doesn't work. What am I missing?
It's compatible with xPopup and Popup2. (Although, I think they use a slightly different format for the coords part.)
swmmng: no clue what you're missing. It works perfectly fine for me.
Since non|step loads popup2-2.1.7, shouldn't I be using the commands associated with that? Namely what I've been doing? Or should I load xPopup and use that instead?
Stick with popup2. Conquer one thing at a time. :P The command works for both, though.
That's what I thought. I havne't loaded xPopup, so I don't think there's any compatability issue. Besides setting up the button and the popup menu, is there anything else I need to do?
Does that theme have a command? If it does, just try putting...
!PopupDynamicFolder "C:\LiteStep\personal\Games shortcuts" -355 -200
...in it and see if it works. If it does (and it should), you'll know the problem is your button.
How would I activate that popup? I.e. with a mouse click, hotkey(s), combination of those?
Click the "cmd" button, and copy/paste the command in to the prompt that appears to the right. Then press enter while the command is focused, with that entered in to it.
Alright, so it seems like the problem's with my button (thanks for helping me get that far!), but I can't for the life of me figure out what! I used the same format as the "lsButton" from the non|step theme, since I think it does basically what I want my button to do, just with a different popup. Here's the code for my button:
*Label gameButton
;Label Main Settings
gameButtonAddToGroup "TaskBar"
gameButtonX "-235"
gameButtonY "-22"
gameButtonWidth "31"
gameButtonHeight "21"
gameButtonImage "gameButton.png"
gameButtonHoverImage "gameButton2.png"
;EventSettings
gameButtonOnLeftClickDown !PopupDynamicFolder:
"C:\LiteStep\personal\Games shortcuts" -355 -200
gameButtonOnLeftClickDown !PopupDynamicFolder:
"C:\LiteStep\personal\Games shortcuts" -355 -200
whats with the ":" ???
should be:
gameButtonOnLeftClickDown !PopupDynamicFolder "C:\LiteStep\personal\Games shortcuts" -355 -200
!PopupDynamicFolder: is a completely different non-existant thing, you might aswell have typed in !PopupSatanicFolder :P
Ya, swmmng, you'll want to note that I never had a ":" in my examples. The existing popup !bangs, that I know of, with ":" in their command, are used within a *Popup type entry. The !PopupDynamicFolder command, WITHOUT the ":", is for use with a button or something, because it can be called outside of *Popup entries (although they can be used inside them, too.)
!PopupSatanicFolder? hehe
Well, I'd put the colon in because it was in the documentation: "!PopupDynamicfolder:[FOLDER]" I tried it without, but it is still stubborn. Or, as xcal says, Satanic. Argh.
Copy and paste this EXACTLY and see if it works. Don't modify it. Especially the noob part. :D
*Label noob
noobX 75
noobY 75
noobWidth 20
noobHeight 20
noobSolidColors EEEEEE A6A6A6 000000
noobSolidBevelSize 1
noobAlwaysOnTop true
noobOnLeftClick !PopupDynamicFolder "C:\LiteStep" -355 -200
That will put a button in the upper left area of your screen. Click it, see if it works.
(I wonder if there's a conflict in your "Taskbar" group.)
Yup, that one worked just fine.
Ok, so take it from there...
Alright, I'll work on it.
Ok, I made it work the way I want; apprently something didn't like that button being added to the taskbar group. *Shrug* Thanks for all your help!
"apprently something didn't like that button being added to the taskbar group."
I dont even want to know.
What is your problem? I was simply confirming what xcal guessed a few posts ago.
ok, sorry. My problem is the "something", thats all ;)