'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 1:[1]
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.
Solution 2:[2]
I think I have a solution. It's not optimal, but a bypass.
Right-click the Spotify Icon on your Start menu
Select "Pin to taskbar"
From Taskbar [Shift + right-click] Spotify icon (make sure your Spotify app is closed while doing so, or else you won't get the needed option).
Select Create shortcut.
Select OK from the warning pop-up.
A shortcut will be placed on your desktop. Store it anywhere you please.
Right-click the shortcut and select Copy as path.
Place that path as the launch link in your meter skin.
LocationPath6 = !Execute ["C:\Users\iftek\Desktop\Spotify - Shortcut.lnk"]
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | HBerryman |
Solution 2 | karel |