Re: Alt-Esc works, why can't we pass Alt-Tab to the WM?

2003-07-06 Thread Harold L Hunt II
Igor,

Huh... well, if it requires a keyboard hook then it really is kinda 
complex to add this Alt-Tab catching behavior.

As far as adding a keyboard/mouse hook in general, I am kinda stuck on 
that one.  I can't decide if it is better to build a small DLL with 
Visual Studio with a defined interface that XWin.exe uses (if it can 
load the DLL), or if it is better (or even a good idea) to try to build 
a small hook DLL with MinGW.  Any comments?

Harold

Igor Pechtchanski wrote:

On Fri, 4 Jul 2003, Sam Edge wrote:


Igor Pechtchanski [EMAIL PROTECTED] wrote in [EMAIL PROTECTED]
in gmane.os.cygwin.xfree on Wed, 2 Jul 2003 19:26:44 -0400 (EDT):

On Wed, 2 Jul 2003, Harold L Hunt II wrote:

There is the possibility that Alt+Tab can only be trapped on NT-based
OSes, but that isn't much more to worry about.

Win98, at least, has a Misc tab in shortcut properties, that lists Windows
shortcut keys to ignore (let the application handle).  Alt-Tab is one of
them.  Thus, you could instruct the users set up a shortcut to XWin.exe
and let it handle Alt-Tab, even if XWin.exe can't capture it itself.
P.S. I'm not sure Win95/ME have this feature.
I think you'll find that the Misc property page is only available with
shortcuts to DOS-mode applications. Windows-native executables like
XWin.exe don't have it.


Yes, you're right.  However, after some more digging, it seems that
keyboard hooks (perhaps similar to what Harold suggested earlier?) *can*
be used on Win9x to intercept hotkeys (e.g., Alt-Tab) in Win32 apps.  I
haven't found the exact instructions on MSDN, though...
Igor



Re: Alt-Esc works, why can't we pass Alt-Tab to the WM?

2003-07-04 Thread Igor Pechtchanski
On Fri, 4 Jul 2003, Sam Edge wrote:

 Igor Pechtchanski [EMAIL PROTECTED] wrote in [EMAIL PROTECTED]
 in gmane.os.cygwin.xfree on Wed, 2 Jul 2003 19:26:44 -0400 (EDT):

  On Wed, 2 Jul 2003, Harold L Hunt II wrote:
   There is the possibility that Alt+Tab can only be trapped on NT-based
   OSes, but that isn't much more to worry about.

  Win98, at least, has a Misc tab in shortcut properties, that lists Windows
  shortcut keys to ignore (let the application handle).  Alt-Tab is one of
  them.  Thus, you could instruct the users set up a shortcut to XWin.exe
  and let it handle Alt-Tab, even if XWin.exe can't capture it itself.
  P.S. I'm not sure Win95/ME have this feature.

 I think you'll find that the Misc property page is only available with
 shortcuts to DOS-mode applications. Windows-native executables like
 XWin.exe don't have it.

Yes, you're right.  However, after some more digging, it seems that
keyboard hooks (perhaps similar to what Harold suggested earlier?) *can*
be used on Win9x to intercept hotkeys (e.g., Alt-Tab) in Win32 apps.  I
haven't found the exact instructions on MSDN, though...
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster.  -- Patrick Naughton



Re: Alt-Esc works, why can't we pass Alt-Tab to the WM?

2003-07-04 Thread Joakim Erdfelt
Igor Pechtchanski wrote:

Yes, you're right.  However, after some more digging, it seems that
keyboard hooks (perhaps similar to what Harold suggested earlier?) *can*
be used on Win9x to intercept hotkeys (e.g., Alt-Tab) in Win32 apps.  I
haven't found the exact instructions on MSDN, though...
Igor
Wouldn't the vnc / tightvnc win32 servers have an example of this hook?
Since their full-screen mode does intercept those keys. 
In fact, the only key they make available to escape the vnc session is
Ctrl-ESC.  All others are sent down the vnc path.

Would it be ethical (or within license) to borrow that code?

/* joakim */



Re: Alt-Esc works, why can't we pass Alt-Tab to the WM?

2003-07-04 Thread Igor Pechtchanski
On Fri, 4 Jul 2003, Joakim Erdfelt wrote:

 Igor Pechtchanski wrote:

 Yes, you're right.  However, after some more digging, it seems that
 keyboard hooks (perhaps similar to what Harold suggested earlier?) *can*
 be used on Win9x to intercept hotkeys (e.g., Alt-Tab) in Win32 apps.  I
 haven't found the exact instructions on MSDN, though...
Igor
 
 Wouldn't the vnc / tightvnc win32 servers have an example of this hook?
 Since their full-screen mode does intercept those keys.
 In fact, the only key they make available to escape the vnc session is
 Ctrl-ESC.  All others are sent down the vnc path.

 Would it be ethical (or within license) to borrow that code?

 /* joakim */

Actually, I did eventually find an example on MSDN that it would be
perfectly ethical to borrow from, IMO:
http://msdn.microsoft.com/msdnmag/issues/0700/Win32/.  Harold also
posted an example of a keyboard hook a while ago -- the only question was
whether this will work on Win9x, and the MSDN example seems to suggest
that it will.
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster.  -- Patrick Naughton



Alt-Esc works, why can't we pass Alt-Tab to the WM?

2003-07-02 Thread Steven Hurd
I've noticed numerous threads regarding the use of
Alt-Tab switching in XFree86... to summarize, people
say that passing Alt-Tab through to the WM would
result in users not being able to get back to windows
from full-screen mode.

However, both Alt-Esc and Ctrl-Esc will bring you back
into the windows interface.  So I don't see why Alt-Tab
being OPTIONALLY disabled is an issue.

Could someone please enlighten me?



Re: Alt-Esc works, why can't we pass Alt-Tab to the WM?

2003-07-02 Thread Igor Pechtchanski
On Wed, 2 Jul 2003, Harold L Hunt II wrote:

 There is the possibility that Alt+Tab can only be trapped on NT-based
 OSes, but that isn't much more to worry about.

Harold,

Win98, at least, has a Misc tab in shortcut properties, that lists Windows
shortcut keys to ignore (let the application handle).  Alt-Tab is one of
them.  Thus, you could instruct the users set up a shortcut to XWin.exe
and let it handle Alt-Tab, even if XWin.exe can't capture it itself.
Igor
P.S. I'm not sure Win95/ME have this feature.

On Wed, 2 Jul 2003, Harold L Hunt II wrote:

 Steven,

 There's not going to be much action on this until someone implements it.

 It wouldn't take much coding (10 lines, maybe).

 There is the possibility that Alt+Tab can only be trapped on NT-based
 OSes, but that isn't much more to worry about.

 Harold

 Steven Hurd wrote:

  I've noticed numerous threads regarding the use of
  Alt-Tab switching in XFree86... to summarize, people
  say that passing Alt-Tab through to the WM would
  result in users not being able to get back to windows
  from full-screen mode.
 
  However, both Alt-Esc and Ctrl-Esc will bring you back
  into the windows interface.  So I don't see why Alt-Tab
  being OPTIONALLY disabled is an issue.
 
  Could someone please enlighten me?

-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski, Ph.D.
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster.  -- Patrick Naughton