I want to connect Desktopx Builder and Rainmeter.

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

26,251 views 18 replies
Reply #1 Top

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.

Reply #2 Top

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

Reply #3 Top

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

Reply #5 Top

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. <span>Sub Object_OnStateChange(state)</span>
  2. <span>If state = "Command executed" Then</span>
  3. <span>MsgBox "You activated me!"</span>
  4. <span>End If</span>
  5. <span>End Sub</span>

Reply #6 Top

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.


 

Reply #9 Top

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

Reply #10 Top

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

+1 Loading…
Reply #11 Top

Quoting Uvah, reply 3
Okay ... try Pm- ing sVis or romanda. They are the scripting gurus.
Or me ;-)

Reply #12 Top

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

Reply #13 Top

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

Reply #14 Top

Nice to see you back skarnivorous!

Reply #15 Top

Skarn to the rescue. k4