<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Low-Battery-Yup, branch ShortcutRecorder</title>
<subtitle>Dismiss Mac OS X's low battery warning dialog with the keyboard</subtitle>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/Low-Battery-Yup/'/>
<entry>
<title>Configure ShortcutRecorder</title>
<updated>2016-11-16T11:09:21+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2016-11-16T11:09:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/Low-Battery-Yup/commit/?id=0f700a1e7de508a3c060b77b55e4a8710be58ffc'/>
<id>0f700a1e7de508a3c060b77b55e4a8710be58ffc</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Add 'ShortcutRecorder'</title>
<updated>2016-11-16T10:29:46+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2016-11-16T10:29:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/Low-Battery-Yup/commit/?id=cd393abc5ba2e8a00c9e2b30234a4882a598ff4a'/>
<id>cd393abc5ba2e8a00c9e2b30234a4882a598ff4a</id>
<content type='text'>
Add this library as a Git submodule. We'll be using it to set a
configurable shortcut and pull it when needed from `NSUserDefaults`.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add this library as a Git submodule. We'll be using it to set a
configurable shortcut and pull it when needed from `NSUserDefaults`.
</pre>
</div>
</content>
</entry>
<entry>
<title>MainMenu.xib: Remove `IBDocument.UseAutolayout` key</title>
<updated>2016-11-16T10:24:26+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2016-11-16T10:24:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/Low-Battery-Yup/commit/?id=1069fd4f08e851d5e5be095544011702016836b3'/>
<id>1069fd4f08e851d5e5be095544011702016836b3</id>
<content type='text'>
Xcode (4.5.2) was crashing whenever I tried to open the MainMenu.xib
file. A Stack Overflow post turned up that recommended removing this key
in order to get it working again:

http://stackoverflow.com/questions/27167679/xcode-6-1-crashes-whenever-i-use-interface-builder/27932154#27932154

Sure, works for me.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Xcode (4.5.2) was crashing whenever I tried to open the MainMenu.xib
file. A Stack Overflow post turned up that recommended removing this key
in order to get it working again:

http://stackoverflow.com/questions/27167679/xcode-6-1-crashes-whenever-i-use-interface-builder/27932154#27932154

Sure, works for me.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add new target "Low Battery Yup"</title>
<updated>2016-11-16T10:21:38+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2016-11-16T10:21:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/Low-Battery-Yup/commit/?id=0b1664252de3afe11a67492dc99f81facdb82a0a'/>
<id>0b1664252de3afe11a67492dc99f81facdb82a0a</id>
<content type='text'>
This new target will be used as our non-background user-facing
configuration application. It's purpose will be to define a custom
shortcut to trigger the mouse move &amp; click action.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This new target will be used as our non-background user-facing
configuration application. It's purpose will be to define a custom
shortcut to trigger the mouse move &amp; click action.
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove MainMenu.xib</title>
<updated>2016-11-16T09:56:51+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2016-11-16T09:56:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/Low-Battery-Yup/commit/?id=f0e8b5188e6fb984511eb01849380669e69632a6'/>
<id>f0e8b5188e6fb984511eb01849380669e69632a6</id>
<content type='text'>
Since this is a backround app
(3db243f3c84f7ab36747f4badfd4f57a26563821), we don't have a UI and have
no need for any nib files.

We'll make an additional target as a separate application that does
have a UI and will allow customisation of the global hotkey.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Since this is a backround app
(3db243f3c84f7ab36747f4badfd4f57a26563821), we don't have a UI and have
no need for any nib files.

We'll make an additional target as a separate application that does
have a UI and will allow customisation of the global hotkey.
</pre>
</div>
</content>
</entry>
<entry>
<title>Mouse: Change mouse coordinates to Low Battery OK button</title>
<updated>2016-11-16T09:51:45+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2016-11-16T09:51:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/Low-Battery-Yup/commit/?id=b3e644a6ec9d14554f4268d38b543cc1d8b7197e'/>
<id>b3e644a6ec9d14554f4268d38b543cc1d8b7197e</id>
<content type='text'>
Modify the coordinates such that instead of clicking the center of the
screen, we click the OK button on the low battery warning dialog.

Rename the method according to its new intent.

TODO: This probably doesn't work on other displays that have different
resolutions. We need to check that and figure out a cross-display
solution.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Modify the coordinates such that instead of clicking the center of the
screen, we click the OK button on the low battery warning dialog.

Rename the method according to its new intent.

TODO: This probably doesn't work on other displays that have different
resolutions. We need to check that and figure out a cross-display
solution.
</pre>
</div>
</content>
</entry>
<entry>
<title>Info.plist: Set LSBackgroundOnly=1</title>
<updated>2016-11-16T09:29:35+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2016-11-16T09:29:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/Low-Battery-Yup/commit/?id=3db243f3c84f7ab36747f4badfd4f57a26563821'/>
<id>3db243f3c84f7ab36747f4badfd4f57a26563821</id>
<content type='text'>
Make this a background-only app. We don't have any UI for the daemon
part of the app. It should just sit quietly until it's called by a
global hotkey to click in the right part of the screen.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Make this a background-only app. We don't have any UI for the daemon
part of the app. It should just sit quietly until it's called by a
global hotkey to click in the right part of the screen.
</pre>
</div>
</content>
</entry>
<entry>
<title>Rename project to "Low Battery Yup.d"</title>
<updated>2016-11-16T09:26:06+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2016-11-16T09:26:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/Low-Battery-Yup/commit/?id=b5569ad884cd99d8f0b1403c34bc244d6a514182'/>
<id>b5569ad884cd99d8f0b1403c34bc244d6a514182</id>
<content type='text'>
Change the last space to a dot to make it more obvious that it's
supposed to mean 'daemon'.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change the last space to a dot to make it more obvious that it's
supposed to mean 'daemon'.
</pre>
</div>
</content>
</entry>
<entry>
<title>Mouse: Move `centerPoint` back to `moveToCenter`</title>
<updated>2016-11-16T09:19:51+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2016-11-16T09:19:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/Low-Battery-Yup/commit/?id=fbea67769cdc92d6ca67b0bff3b40d0387c088cb'/>
<id>fbea67769cdc92d6ca67b0bff3b40d0387c088cb</id>
<content type='text'>
This method isn't reused anywhere so it can go back into the
`moveToCenter` method.

Originally created before `_cursor_position`. See
1832514ab872dec621d5f403eb5328167b3da033.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This method isn't reused anywhere so it can go back into the
`moveToCenter` method.

Originally created before `_cursor_position`. See
1832514ab872dec621d5f403eb5328167b3da033.
</pre>
</div>
</content>
</entry>
<entry>
<title>Mouse: Implement `click`</title>
<updated>2016-11-16T09:12:56+00:00</updated>
<author>
<name>Teddy Wing</name>
</author>
<published>2016-11-16T09:12:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.teddywing.com/Low-Battery-Yup/commit/?id=1832514ab872dec621d5f403eb5328167b3da033'/>
<id>1832514ab872dec621d5f403eb5328167b3da033</id>
<content type='text'>
Method that clicks the mouse.

* Add `_cursor_position` instance var that describes the current cursor
  position after the `moveToPoint` method is called
* `click` will click at the `_cursor_position` point
* I had extracted the centering code to `centerPoint` (which maybe
  should have been called `pointAtCenter`) out of the `moveToCenter`
  method because I briefly used it in `click` as a test before adding
  the `_cursor_position` ivar. This should be reintegrated with
  `moveToCenter`.
* Add a `post_mouse_event` function that abstracts the CG calls needed
  to send a mouse event since we need both click down and up events.

Based on:
http://stackoverflow.com/questions/1483657/performing-a-double-click-using-cgeventcreatemouseevent
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Method that clicks the mouse.

* Add `_cursor_position` instance var that describes the current cursor
  position after the `moveToPoint` method is called
* `click` will click at the `_cursor_position` point
* I had extracted the centering code to `centerPoint` (which maybe
  should have been called `pointAtCenter`) out of the `moveToCenter`
  method because I briefly used it in `click` as a test before adding
  the `_cursor_position` ivar. This should be reintegrated with
  `moveToCenter`.
* Add a `post_mouse_event` function that abstracts the CG calls needed
  to send a mouse event since we need both click down and up events.

Based on:
http://stackoverflow.com/questions/1483657/performing-a-double-click-using-cgeventcreatemouseevent
</pre>
</div>
</content>
</entry>
</feed>
