heres my lua code if it helps:
Code: Select all
function DealWithInput(inArg)
inputText = string.lower(inArg)
if inputText == 'hi' then outputText = 'ugh i was sleeping -_-'
elseif inputText == 'hello' then outputText = 'hello user'
elseif inputText == 'open chrome' then outputText = 'nope, i dont wanna'
elseif inputText == 'who is the best programmer' then outputText = 'ill give you a hint... its not you'
elseif inputText == 'thats not nice'then outputText = 'does it look like i care???'
elseif inputText == 'that is not nice'then outputText = 'does it look like i care???'
elseif inputText == 'you dont understand much'then outputText = 'says the ape using me for info'
elseif inputText == 'open firefox'then SKIN:Bang('!execute ["https://www.google.com/"]') outputText = 'why would i set a fox on fire? you monster!'
elseif inputText == 'search'then SKIN:Bang('!execute ["https://www.google.com/"]') outputText = 'B.i.n.g. Because Its Not Google'
elseif inputText == 'chess'then SKIN:Bang('!execute ["https://lichess.org/"]') outputText = 'Would you like to play a game of thermo nuclear war?'
elseif inputText == 'files'then SKIN:Bang('!Execute ["C:"]') outputText = 'please dont delete me 0_0 ill be nice... *crosses fingers*'
elseif inputText == 'task'then os.execute("control access.cpl") outputText = 'the computer runs slow cause it dosent like you'
elseif inputText == 'give meh candy'then outputText = 'no your fat'
elseif inputText == 'tell me a joke'then outputText = 'School'
elseif inputText == 'what does pun mean'then outputText = 'Personal Unit for Navigation of tech. If you must know'
elseif inputText == 'what does PUN mean'then outputText = 'Personal Unit for Navigation of tech. If you must know'
elseif inputText == 'what dose pun mean'then outputText = 'Personal Unit for Navigation of tech. If you must know'
elseif inputText == 'what dose PUN mean'then outputText = 'Personal Unit for Navigation of tech. If you must know'
elseif inputText == 'im bored'then outputText = 'good for you guess who is a digital minion to a idiot all day???'
elseif inputText == 'test'then SKIN:Bang('Play "F:\rainmeter sounds\test.wav"')
------ this line isnt working ^^^^ so i asume i cant put it in here?
else outputText = 'I dont understand that yet... sorry (not sorry)'
end
SKIN:Bang('!SetOption', 'RESPONDINGTEXT', 'Text', outputText)
SKIN:Bang('!UpdateMeter', 'RESPONDINGTEXT')
SKIN:Bang('!Redraw')
end
Code: Select all
[Rainmeter]
Update=50
DynamicWindowSize=1
[Variables]
FontSize=14
[MeasureScript]
Measure=Script
ScriptFile=textchecker.lua
Disabled=1
[EyeScript]
Measure=Script
ScriptFile=eye.lua
[ModeScript]
Measure=Script
ScriptFile=modegetscript.lua
[MeterBackground]
Meter=Image
ImageName=E:\CustomRainfinalfile\punbackround.png
W=500
H=500
[PUNFACE]
meter=image
ImageName=E:\CustomRainfinalfile\punface.png
W=190
H=150
Y=120
[PUNEYE]
meter=image
ImageName=E:\CustomRainfinalfile\puneye.png
W=190
H=100
Y=150
[MeterBackgroundhomemode]
Meter=Image
ImageName=F:\CustomRainfinalfile\punbackround.png
W=500
H=500
[PUNFACEhomemode]
meter=image
ImageName=F:\CustomRainfinalfile\punface.png
W=190
H=150
Y=120
[PUNEYEhomemode]
meter=image
ImageName=F:\CustomRainfinalfile\puneye.png
W=190
H=100
Y=150
[RESPONDINGTEXT]
Meter = string
FontSize=15
X=0
Y=280
W=200
H=80
ClipString=1
FontColor=7,198,185
TEXT=Ugh what do you want now human???
[MeterPrompt]
Meter=String
X=5
Y=350
FontSize=15
FontColor=255,255,255,255
AntiAlias=1
DynamicVariables=1
Text=Speak to P.U.N.
LeftMouseUpAction=[!SetOption RESPONDINGTEXT Text "What do you want now???"][!UpdateMeter RESPONDINGTEXT][!Redraw][!CommandMeasure "MeasureInput" "ExecuteBatch 1"]
[MeasureInput]
Measure=Plugin
Plugin=InputText
SolidColor=76A0E8FF
FontColor=255,255,255,255
FontFace=Seqoe UI
StringStyle=Italic
FontSize=#FontSize#
X=5
Y=350
H=25
W=200
OnDismissAction=[!SetOption RESPONDINGTEXT Text "Welcome"][!UpdateMeter RESPONDINTEXT][!Redraw]
Command1=[!CommandMeasure MeasureScript "DealWithInput('$UserInput$')]