Search code examples
rainmeter

how using rainmeter script to launch windows app


Is anyone here know how to start an windows app like Netflix or Spotify ? There is a trick to do that ?

there is not .exe file so at the moment the best I can do is open the netflix folder ...

here is my script :

[1Button2]
 Meter=Image
 X=36r
 W=24
 Y=r
 SolidColor=0,0,0,1
 ImageName=#apps#\NF.png
 LeftMouseUpAction= !execute ["C:\Program Files\WindowsApps\4DF9E0F8.Netflix_6.97.752.0_x64__mcm4njqhnhss8"][!RainmeterHideMeterGroup Hover][!RainmeterShowMeter Base][!RainmeterRedraw]
 Hidden=0
 AntiAlias=0
 Group=Apps
 ToolTipText="Netflix"

Solution

  • The best way I have found is to create a shortcut and point the action to that shortcut. To do this on Windows 10 you drag the application you want from your system tray onto your desktop. This will create a .lnk file on your desktop that will open the application. In your case you would do that with the Netflix app, then use:

     LeftMouseUpAction = ["C:\Users\#YourUser#\Desktop\Netflix.lnk"][!RainmeterHideMeterGroup Hover][!RainmeterShowMeter Base][!RainmeterRedraw]
    

    Just replace #YourUser# with the correct information.

    You may also look into Launching Windows Special Folders on the Rainmeter docs.