| View previous topic :: View next topic |
| Author |
Message |
Flint Power Member


Joined: 27 Oct 2003 Posts: 2867 Location: Moscow, Russia
|
Posted: Wed Dec 07, 2011 6:05 am Post subject: Drag&Drop does not work when Alt+Tabbing with VistaSwitc |
|
|
I've been using VistaSwitcher for quite long time as Alt+Tab replacement tool, and in WinXP 32- and 64-bit everything was fine. But after switching to Win7 I noticed that with VistaSwitcher installed I can no longer drag&drop files from TC if I use Alt+Tab to switch to the target application: after Alt+Tab the cursor takes its defalt form, and when I release the left mouse button nothing happens. If I shut down VistaSwitcher, drag&drop across Alt+Tab starts working correctly again.
Of course, the problem might lie in VistaSwitcher itself, but other applications continue to process drag&drop correctly even when VistaSwitcher runs (for example, it's still possible to drag&drop files from Windows Explorer, or selected text from EmEditor), so I figured there could be something wrong with TC.
OS: Win7 x64 SP1 Professional
TC: 7.56a, 8.0β11 x32, 8.0β11 x64 _________________ Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, other stuff!
Using TC 8.01 / Win7 x64 SP1 |
|
| Back to top |
|
 |
ghisler(Author) Site Admin


Joined: 04 Feb 2003 Posts: 24602 Location: Switzerland
|
Posted: Wed Dec 07, 2011 10:45 am Post subject: |
|
|
Try dragging the file outside of the TC window before using Alt+Tab. It seems that TC doesn't notice the focus loss on Alt+Tab (maybe no WM_KILLFOCUS is sent), and therefore doesn't switch from internal to external drag&drop. _________________ Author of Total Commander
http://www.ghisler.com |
|
| Back to top |
|
 |
Flint Power Member


Joined: 27 Oct 2003 Posts: 2867 Location: Moscow, Russia
|
Posted: Wed Dec 07, 2011 1:12 pm Post subject: |
|
|
| ghisler(Author) wrote: | | Try dragging the file outside of the TC window before using Alt+Tab. |
It's impossible, I always keep TC window maximized…
| ghisler(Author) wrote: | | It seems that TC doesn't notice the focus loss on Alt+Tab (maybe no WM_KILLFOCUS is sent), and therefore doesn't switch from internal to external drag&drop. |
Hm… It doesn't look this way. Even when I Alt+Tab into some application and then (without releasing the mouse) Alt+Tab back into TC, the drag&drop is dropped completely: the mouse cursor does not have a [+] picture (nor the "forbidden" crossed circle), and releasing the left button does not do anything. _________________ Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, other stuff!
Using TC 8.01 / Win7 x64 SP1 |
|
| Back to top |
|
 |
Hacker Moderator


Joined: 06 Feb 2003 Posts: 9108 Location: Bratislava, Slovakia
|
Posted: Wed Dec 07, 2011 2:52 pm Post subject: |
|
|
Flint,
| Quote: | | But after switching to Win7 I noticed that with VistaSwitcher installed I can no longer drag&drop files from TC if I use Alt+Tab to switch to the target application: after Alt+Tab the cursor takes its defalt form, and when I release the left mouse button nothing happens |
Works fine here. The cursor takes the default form immediately after releasing Alt-Tab but when I move the mouse it changes back to the "drop" cursor.
W7 x64 HP, TC 8.0b11 both 32- and 64-bit.
Roman _________________ Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um. |
|
| Back to top |
|
 |
Flint Power Member


Joined: 27 Oct 2003 Posts: 2867 Location: Moscow, Russia
|
Posted: Wed Dec 07, 2011 3:30 pm Post subject: |
|
|
| Hacker wrote: | | Works fine here. |
You mean, you tested with VistaSwitcher installed and running, and drag&drop was not cancelled after Alt+Tabbing?
Without VistaSwitcher everything works fine on my computer too… _________________ Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, other stuff!
Using TC 8.01 / Win7 x64 SP1 |
|
| Back to top |
|
 |
Hacker Moderator


Joined: 06 Feb 2003 Posts: 9108 Location: Bratislava, Slovakia
|
Posted: Wed Dec 07, 2011 4:02 pm Post subject: |
|
|
Flint,
| Quote: | | You mean, you tested with VistaSwitcher installed and running, and drag&drop was not cancelled after Alt+Tabbing? |
Exactly.
Roman _________________ Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um. |
|
| Back to top |
|
 |
MVV Power Member


Joined: 03 Aug 2008 Posts: 4533 Location: Russian Federation
|
|
| Back to top |
|
 |
Flint Power Member


Joined: 27 Oct 2003 Posts: 2867 Location: Moscow, Russia
|
Posted: Thu Dec 08, 2011 2:55 am Post subject: |
|
|
| MVV wrote: | | Maybe some elevation problem? |
Doesn't look so. Both TC and VistaSwitcher work non-elevated.
I performed some more experiments and got the following results:
1) Start TC non-maximized; start dragging a file; move the cursor outside of TC window; press and hold Alt, then press Tab, Shift+Tab, then release Alt (to initialize Alt+Tab handler but remain in TC afterwards); now move cursor back into TC window -> drag&drop remains working.
2) Start TC (maximized or not); start dragging a file; move the cursor over inactive file panel; press Alt+Tab -> Alt+Tab window opens and immediately forcibly closed; the drag&drop operation suddenly executes and Copy dialog appears in TC, as if I released the left mouse button already (which of course I didn't).
3) Doing the same, but moving mouse cursor over the command line before pressing Alt+Tab -> the file name is inserted into command line (again, premature completion of drag&drop routine).
So, when I press Alt+Tab, and the mouse cursor is over the TC window, TC behaves as though I release the mouse button. I tried to catch messages with Spy++ and, indeed, WM_LBUTTONUP is posted into main TC window. I wonder why it is sent here, why it is not sent in XP and why on Hacker's computer it is not sent or not processed by TC… I'll try to experiment on XP and also in Win7 without VistaSwitcher. _________________ Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, other stuff!
Using TC 8.01 / Win7 x64 SP1 |
|
| Back to top |
|
 |
ghisler(Author) Site Admin


Joined: 04 Feb 2003 Posts: 24602 Location: Switzerland
|
Posted: Thu Dec 08, 2011 8:13 am Post subject: |
|
|
| Quote: | | It's impossible, I always keep TC window maximized… |
No taskbar??? _________________ Author of Total Commander
http://www.ghisler.com |
|
| Back to top |
|
 |
Flint Power Member


Joined: 27 Oct 2003 Posts: 2867 Location: Moscow, Russia
|
Posted: Thu Dec 08, 2011 9:41 am Post subject: |
|
|
| ghisler(Author) wrote: | | No taskbar??? |
Well, almost. I use it in auto-hide mode, so I didn't think that I could use it for that purpose.
However, in any case it's not very convenient to move mouse to the other end of 24" monitor each time before pressing Alt+Tab… As I wrote above, it seems that TC receives WM_LBUTTONUP for unknown reason which causes it to process the Drop action. I checked: if VistaSwitcher is not running, WM_LBUTTONUP does not come into TC during Alt+Tabbing. I will test whether other applications receive the same message and try to find out how they deal with it. _________________ Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, other stuff!
Using TC 8.01 / Win7 x64 SP1 |
|
| Back to top |
|
 |
Flint Power Member


Joined: 27 Oct 2003 Posts: 2867 Location: Moscow, Russia
|
Posted: Thu Dec 08, 2011 2:37 pm Post subject: |
|
|
I tested in an almost clean virtual machine with Windows 7 Pro x64, and still the same effect. So it cannot be some combination of hooker applications in my system as I thought as one of possible sources of the problem…
Hacker
Could you please test once more, exactly as described in this post? I mean, pp. 2 and 3.
Which version of VistaSwitcher do you use? Is UAC turned on or off? Are TC and VistaSwitcher running elevated or not? _________________ Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, other stuff!
Using TC 8.01 / Win7 x64 SP1 |
|
| Back to top |
|
 |
Hacker Moderator


Joined: 06 Feb 2003 Posts: 9108 Location: Bratislava, Slovakia
|
Posted: Thu Dec 08, 2011 4:14 pm Post subject: |
|
|
Flint,
| Quote: | | 2) Start TC (maximized or not); start dragging a file; move the cursor over inactive file panel; press Alt+Tab -> Alt+Tab window opens and immediately forcibly closed; |
Does not close here, as long as I keep holding Alt.
| Quote: | | 3) Doing the same, but moving mouse cursor over the command line before pressing Alt+Tab -> the file name is inserted into command line |
Nope, mouse button does not act as if released.
| Quote: | | Which version of VistaSwitcher do you use? |
1.1.4 64-bit.
| Quote: | | Is UAC turned on or off? |
Off.
| Quote: | | Are TC and VistaSwitcher running elevated or not? |
Running everything as admin.
Roman _________________ Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um. |
|
| Back to top |
|
 |
Flint Power Member


Joined: 27 Oct 2003 Posts: 2867 Location: Moscow, Russia
|
Posted: Fri Dec 09, 2011 12:19 am Post subject: |
|
|
| Hacker wrote: | | Running everything as admin. |
Ah, that's the difference. I tested it once and there seemed to be no drag&drop breaking, but since it's not my usual configuration I did not investigate it more. _________________ Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, other stuff!
Using TC 8.01 / Win7 x64 SP1 |
|
| Back to top |
|
 |
Flint Power Member


Joined: 27 Oct 2003 Posts: 2867 Location: Moscow, Russia
|
Posted: Mon Jan 09, 2012 11:23 am Post subject: |
|
|
ghisler(Author)
I wrote to the author of VistaSwitcher, and he replied that it does not send WM_LBUTTONUP. He suggested that the reason might be that he calls AttachThreadInput to the active window's thread and then shows and focuses the VistaSwitcher window. He also wrote that the problem might lie in the TC's handler for Drag&Drop or WM_KILLFOCUS.
Could you please comment on this?
PS: I also experimented on another computer with Vista Business 32-bit, and there the problem is also reproduced (when TC is running non-elevated). _________________ Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, other stuff!
Using TC 8.01 / Win7 x64 SP1 |
|
| Back to top |
|
 |
ghisler(Author) Site Admin


Joined: 04 Feb 2003 Posts: 24602 Location: Switzerland
|
Posted: Wed Jan 11, 2012 5:58 am Post subject: |
|
|
Hmm, no idea... _________________ Author of Total Commander
http://www.ghisler.com |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|