Posted 24 July 2016 - 01:47 PM
German : Hey und Hallo ! Ich habe mir heute ein programm geschrieben mit dem man andere programme öffnen kann . Diese Funktionen soll man nutzen indem man z.B. Lock eingibt und dann sich das Fenster öffnet. Es hat funktioniert aber ich bin mir nicht sicher was jetzt falsch ist D=! Die Programme z.B. N-Cat,clear etc. Funktionieren und sind installiert!
English : Hey and Welcome! I wrote today morning a programm for opening others . This functions should be used when someone writes for example Lock it should open. It doesn`t function now but maybe you can help D= The Programs for example N-Cat,clear etc. does function and are installed!
My Script :
Mein Skript :
shell.run("clear")
term.setCursorPos(7,3)
print("Hey and …")
term.setCursorPos(25,10)
print(" :D/>")
term.setCursorPos(7,13)
sleep(5)
print("Now you …")
sleep(10)
shell.run("clear")
print("If you …")
password = read()
if password == ("Lock") then true
print("lock is …")
sleep(2)
shell.run("clear")
shell.run("ONIX")
elseif password == ("Help") then true
print("Hey…")
sleep(2)
print("——")
sleep(2)
print("Here…")
print(" ")
sleep(2)
print("Lock : In lock…")
print("to send a signal …")
print("you may have a problem :D/> TNT")
print(" ")
sleep(4)
print("Main : …")
print("can user …")
sleep(4)
print("Help : …")
print("Programm …")
sleep(10)
print("You have to …")
else
print("Invalid entry")
elseif password == ("Animation") then true
shell.run("clear")
print("This is a …")
sleep(4)
shell.run("N-Cat")
end
eof=true
English : Hey and Welcome! I wrote today morning a programm for opening others . This functions should be used when someone writes for example Lock it should open. It doesn`t function now but maybe you can help D= The Programs for example N-Cat,clear etc. does function and are installed!
My Script :
Mein Skript :
shell.run("clear")
term.setCursorPos(7,3)
print("Hey and …")
term.setCursorPos(25,10)
print(" :D/>")
term.setCursorPos(7,13)
sleep(5)
print("Now you …")
sleep(10)
shell.run("clear")
print("If you …")
password = read()
if password == ("Lock") then true
print("lock is …")
sleep(2)
shell.run("clear")
shell.run("ONIX")
elseif password == ("Help") then true
print("Hey…")
sleep(2)
print("——")
sleep(2)
print("Here…")
print(" ")
sleep(2)
print("Lock : In lock…")
print("to send a signal …")
print("you may have a problem :D/> TNT")
print(" ")
sleep(4)
print("Main : …")
print("can user …")
sleep(4)
print("Help : …")
print("Programm …")
sleep(10)
print("You have to …")
else
print("Invalid entry")
elseif password == ("Animation") then true
shell.run("clear")
print("This is a …")
sleep(4)
shell.run("N-Cat")
end
eof=true