It is currently March 28th, 2024, 2:51 pm

WebPlayer for Multiple Videos

Get help with creating, editing & fixing problems with skins
Post Reply
CM62
Posts: 15
Joined: June 2nd, 2018, 10:46 pm

WebPlayer for Multiple Videos

Post by CM62 »

Currently, I am working on a skin that can change youtube livestreams with icons on the UI. To achieve this, I have been manipulating the illustro google search bar to look at youtube instead of google and pull up the desired video via its url. The problems I am having with this is that like the illustro skin, the search always pops up the last active window and adds a new tab to it. Is there a way to relegate the search to a specific window, maybe even replacing the old tab with the new one, or at least suppress its urge to open the window?

What I have so far:

Code: Select all

; Lines starting ; (semicolons) are commented out.
; That is, they do not affect the code and are here for demonstration purposes only.
; ----------------------------------

[Rainmeter]
; This section contains general settings that can be used to change how Rainmeter behaves.
Update=1000
Background=#@#Background.png
; #@# is equal to Rainmeter\Skins\illustro\@Resources
BackgroundMode=3
BackgroundMargins=0,34,0,14

[Metadata]
; Contains basic information of the skin.
Name=Google
Author=poiru
Information=Allows searching through Google.
License=Creative Commons BY-NC-SA 3.0
Version=1.0.0

[Variables]
; Variables declared here can be used later on between two # characters (e.g. #MyVariable#).
fontName=Trebuchet MS
textSize=8
colorBar=235,170,0,255
colorText=255,255,255,205

; ----------------------------------
; MEASURES return some kind of value
; ----------------------------------

[measureInput]
; The InputText.dll plugin has special powers: it allows user input.
; However, it's not the easiest way to start learning Rainmeter. Get a
; hold of the basics, and then check out the manual entry for InputText.
Measure=Plugin
Plugin=InputText.dll
SolidColor=20,20,20,255
StringAlign=Left
StringCase=None
StringStyle=Bold
StringEffect=Shadow
FontEffectColor=0,0,0,20
FontColor=#colorText#
FontFace=#fontName#
FontSize=#textSize#
X=10
Y=65
W=188
H=14
FocusDismiss=1
DefaultValue=""
Command1=["http://www.youtube.com/watch?v=-rWPZtM1eRs"]
UpdateDivider=86400

; ----------------------------------
; STYLES are used to "centralize" options
; ----------------------------------

;[styleTitle]
;StringAlign=Center
;StringCase=Upper
;StringStyle=Bold
;StringEffect=Shadow
Sneak Preview of the Main Project :D :
Attachments
Livestream Player.PNG
CM62
Posts: 15
Joined: June 2nd, 2018, 10:46 pm

Re: WebPlayer for Multiple Videos

Post by CM62 »

Getting back to this main issue after trying out the back-burner issue of a fullscreen option, I see that there is a "RunCommand" plugin with the option of a "State", allowing whatever is being pulled up to be minimized, as well as a kill option. Applying this instead of the "InputText" plugin (because it is just a single click), could I get away with swapping it out in the aforementioned code?
Post Reply