aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Low Battery Yup d/AppDelegate.m2
-rw-r--r--Low Battery Yup d/Mouse.h2
-rw-r--r--Low Battery Yup d/Mouse.m6
3 files changed, 5 insertions, 5 deletions
diff --git a/Low Battery Yup d/AppDelegate.m b/Low Battery Yup d/AppDelegate.m
index 8c31526..4914883 100644
--- a/Low Battery Yup d/AppDelegate.m
+++ b/Low Battery Yup d/AppDelegate.m
@@ -19,7 +19,7 @@
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
{
Mouse *m = [[Mouse alloc] init];
- [m moveToCenter];
+ [m moveToLowBatteryOK];
[m click];
}
diff --git a/Low Battery Yup d/Mouse.h b/Low Battery Yup d/Mouse.h
index 0671083..e15a212 100644
--- a/Low Battery Yup d/Mouse.h
+++ b/Low Battery Yup d/Mouse.h
@@ -14,7 +14,7 @@
}
- (void)moveToPoint:(CGPoint)point;
-- (void)moveToCenter;
+- (void)moveToLowBatteryOK;
- (void)click;
@end
diff --git a/Low Battery Yup d/Mouse.m b/Low Battery Yup d/Mouse.m
index 137b560..9bade59 100644
--- a/Low Battery Yup d/Mouse.m
+++ b/Low Battery Yup d/Mouse.m
@@ -26,15 +26,15 @@
CGDisplayMoveCursorToPoint(_current_display, point);
}
-- (void)moveToCenter
+- (void)moveToLowBatteryOK
{
CGPoint point;
size_t width = CGDisplayPixelsWide(_current_display);
size_t height = CGDisplayPixelsHigh(_current_display);
- point.x = width / 2;
- point.y = height / 2;
+ point.x = width / 2 + 182;
+ point.y = height / 2 - 116;
[self moveToPoint:point];
}