Hello sgp,
> It's better but still insufficient. Each time this window appears,
> even off screen, it takes focus temporarily then restores it to
> the active window. This steals key presses ...
Yes when I wrote that I was mainly thinking about the visual annoyance
and how to make the window disappear. Later I realised that you might
also have an issue with it stealing the keyboard focus.
Of course, the best solution is to persuade the plugin writer
to add an option to turn off the notification window feature.
> I suppose there's nothing I can do to counter this window from taking focus.
Maybe you cannot stop it stealing focus entirely but it may be possible
to let it have the focus for a much shorter time.
That means finding which of PowerPro's features has the fastest
response without adding too much cpu overhead of its own.
I guess HookWindowEvents is better than using the event plugin
with a frequent check for the problem window.
In the HookWindowEvents command list, one item with command:
.WindowHook(arg(1), arg(2), arg(3), arg(4))
;--------- WindowHook.powerpro --------------
If(arg(1) == 3 or arg(1) == 5)do
If(arg(3) == "obj_Form" and exefilename == totalcmd)do
Keys %{tab}
endif
endif
; -----------------------------------------
If that is processed fast enough, the Alt+Tab will happen while
the problem window has focus. That should make the focus return
to the window you were working in.
Note:
I'm not sure about the second line of that script.
Does totalcmd.exe make other windows with class "obj_form"
which you do not want to disappear?
If that's a problem, maybe you can catch the handle of the
problem window immediately after starting the search and feed it
to a static of the script by calling [EMAIL PROTECTED](TheHandle)
;--------- WindowHook.powerpro --------------
static zhandle
If(arg(1) == 3 or arg(1) == 5)do
If(arg(2) == zhandle)do
Keys %{tab}
endif
endif
quit
;; not the same arg(1) here
@init
static zhandle = arg(1)
quit
; -----------------------------------------
Monday, August 14, 2006, 6:43:35 PM, you wrote:
> Thanks Alan, good suggestions. I settled for both, win.move
> off-screen and win.transmouse. It's better but
> still insufficient. Each time this window appears, even off screen,
> it takes focus temporarily then restores it
> to the active window. This steals key presses and makes the active
> window title and my active bar flicker. I
> suppose there's nothing I can do to counter this window from taking focus.
> Attention: PowerPro's Web site has moved: http://www.ppro.org
> Yahoo! Groups Links
--
Best regards,
Alan mailto:[EMAIL PROTECTED]
Attention: PowerPro's Web site has moved: http://www.ppro.org
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/power-pro/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/