Need Help Configuring Four Objects in DesktopX
Trying to get several objects to mouseover-translucent/mouseaway-transparent at the same time
Tuesday, March 18, 2008 by Joseph Galbraith | Discussion: DesktopX
Hello,
The title is self-explanatory, but this is what I am trying to do:
I have a:
1)Startbutton
2)Showdesk Button
3)Taskbar
4)Tray
And I've gone into their individual properties and set these functions (transparency, etc) in their mouseover/mouseaway properties...so far so good, they each work individually, but:
I tried to use the "message" property to send each of the other three in the group the (mouseover or mouseaway) message, so that they would all do it at the same time.
It does not work, it causes a DesktopX crash ![]()
THEN:
I also tried to group these objects as a normal group or a combine group, and still doesn't do what I want.
Short of scripting (in the which I've not got the skill) how can I get these three objects to behave the way I want, all at the same time?
ALSO: It seems to me, that the "showdesk" object, somehow causes the crash...is it possible that it cannot be included in this because of the type of its function (ie: its showing the desktop so somehow needs to be visible?)
I'm only skilled enough to change scripts already written, or write some extremely simple ones, but it seems to me that sending messages from one to the other should work, but there doesn't seem to be a way to broadcast it to a select group, only to an ObjectID...If I could sent it to an entire group, then it should work the way I want, no?
I'd appreciate any input, ya'll can email my Reachby Addy if you care to!
Thanks,
Joe
Reply #2 Tuesday, March 18, 2008 10:01 PM
Thanks Lotz BigDogFeeT!
Reply #3 Tuesday, March 18, 2008 11:39 PM
Reply #4 Wednesday, March 19, 2008 9:48 AM
Hey? Where can I get a step by step tutorial on DesktopX scripting? I've looked here on the site, but can't find anything like that...any ideas?
Joe
Reply #5 Thursday, March 20, 2008 2:57 PM
well I've managed to cause that loop your talking about
I have (now) two objects
Object ID "Tray"
and
Object ID "Taskbar"
In Taskbar I have the script:
Sub Object_OnStateChange(mouseover)
DesktopX.Object("Tray").state = mouseover
End Sub
Sub Object_OnStateChange(mouseaway)
DesktopX.Object("Tray").state = mouseaway
End Sub
And in Tray the script:
Sub Object_OnStateChange(mouseover)
DesktopX.Object("Taskbar").state = mouseover
End Sub
Sub Object_OnStateChange(mouseaway)
DesktopX.Object("Taskbar").state = mouseaway
End Sub
So I'm not sure why I'm getting the loop. I could understand, of course if I had ObjectID "Taskbar" in the Taskbar script, etc...but I don't?
And I did have it working till I messed something up.
Care to show me where I am so dense?
Joe
Please login to comment and/or vote for this skin.
Welcome Guest! Please take the time to register with us.
There are many great features available to you once you register, including:
- Richer content, access to many features that are disabled for guests like commenting on the forums and downloading skins.
- Access to a great community, with a massive database of many, many areas of interest.
- Access to contests & subscription offers like exclusive emails.
- It's simple, and FREE!







Reply #1 Tuesday, March 18, 2008 8:12 PM
your code would look like this:
Sub Object_OnStateChange(state)
DesktopX.Object("myobject1").state = state
DesktopX.Object("myobject2").state = state
DesktopX.Object("myobject3").state = state
DesktopX.Object("myobject4").state = state
End Sub
Copy this code into each of your objects and of course you don't need the first statement in the subroutine in myobject1 or the second statement in the subroutine in myobject2, etc. I haven't tested this but, I'm pretty sure this will work as presented.