-
> It's not locking up per say right now, but it's not typing the `
> character till I've done several focus changes to another notepad
So if I understand you correctly, its is workign much worse. Rather than
failing intermittently, it never properly sends the ` until you manually set
the focus away and then back.
Or was that the same behaviour as before, only with this version it happens all
the time rather than intermittenly.
I uploaded a new version which uses a different approach to send the keys.
I found the following on MSDN help regarding the sendinput function, which the
current version which you are have tested on is using. I don't really
understand the Vista (and I presume windows 7) concepts to which it refers;
does it make sense to you?
<start of quote>
Microsoft Windows Vista. This function fails when it is blocked by User
Interface Privilege Isolation (UIPI). Note that neither GetLastError nor the
return value will indicate the failure was caused by UIPI blocking.
Remarks
Microsoft Windows Vista. This function is subject to UIPI. Applications are
permitted to inject input only into applications that are at an equal or lesser
integrity level.
The SendInput function inserts the events in the INPUT structures serially
into the keyboard or mouse input stream. These events are not interspersed with
other keyboard or mouse input events inserted either by the user (with the
keyboard or mouse) or by calls to keybd_event, mouse_event, or other calls to
SendInput.
<end of quote>
>
>
> 01141 62 Notepad**Untitled - Notepad 3540404 3605b4 0 0 Tue Aug 04
> 11:41:54 2009
Above says focus is where it should be (or at least foreground window is).
>
> -----------------
>
>
> > Also, if there are any debug lines in debug.txt containing
> "openprocess" pls post that line and the next 2. This is debug output
> from the other problem with unable to open process in some circumstances.
I think this error is ignorable so I will remove this debug output.