brucexs wrote:
> > LCmd1 = exec.volumeall(255-cl.getctrlvalue("HaruTaskbarS","slider"))
Sorry about that Bruce, I didn't understood at first that I needed to put it
there.
Thanks.
One more question,
I've set up an active bar that acts as if it were a menu. I call that bar with
"middle desk" and *Bar ToMouse commandlist.
Using this method, the bar always pops-up under the mouse, which is perfect,
but if I do it via script, it always show for some ms at the center of the
screen, and then quickly moves to the mouse.
I'll post both configs, so you can see if I'm doing something wrong in the
script.
// using ini
;----key/mouse
Key = middledesk
Cmd1 = *Bar
Param1 = ToMouse HaruPopup
Cmd2 = *Bar
Param2 = Show HaruPopupBottom
;----ini
[HaruPopup:Properties]
FontName = Arial
FontInfo = Bold Size: 8
Skin = HaruTheme\HaruPopup\HaruPopup.txt
Format1 = Position: Floating
Format2 = HideAfter: 500 Height: 12 MaxText: 531 Transparent: 1
Format3 = FlatFlat HoverText: 177 177 101 PressText: 255 128 64
Format4 = TopMost SameSize Vertical BarSize PixelBlendInto
Active = Count: 10
[1]
id = popup
LCmd1 = (none)
MCmd1 = (none)
RCmd1 = (none)
[HaruPopupBottom:Properties]
Format1 = Position: Locked SlideFrom: None
Format2 = MaxText: 531 Transparent: 1
Format3 = FlatFlat
Format4 = TopMost PixelBlendOver
LockTo = "HaruPopup" 0 0 100 0 0 0 0 0
[1]
Icon =skins\HaruTheme\HaruPopup\ppb.png,0
Format = Height: 23 Width: 135
LCmd1 = (none)
MCmd1 = (none)
RCmd1 = (none)
// using script
;------key/mouse
Key = middledesk
Cmd1 = .harutask...@popup
;------script start
// Popup (active windows)
@Popup
local hp = cl.Create("haruPopup",1)
local hpb = cl.Create("HaruPopupB",1)
hp.SetProperties("FontName = Arial \r FontInfo = Bold Size: 8 \r ;;+
Skin = HaruTheme\\HaruPopup\\HaruPopup.txt \r ;;+
Position: Floating HideAfter: 500 Height: 12 Transparent: 1 ;;+
FlatFlat HoverText: 177 177 101 PressText: 255 128 64 ;;+
TopMost SameSize Vertical BarSize PixelBlendInto \r Active = Count:
10").insert(0).Setid("popup")
hpb.SetProperties("Position: Locked SlideFrom: None ;;+
Transparent: 1 FlatFlat TopMost PixelBlendOver \r ;;+
LockTo = \x22HaruPopup\x22 0 0 100 0 0 0 0 0");;+
.insert(0).SetIcon("skins/HaruTheme/HaruPopup/ppB.png");;+
.SetHeight(23).SetWidth(135)
hp.ToMouse
hpb.Show
quit
;------script end
Also, what's the difference in PowerPro processing chained commands vs ini form
in scripts?
Since the above is more compact, is it faster? Compared to this:
<snip>
p.SetProperties("FontName = Arial\r\+
FontInfo = Bold Size: 8\r\+
Skin = HaruTheme\\HaruPopup\\HaruPopup.txt\r\+
Format1 = Position: Floating\r\+
Format2 = HideAfter: 500 Height: 12 MaxText: 531 Transparent: 1\r\+
Format3 = FlatFlat HoverText: 177 177 101 PressText: 255 128 64\r\+
Format4 = TopMost SameSize Vertical BarSize PixelBlendInto\r\+
Active = Count: 10")
p.insert(0)
p.setid(0,"popup")
<snip>