TrickTrackersMJN TrickTrackersMJN

About some simple help!!!!!

About some simple help!!!!!

Hi,, I am new to desktopX........ :|

 

I am triying to make a sidebar gadget like of win7...... :grin:

 

so when i click on one object in main panel it mus show the other object like popup....I did that using "RomanDA" tutorials but when i open the gadget it also popups all the sub widets in that,,,,it must be hideen while i start up and after clicking it must popup then again if i click it mus hide,,,,

 

Plz guys help me out....

 

Thanks in advance...... :zoomba: \o/

277,436 views 79 replies
Reply #52 Top

Patience, Grasshopper.  ;)

Reply #53 Top

Same principle as a URL:

runApp("mailto:[email protected]")

 

Replace the address with your own.

Reply #54 Top

Ok..how to add object for about us ,,,to view our own custom about box...I saw in some DX widgets they use object if i click on dropdown menu with support,visit me like that... O:)

Reply #55 Top

And also how to make Anglo clock with 10 themes with different min hand,hour hand & second hand??????????? :thumbsup: :thumbsup: :thumbsup:

 

could you help me?????????? :| :|

 

Thanks in advance>>>>>>>>>>>>>>>>.

Reply #56 Top

What you're asking for takes time and energy, which I and others will not always have to volunteer as promptly as you might need, so you also need to famliarize yourself with the DX User's Guide and WC Wiki (links in one of my previous posts,) as it will help you learn how to figure out many of these issues on your own when no one is available. If you see something in another widget you want to try, import the widget into DX Builder and study and reverse engineer how it is done.

I can only take your requests one at a time. So, I'll start with the about box.

The custom about box is just another object toggled to show/hide when you select the About option from the menu. You can add the option to your popupmenu script to show the about box object when selected.

 

Create your about box object and set visiblity to 'No' in Properties > Relation, so that it's hidden by default.

 

Add the about option to the popupmenu script:

mainmenu.AppendMenu 0, 6, "About" 

 

Then add the result:

Case 6

DesktopX.Object("youraboutbox").visible = true

 

 

+1 Loading…
Reply #57 Top

Yes i saw it and learened basics which i need but except the scripts!!!!!!  :hugme: :hugme: :hugme:

 

I tried a llot to learn scripts but couldnt  :cylon: :cylon: :cylon:

 

so im asking

 

,,i also saw ur tutorial how to make angalo clock but it didnot workk,,,also i need to add more themes ..........

 

so plz help me!!!!!!!!!!!!! :blush: :blush: :blush: :blush:

Reply #58 Top

Dude, the tutorial that sViz wrote to make the ANALOG clock does work. I use it all the time. Just saying. You did something wrong.

 

You seem to want her to do it all for you and you want it now.   

 

Study the tutorials. Hers DO work. So do Romanda's. If they don't work for you, you did something wrong.   ;)

 

Patience is a virtue.      ;)        I hope you get what you want.

 

Eve is awesome for getting you this far.   5* 5* 5* 5* 5*

Reply #59 Top

Yes..........I know she helped me so much ,,,,,let me try once again.. ^_^ ^_^

 

thanks for her... let me try and say you ..thanks and also sorry ...

 

thanks again Redneck Dude.... :thumbsup: :thumbsup:

Reply #60 Top

And do u have any clock widget so that i can use for example!??????? :grin: :grin:

Reply #62 Top

Learning how to at least modify scripts is major. You'll be able to do so much more. Keep at it and you'll get the hang of it. Like Jim said, there are a lot of clocks in the gallery you can import to DX Builder to see how it works. Here's the simplest one I made that uses the same analog clock script:  https://www.wincustomize.com/explore/desktopx_objects/4560/

 

Once you have the clock working, to use different themes you'll need all the different images to be the same size. (Do you have the images made already?) I'd suggest creating a state for each theme for *each* piece of the clock (background and 3 hands.) Just go to Properties > States for each object, add as many states as you need, and name them appropriately. Apply the matching images to each state.

Next, you need to have a way to cycle through the themes. Since there are many ways to do this, it'd be easier for me if to give examples if you tell me *how* you want to change the themes, whether that is clicking repeatedly on the clock to change themes or selecting a theme from a popupmenu.

+1 Loading…
Reply #63 Top

the Same error appearing now when i opened your example object in DX which appeared when i made my own using your tutorial  :'( :'(

 

But don't know whats the mistake ??????????????? :S :S :S

Image and video hosting by TinyPic

 

See this the error appearing before and Now!!!!!!!!!!!!!!!!! :S :S :S

 

And i need the themes in popup menu...i wil use it in another object which has setting symbol 


 

 

Reply #64 Top

It looks like FormatDateTime is not recognizing your system time as valid data for whatever reason. I'm not sure why that is. You can try skipping the formatting step by finding and modifying these three lines in the script to how they appear below and see if that sidesteps the problem:

h= hour(now)

m= minute(now)

s= second(now)

(Where you'd put 'now' [thats your unformatted system time] in the parenthesis instead of 't') Be sure to delete line 19 or comment it out.

 

Re: themes:

Since you're using a popup menu, it would work the same as the earlier example in this thread. Assuming you have your states set up (named to match each theme) and images applied to each state, for each Case in the popupmenu script, you would set the three objects of the clock to the matching state. Here's an example:

The option in the popupmenu script:  

mainmenu.AppendMenu 0, 1, "Classic Theme"

  

Then when you select that, the result sets the state:  

Case 1  

DesktopX.Object("clockface").state = "classic"

DesktopX.Object("hourhand").state = "classic"

DesktopX.Object("minutehand").state = "classic"

DesktopX.Object("secondhand").state = "classic"

 

Repeat for each theme/state.

Reply #65 Top

OK got it worked...Thanks  5* 5* 5*


Does that work only in my system or can it be worked in other when i share??????????? :thumbsup: :thumbsup: :thumbsup:

Reply #66 Top

Yes, it works on other systems.

+1 Loading…
Reply #67 Top

Thanks for the awesome support !!!!!!!!!!!!! 5* 5* k6 k6 :thumbsup: :thumbsup:

If you don't mind i have only two questions need to be solved .... :blush: :blush: :blush:


I have CPU meter images but dont know how to configure it to work as CPU meter..?????///


Do u have any suggestions or example templete for that...i searched but couldn't find.... -_- -_- -_- -_-

Image and video hosting by TinyPic

PLEASE HELP ME !!!!!!!!!!!!!  :) :) :) :)



Reply #68 Top

I got an script

 

'Called when the script is executed
Sub Object_OnScriptEnter
Call RotateArm(-90,58,50,"pointer","text")

Object.SetTimer 1, 800
End Sub

Sub Object_OnTimer1
Call RotateArm(-90,58,50,"pointer","text")
hr = hour(now)

End Sub

Sub RotateArm(minangle,maxangle,ZeroPercent,Obj,Mtr)
meter = DesktopX.Object(Mtr).Text
meter = mid(meter,5)
t = len(meter)
meter = left(meter,t-1)
If Invert = True Then meter = 100-meter
If meter < ZeroPercent Then
angle = minangle + (((360 - minangle) / ZeroPercent) * meter)
Else
angle = (maxangle / ZeroPercent) * (meter - ZeroPercent)
End If
DesktopX.Object(Obj).Rotation = angle
End Sub
'Called when the script is terminated
Sub Object_OnScriptExit

End Sub

 

but pointer is not fitting at the center and not perfect...is this script works????  :maybe: :maybe: :maybe:


and is there any ram meter script in this script works as same as CPU meter????  :maybe: :maybe: :maybe: :maybe:

Reply #69 Top

Y guys what happened ????  :&#39;( :&#39;( :&#39;(

 

Plz help me !!!!!!!!!!!!!!1111 <X3 <X3 <X3 <X3

Reply #70 Top

Howdy, again. I haven't forgotten this thread; I've just been a bit busy.

There appears to be nothing in the script that sets the position. It only sets rotation. So, you probably have to center it manually. If it's the same concept as an analog clock, you'll also need to make sure your pointer image is created with the correct original position and rotation. Meaning, clock hands are centered and pointing at 0 degrees. Judging by the max/min angles, this meter looks like the original image rotation is not 0.

It also looks as if the CPU information is pulled from a text object -- meter = DesktopX.Object(Mtr).Text -- which is probably a DX plugin object, so you might try doing the same for RAM--that is, create a DX plugin text object configured to RAM, and then point this script at that object. (See HERE for tutorial on Performance Meter plugin) Other than that, I know of no other RAM script that works on a dial meter.

Reply #71 Top

okie let me try and say you .... :thumbsup: :thumbsup: :thumbsup:


but its not perfect in rotation,,,what should i change in that script for rotation??? :( :(

Reply #72 Top

What happened to simple?

 

"About some simple help!!!!!"  o_O

 

 

Reply #74 Top

Quoting RedneckDude, reply 72
What happened to simple?

 

"About some simple help!!!!!" 

 

 

 

lol   ;P

 

Re rotation:

You might try adjusting the minangle, maxangle, and zeropercent variables in these lines:

Call RotateArm(-90,58,50,"pointer","text")  

-90 is the minimum angle

58 is the maximum

and 50 is where the pointer rests at zero percent

Reply #75 Top

If you don't mind is there any other script works for CPU meter like this ...Becoz its not working for me !!!!!!!!X( X(


:( :(