lib/my_scripts/wake.rb in my_scripts-0.0.23 vs lib/my_scripts/wake.rb in my_scripts-0.0.24
- old
+ new
@@ -6,13 +6,11 @@
#
class Wake < Script
SLEEP_TIME = 4 * 60 # seconds
def initialize( name, argv, cli )
-
require 'win/gui/input'
-
self.class.send(:include, Win::Gui::Input)
super
end
def move_mouse_randomly
@@ -25,10 +23,10 @@
def run
case @argv.size
when 0
sleep_time = SLEEP_TIME
when 1
- p sleep_time = @argv.first.to_f * 60
+ sleep_time = @argv.first.to_f * 60
else
usage "[minutes] - prevents screen auto lock-up by moving mouse pointer every (4) [minutes]"
end
loop do
\ No newline at end of file