Send the NDA window to the back during listening. This way, the key strokes generated has less chance of being consumed by the NDA window which won't do any good. Also add some more ideas for the future.

This commit is contained in:
Jeremy Rand 2022-03-10 22:57:23 -05:00
parent 93423c6566
commit 789ab04110
4 changed files with 9 additions and 5 deletions

View File

@ -7,17 +7,17 @@
<key>Archive.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>4</integer>
<integer>3</integer>
</dict>
<key>Binary.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>3</integer>
<integer>2</integer>
</dict>
<key>DiskImage.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>1</integer>
<integer>4</integer>
</dict>
<key>Listener.xcscheme_^#shared#^_</key>
<dict>
@ -27,7 +27,7 @@
<key>doNotBuild.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>2</integer>
<integer>1</integer>
</dict>
</dict>
</dict>

View File

@ -44,3 +44,5 @@ There are a number of improvements to make:
* Perhaps a Siri shortcut so you can just tell your phone to dictate to your GS without even starting the ListenerApp.
* Maybe a mode where instead of dictating text, you can dictate commands like "close window", "copy" and "paste" and the right standard commands are sent as key strokes.
* Instead of injecting keyboard events through the Event Manager on the GS, look at injecting fake keypresses into ADB itself. This should improve compatibility with applications that do not get their key events from the Event Manager. Based on what I have read, the SendInfo toolbox routine with the keyCode command should be able to do this. It should be possible based on what things like Video Keyboard does in the System 6.0.1 distribution.
* Investigate if some minimal amount of bonjour support could be introduced on the GS side so that the modern device could detect its presence on the network. That way, you wouldn't need to set the IP address of the GS in the app.
* There have been suggestions to turn this into a general solution for integrating a modern machine with a GS. This might involve things like file transfer in either direction, clipboard syncing and perhaps other things along those lines.

View File

@ -484,6 +484,8 @@ void handleAwaitingMsgHeaderState(void)
textTransfer->header.size = globals->messageHeader.messageArg;
textTransfer->header.position = 0;
newState(LISTEN_STATE_AWAITING_TEXT);
if (FrontWindow() == globals->winPtr)
SendBehind((GrafPortPtr)toBottom, globals->winPtr);
break;
default:

View File

@ -16,7 +16,7 @@ resource rVersion (1) {
{
0, /* Major version number in BCD */
9, /* Minor version number in BCD */
0, /* Bug version number in BCD */
1, /* Bug version number in BCD */
development,/* Development phase */
0 /* Release number */
},