Posted by member 256241 on 2007-06-27 19:26:23
1, I am trying to make an xLabel's image change to the icon of an EXE. Currently it works perfectly for PNGs etc. According to the docs:
(label-name)Image "$windir$explorer.exe,3"
However, whenever the path I give it is not an image file, but an EXE, it simply doesn't load anything. Here's my code:
where qIcon12 = "C:\Program Files\7-Zip\7z.exe, 0"
*script exec !parseEvars !setevar quicklaunch12overlayimage "%{qIcon12}"
Can somebody tell me where I'm going wrong? Theres .icon drawing mode, but the docs insinuate that the .image mode can do just that, and it'll save me have to switch between drawing modes at runtime.
2, I have a pinned popup, in which a label is hooked. In that label, multiple labels are hooked, right clicking on one brings up another xPopup. When the second popup is unpinned or closes through autohide, both popups are cleared. Does anyone have any ideas about this one?
[edit] I have worked around this by calling the following bang command OnClose of the second popup:
*script bang !lrecreatepopup
*script exec !startPopup %#%{popx}%# %#%{popy}%# centercenter
*script ~bang
It seems a bit inefficient, but it works. Anyone know the PROPER way to do this?
3, if qTarget1 = "c:\folder\application.exe", is there any way to extract just the application file name, and lose the full path and extension, for the sake of displaying the name in a tooltip?
4, A bit more of a general icon question. Most EXEs have different icons, and different sizes. Do standard exes have icons in 24*24? I know they have 16,32,64... Have I shot myself in the foot by using 24*24 as the size for my launchers?
5. Is there a way to have a selected colour be transparent when using an image for an xLabel? By this I mean, that if an icon image you used has white as the background colour, that it could treat that as transparent? If so, I imagine there would be issues with antialiasing?
6. Is there an easy way to input some text, like comdlgls, into which I could enter plain text, so define bang commands as well as shortcuts to apps? I gather this would be possible in xLabel's textedit mode, but is there a module that would be simpler for my intended use?
Thanks for reading, and for hopefully helping me solve at least one of them!