It is currently May 7th, 2024, 7:28 am

advise me, moving object onmouseover

Get help with creating, editing & fixing problems with skins
yudaweb
Posts: 21
Joined: September 29th, 2011, 3:49 am

advise me, moving object onmouseover

Post by yudaweb »

Code: Select all

[icon1keterangan]
Meter=STRING
StringAlign=LEFT
fontName=Sagoe UI
ClipString=1
FontColor=204,204,204,110
FontSize=7
X=40
Y=40
W=96
H=32
Text="Ubah file video ke format MP3"
LeftMouseUpAction=!Execute ["C:\Program Files\YouTube Downloader\YouTubeDownloader.exe"]
MouseOverAction=!Execute [!SetOption icon1keterangan FontColor "17,18,32,255"][!SetOption Icon1 ImageName "iTunes-ipswb.png"][!Update]
MouseLeaveAction=!Execute [!SetOption icon1keterangan FontColor "204,204,204,110"][!SetOption Icon1 ImageName "iTunes-ipsw.png"][!Update]

[Icon1]
Meter=IMAGE
X=8
Y=40
ImageName=iTunes-ipsw.png
LeftMouseUpAction=!Execute ["C:\Program Files\YouTube Downloader\YouTubeDownloader.exe"]
AntiAlias=1
MouseOverAction=!Execute [!SetOption icon1keterangan FontColor "17,18,32,255"][!SetOption Icon1 ImageName "iTunes-ipswb.png"][!Update]
MouseLeaveAction=!Execute [!SetOption icon1keterangan FontColor "204,204,204,110"][!SetOption Icon1 ImageName "iTunes-ipsw.png"][!Update]
==================================
i want to move text from X=8 to X=40 on mouseoveraction (both on text and image mouse hovered) and return onmouseleave (x=40 to x=8)
Last edited by dragonmage on November 19th, 2011, 3:13 am, edited 1 time in total.
Reason: Added code tags.
User avatar
MerlinTheRed
Rainmeter Sage
Posts: 889
Joined: September 6th, 2011, 6:34 am

Re: advise me, moving object onmouseover

Post by MerlinTheRed »

Use the !MoveMeter bang to do this: http://rainmeter.net/cms/Bangs

On mouseover, add this action:

Code: Select all

[!MoveMeter 40 40 icon1keterangan]
On mouse leave, add this action:

Code: Select all

[!MoveMeter 8 40 icon1keterangan]
Oh, and please put [ code][/code ] tags around your code. That makes it nicer to read and doesn't take up that much space :)
Have more fun creating skins with Sublime Text 2 and the Rainmeter Package!