It is currently September 23rd, 2020, 11:58 am

Need some help trouble shooting

Help with creating, editing & fixing problems with skins
Eclipse3g0
Posts: 2
Joined: August 1st, 2010, 6:54 am

Need some help trouble shooting

Post by Eclipse3g0 »

So I just found this terrific program last night, and after finishing the tutorials, I have decided to code my own theme. Minoring in computer science, it took me awhile to stop thinking in loops and switch to thinking of bringing different meters to the "front" as a way of moving the script in loops.

Anyway, I want my skins to blend in to my background, so I decided to make a bunch of icons independent of one another so I can arrange them how I'd like on the desktop; however, I've encountered a few speedbumbs.

The first is more of an annoyance that anything: I have programmed the icon to switch to a different picture when scrolled over, and then obviously change back when was either clicked or the mouse was moved away. This works fine if the mouse goes from picture -> transparent square underneath it intended to move the skin -> background

but when the mouse goes directly from the icon onto the background, it thinks it is still highlighted. As I said, I can easily fix this by making the sqaure bigger and centering the icon inside, but I figure I'd ask for an alternative method.

Now my major issue I most likely just coded like a blithering idiot, but for some reason my skin is being treated partially as its own program. What I mean by this is if I hold down the windows key and press "D" which normally clears the screen of all windows, it also closes my icon. As soon as I restore any of my running programs, the icon reappears. I did make sure that my Rainmeter was installed correctly, as Enigma runs fine.

While you guys are here :D I was wondering how to have a measure (or whatever tool is needed) detect that the selected program opened and change the icon to a third picture until the program is closed.... Basically I would like all of my icons to behave like the Windows gem; that is, idle -> hovered -> clicked

Thanks in advance,
Greg

Code: Select all

;------------------------------------------------------------------------------------------------
; Flight Chrome
; 

[Rainmeter]
Author= Eclipse
Config=Flight | Buttons
Update=10000


[Detail1]
Meter=IMAGE
SolidColor=0, 0, 0, 1
X=5
Y=5
W=40
H=30

[Chrome]
Meter=IMAGE
X=r
Y=r
W=32
H=32
ImageName=#SKINSPATH#Flight\Icons\chrome.png
MouseOverAction=!Execute [!RainmeterShowMeter ChromeActive][!RainmeterHideMeter Chrome][!RainmeterRedraw]

[ChromeActive]
Meter=IMAGE
X=r
Y=r
W=32
H=32
Hidden=1
ImageName=#SKINSPATH#Flight\Icons\chrome_on.png
MouseLeaveAction= !Execute [!RainmeterHideMeter ChromeActive][!RainmeterShowMeter Chrome][!RainmeterRedraw]
LeftMouseDownAction= !Execute ["C:\Users\Greg\AppData\Local\Google\Chrome\Application\chrome.exe"][!RainmeterHideMeter ChromeActive][!RainmeterShowMeter Chrome][!RainmeterRedraw]

Edit* Fixed the problem of it minimizing...had to set the position from 'normal' to 'on desktop'. Ill keep my problem up there incase anyone has similar troubles.
I would still love to know about rainmeter knowing what programs are running
User avatar
JpsCrazy
Posts: 690
Joined: April 18th, 2010, 2:16 pm
Location: NY, USA

Re: Need some help trouble shooting

Post by JpsCrazy »

For directly from the icon to background:
http://rainmeter.net/cms/TipsMouseLeaveAction
That should fix it.
Also, the fix for the Windows Gem idea should fix this as well.

You solved the Win+D problem.

And for the Windows Gem idea, you'd need to make every icon a button.
http://rainmeter.net/cms/Tips-ButtonImage

As for Rainmeter knowing what programs are running...
There's a few levels of this.
For a particular process: http://rainmeter.net/forum/viewtopic.php?f=15&t=3907
All processes: http://customize.org/rainmeter/skins/44187 (just an example, there's plenty around.)


Use the search engine for finding issues such as this, it saves you and all of us time.