I'm cooking one of Ted Wall's 3/2005 recipes on how to use an active button
both as a menu button and
as a drop target. I have a couple of problems. Can anyone point me in the right
direction?
1. when the bar is first started, the drop target is inactive. You have to
click on the button at least once
(which displays the button's menu) in order for the drop target to become
active.
2. when I drop multiple files on the target, I receive them in a single string,
each file in doublequotes,
but NO spaces between the file items, so cmd.exe fails to recognize them as
multiple arguments.
[5]
id = media
Tooltip = drop»play with VLC/L»wallpaper 1:player
Icon = C:\Program Files\VideoLAN\VLC\vlc.exe
LCmd1 = Script
LParam1 = SetString c |
LCmd2 = Script
LParam2 = If (contextlast)
LCmd3 = [EMAIL PROTECTED](?@"C:\Program Files\VideoLAN\VLC\vlc.exe" --intf wx@,
c, "bar hideshow
PicturePlayer")
@DropFiles
if (arg(2)=="|")do
;win.debug("will script to Run MENU", arg(3))
do( arg(3) )
else
;win.debug("will script to Run FILE", arg(1), arg(2))
do ( "*dos *hide "++arg(1)++" "++arg(2) )
endif
QUIT
Attention: PowerPro's Web site has moved: http://www.ppro.org
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/power-pro/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/