im trying to make my program "Advlock" even more secure. im trying to reboot the computer, when the computer keys "ctrl s" are typed... but it doesnt actually work as i suspected...
is it because ctrl s are hardcoded into the program?
os.pullEvent = os.pullEventRaw
while true do
print("Eventing...")
event, key, id = os.pullEvent()
if event == "key" then
print("Key detected...")
if (key == keys.rightCtrl or key == keys.leftCtrl) and key == keys.s or key == keys.r then
print("Rebooting...") sleep(0.5)
os.reboot()
end
end
end
Thanks In Advance -











