I want to connect Desktopx Builder and Rainmeter.

Monday, January 30, 2012 by Kostiantyn | Discussion: DesktopX

I want to connect Desktopx Builder and Rainmeter.
The button of switching-on/off Rainmeter is necessary.Someone did it?

Uvah
Reply #1 Monday, January 30, 2012 6:49 AM

Here's a thought. Don't know if its the correct one though. Make the button an icon then let that icon be the one you use to call up rainmeter. Just set the target accordingly. As for turning it off just right click on rainmeter and click close. Hope this helps or someone comes along with the correct way to do it.

Kostiantyn
Reply #2 Monday, January 30, 2012 8:30 AM

Thanks Uvah, but I need the one button for switching on-off. It should be script button.

Uvah
Reply #3 Monday, January 30, 2012 9:06 AM

Okay ... try Pm- ing sVis or romanda. They are the scripting gurus.

Kostiantyn
Reply #4 Monday, January 30, 2012 9:47 AM

Okay.Thanks.

ZubaZ
Reply #5 Monday, January 30, 2012 9:56 AM

Are you trying to shut rainmeter down or hide it?

Startign and shutting down can be easy.  taskkill APPNAME in a script can kill it and startign it is as easy as calling the EXE.

A two state script would handle that.

What ways are native to rainmeter for hiding/showing?

 

Code: vbscript
  1. Sub Object_OnStateChange(state)
  2. If state = "Command executed" Then
  3. MsgBox "You activated me!"
  4. End If
  5. End Sub
Kostiantyn
Reply #6 Monday, January 30, 2012 11:40 AM

I am looking way to shut down rainmeter.

I understood what I have to do but I never use "KILL".

---"taskkill APPNAME in a script can kill it"- How to do script for that?

Thanks for replay. I am not sure that  I can make  it.


 

ZubaZ
Reply #7 Monday, January 30, 2012 1:11 PM
Kostiantyn
Reply #8 Monday, January 30, 2012 4:41 PM

Thanks,Zubaz. I will try.

sViz
Reply #9 Monday, January 30, 2012 5:51 PM

Zubaz's link might do the trick... I've never tried it. Closing a program is, apparently, more complicated than running one.

Skarny
Reply #10 Monday, January 30, 2012 6:05 PM

From my script library - though it's a general script. Worked in Windows 7 for me just now to close explorer.exe so if you send this function the process name it should close it.


Function procKillProcess(strProcess)
    strComputer = "."
    Set objWMIService = GetObject("winmgmts:" _
        & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

    Set colProcessList = objWMIService.ExecQuery _
        ("Select * from Win32_Process Where Name = '" & strProcess & "'")

    For Each objProcess in colProcessList
        objProcess.Terminate()
    Next
End Function

Skarny
Reply #11 Monday, January 30, 2012 6:17 PM

Okay ... try Pm- ing sVis or romanda. They are the scripting gurus.
Or me

Uvah
Reply #12 Monday, January 30, 2012 6:55 PM

Sorry Skarny. I didn't know. Now I do.

Skarny
Reply #13 Monday, January 30, 2012 7:57 PM

hehe no worries - I've flown pretty quietly under the radar the whole time

ZubaZ
Reply #14 Monday, January 30, 2012 9:03 PM

Nice to see you back skarnivorous!

sViz
Reply #15 Monday, January 30, 2012 9:45 PM

Skarn to the rescue.

dragonmage
Reply #16 Monday, January 30, 2012 10:23 PM

 You  don't have to kill it, just use Rainmeter.exe !Quit

Kostiantyn
Reply #17 Tuesday, January 31, 2012 3:45 AM

 

Skarny, thanks. 

 

Kostiantyn
Reply #18 Tuesday, January 31, 2012 7:20 AM

Kostiantyn
 

Skarny, thanks. 

 

 

Thanks for all.

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!



web-wc01