Layers and Rotation

It seems I was originally posting in the wrong area XD... but heres my question

I'm trying to make a desklet in AveScripter using JavaScript and XML. The problem I'm having is with the rotation of a layer. If I assign a rotation to a layer (specifically with text), the layer does not show up. After trying to hours to figure out what the deal was, I found that if I rotate the desklet in the desklet properties to anything other than 0, -180, or 180, the rotated layer shows up. Does anyone have an idea of what is going on or maybe what I am doing wrong?

Also, is there any way to create a layer or something else that is not constrained by the size of the side. For example I want to make a sort of "floating frame" that is detached from the desklet and after looking through the XML options available, I still have no idea about this or even if it is possible.

#439987

AveDesk bug. Fixed in 2.0.

#440022

also, AveDesk doesn't have the "feature" to have multiply windows. a Desklet is 1 window only.

#440114

Also, is there any way to create a layer or something else that is not constrained by the size of the side. For example I want to make a sort of "floating frame" that is detached from the desklet and after looking through the XML options available, I still have no idea about this or even if it is possible.

The closest I think you're going to get to this is by spawning a new desklet. A good example is to look at pcm's SDK.

#440123

Alright, if I need to create multiple desklets, my next thought is how I can get them to send information to each other... but let me delve into pcm's sdk desklet first. Thanks for the replies.

#440184

Ya.. my SDK is a good example on passing information too.

#440252

Ok, so I now have my desklet creating new desklets and I understand how to pass information to the newly created desklets (thanks pcm), but now I'm stuck with the question of how to send information from the newly created desklet back to the parent desklet. Specifically, it would be best if I could have the newly created desklet call a function in the parent desklet. I'm pretty sure I am going to need a reference to the parent desklet inside the new desklet, but I have no idea how to do that. Any ideas?

#440325

You can pass the reference of the desklet over to the child. DESKLET/This variable

#440363

Ok so I haven't been able to work on this for a little while, but I'm finally back into it :D

I'm diligently trying to figure out how the heck I can pass the DESKLET/this variable to the child desklet. It gives me this error when I try to pass it through a function to the child desklet:

-2147467259 AveScripter.AveScripterMain

The script engine does not support a dispatch object Line:116 Column:1

-------------------------------

-2147467259 AveScripter.AveScripterMain

The script engine does not support a dispatch object Line:116 Column:1

-------------------------------

(It gives me this error in the Parent Desklet)

Heres an example of what I'm trying to do in the code

// Parent Desklet

function OpenTaskEditor(){
TaskWindow = desklet.LoadScriptDesklet('%SKINRESPATH%daytask.avedesklet', true);
TaskWindow.SetXYPos(desklet.DeskletXPos, desklet.DeskletYPos);
TaskWindow.SetVisible(true);
TaskWindow.BringToFront();

TaskWindow.ExecuteFunction('setInfo', 'this');
}



// Child Desklet

function setInfo(ParentDesklet){

ParentDesklet.DoSomething();
}

#441759

I haven't had the chance to try this but have you tried doing the following:

TaskWindow.ExecuteFunction('setInfo', this);

Pass it has a dispatch not a "String"

#441822

Same error, I think I had tried that before too lol

Any other ideas? :D

#441876

Could I pass it through an XML parameter? I think I tried that too but now I forget...

#442191

Ok.. Try this version of AveScripter

http://www.avedesk.org/desklets/AveScripterBeta.zip

This isn't official release it was a quick "feature" addon I did

Desklet.ParentDesklet or This.ParentDesklet is auto assigned when you create a desklet using the LoadScriptDesklet. BUT

It when you reload AVEDESK it will not reassign the desklet. I'm not sure how to reassigne it again after everything is reloaded. But at least you can try to make your desklet work with this.

#442256