The GW-Scripting list is a discussion list for information regarding the development and use of Window-Eyes scripts. Any subscriber of the GW-Scripting list has the ability to post on-topic messages.

From:

 "David" <elephant@tele2.no>

Subject:

 Hotkeys and reloading an app

Date:

 Fri, Mar 23, 2012 10:30:07 am
This is a multi-part message in MIME format.

------=_NextPart_000_0014_01CD0909.D3D8F860
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Throughout the development of an app, it is necessary to reload the app quite frequently, whenever you have made changes to its code. I use to have the app manager open, and then open the code itself in a Notepad window. That way, I can alt-tab to the code, do my changes, alt-tab back to the app manager, and press the Reload hotkey to have the app reloaded.

This works pretty fine. That is, for a few times. But every now and then, without any good reason, my app is reloaded but none of the hotkeys that my app is using, will work. If I for instance have defined the hotkey of Alt-Shift-1 to perform a certain action in my app, this will work the first few times I reload the app. Then, all the sudden, reloading the app, alt-shift-1 ill do absolutely nothing. No matter how much I try to press the hotkey, it does perform nothing. Reloading the app will not fix this problem either. Only way I have found to get my hotkeys working again, is to end WE (by Ctrl-Ins-F4, for instance), and then restart WE.

As developing an app could include numerous reloads in one day, having to stop and restart WE several times, is quite anoying. Anyone has a fix for this? The hotkey section of the app was designed by the Framwork app, so should be properly coded. Then, why this drop out of hotkeys functionality? Seems to me, as if something goes wrong in the clearing and re-registering of the hotkeys, through the reload session. GW, could you please look into this. Maybe a small delay, between the clearing of the hotkeys from memory, before the actual reloading of the app. I don't of course know, if this is where the problem is - but that is the only imediate thing I can come up with, why the hotkeys do not re-register properly.

Anyone else seeing this behavior? Running WE7.5.3, under XP Pro all up-to-date.

------=_NextPart_000_0014_01CD0909.D3D8F860
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19190">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>Throughout the development of an app, it is
necessary to reload the app quite frequently, whenever you have made changes to
its code. I use to have the app manager open, and then open the code itself in a
Notepad window. That way, I can alt-tab to the code, do my changes, alt-tab back
to the app manager, and press the Reload hotkey to have the app
reloaded.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>This works pretty fine. That is, for a few times.
But every now and then, without any good reason, my app is reloaded but none of
the hotkeys that my app is using, will work. If I for instance have defined the
hotkey of Alt-Shift-1 to perform a certain action in my app, this will work the
first few times I reload the app. Then, all the sudden, reloading the app,
alt-shift-1 ill do absolutely nothing. No matter how much I try to press the
hotkey, it does perform nothing. Reloading the app will not fix this problem
either. Only way I have found to get my hotkeys working again, is to end WE (by
Ctrl-Ins-F4, for instance), and then restart WE.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>As developing an app could include numerous reloads
in one day, having to stop and restart WE several times, is quite anoying.
Anyone has a fix for this? The hotkey section of the app was designed by the
Framwork app, so should be properly coded. Then, why this drop out of hotkeys
functionality? Seems to me, as if something goes wrong in the clearing and
re-registering of the hotkeys, through the reload session. GW, could you please
look into this. Maybe a small delay, between the clearing of the hotkeys from
memory, before the actual reloading of the app. I don't of course know, if this
is where the problem is - but that is the only imediate thing I can come up
with, why the hotkeys do not re-register properly.</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>Anyone else seeing this behavior? Running WE7.5.3,
under XP Pro all up-to-date.</FONT></DIV>
<DIV>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_0014_01CD0909.D3D8F860--