It is currently April 20th, 2024, 6:35 am

Help, command prompt with text

Get help with creating, editing & fixing problems with skins
CthulhuOfRlyeh17
Posts: 2
Joined: August 6th, 2017, 5:27 pm

Help, command prompt with text

Post by CthulhuOfRlyeh17 »

Hello,
Is there any way to make a command through a Meter=String, the only one that seems to waork is Meter=BUTTON

I wanted to know if it was possible to make a Button but instead of using an image use text. Something like

Code: Select all

[15 Min]
Meter=BUTTON
X=0
Y=0
W=100
H=100
Text=Shutdown 15 Min
ButtonCommand=!Execute [shutdown –s –t 900]
I know it can be done by doing two entries

Code: Select all

[15 Min]
Meter=BUTTON
X=0
Y=0
W=100
H=100
ButtonCommand=!Execute [shutdown –s –t 900]

[15 Min Text]
Meter=String
X=0
Y=0
W=100
H=100
Text=Shutdown 15 Min
I wanted to know if it could be done in one

:welcome:
Last edited by CthulhuOfRlyeh17 on August 7th, 2017, 2:30 am, edited 1 time in total.
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Help, command prompt with text

Post by jsmorley »

CthulhuOfRlyeh17 wrote:Hello,
Is there any way to make a command through a Meter=String, the only one that seems to waork is Meter=BUTTON

I wanted to know if it was possible to make a Button but instead of using an image use text. Something like

Code: Select all

[15 Min]
Meter=BUTTON
X=0
Y=0
W=100
H=100
Text=Shutdown 15 Min
ButtonCommand=!Execute [shutdown –s –t 900]
I know it can be done by doing two entries

Code: Select all

[15 Min]
Meter=BUTTON
X=0
Y=0
W=100
H=100
ButtonCommand=!Execute [shutdown –s –t 900]

[15 Min Text]
Meter=String
X=0
Y=0
W=100
H=100
Text=Shutdown 15 Min
I wanted to know if it could be done in one

:welcome:

Code: Select all

[15 Min Text]
Meter=String
X=0
Y=0
W=100
H=100
SolidColor=0,0,0,1
Text=Shutdown 15 Min
LeftMouseUpAction=["shutdown –s –t 900"]
Note, I'd be tempted to use LeftMouseDoubleClickAction personally, as I wouldn't want some random accidental click to shutdown my computer.
CthulhuOfRlyeh17
Posts: 2
Joined: August 6th, 2017, 5:27 pm

Re: Help, command prompt with text

Post by CthulhuOfRlyeh17 »

jsmorley wrote:

Code: Select all

[15 Min Text]
Meter=String
X=0
Y=0
W=100
H=100
SolidColor=0,0,0,1
Text=Shutdown 15 Min
LeftMouseUpAction=["shutdown –s –t 900"]
Note, I'd be tempted to use LeftMouseDoubleClickAction personally, as I wouldn't want some random accidental click to shutdown my computer.

Thanks it worked without the ""

LeftMouseUpAction=[shutdown –s –t 900]
and yes the double click would be better