1st buglet discovered

Discussion & Support for xplorer² professional

Moderators: fgagnon, nikos, Site Mods

Post Reply
User avatar
nikos
Site Admin
Site Admin
Posts: 15771
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

1st buglet discovered

Post by nikos »

peek preview for pics has a bug, it won't show big pictures, cropping them to nPeekTextWidth pixels (a registry setting meant for text files). Sorry about that, I did a last minute change that backfired

I'm sure there are many small glitches like this left, despite the efforts of beta testing team, but no worries, just keep reporting them and there will be a 5001 build in the near future
astewart
Member
Member
Posts: 36
Joined: 2011 May 12, 00:20

Re: 1st buglet discovered

Post by astewart »

A peek preview nano-bug: the peek display can be dismissed with "any" key, but if that key is alt-F4, then alt-Q is no longer responsive. I have an Autohotkey script that quickly closes any window under the mouse using xbutton2 to raise the window and send alt-F4. I reflexively use it everywhere and have to restart Xplorer² to get alt-Q working again when I do that to a peek.

Alan
Gandolf
Gold Member
Gold Member
Posts: 466
Joined: 2004 Jun 12, 10:47

Re: 1st buglet discovered

Post by Gandolf »

Nice one!

View > Peek preview doesn't work either.
User avatar
nikos
Site Admin
Site Admin
Posts: 15771
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Re: 1st buglet discovered

Post by nikos »

astewart wrote: 2021 Mar 04, 01:41 A peek preview nano-bug: the peek display can be dismissed with "any" key, but if that key is alt-F4, then alt-Q is no longer responsive.
queer! alt+F4 destroys the window behind xplorer2's back. I'll add a test for this

@Gandolf keep in mind that peek preview doesn't work for all file types, just pics and text "documents"
Gandolf
Gold Member
Gold Member
Posts: 466
Joined: 2004 Jun 12, 10:47

Re: 1st buglet discovered

Post by Gandolf »

nikos wrote: 2021 Mar 04, 06:42 @Gandolf keep in mind that peek preview doesn't work for all file types, just pics and text "documents"
I know that, it's one of the reasons I don't see much point in it.

However, do this:
Focus a jpg file
View > Peek preview - image is previewed
Alt+F4 - Peek preview closes
View > Peek preview - NO PEEK PREVIEW

The point I was making was that it's not only Alt+Q that stops working, it's Peek preview that stops working, regardless of how it's enabled.

I've also realised that the Peek preview is on top of any window - Alt+TAB to another application and Peek preview is on top of it. I dislike Peek preview more and more! Sorry Nikos but I think it's the first time in x² (or 2X) that you've done something that I can see no point in. My moan for this year!!
User avatar
nikos
Site Admin
Site Admin
Posts: 15771
Joined: 2002 Feb 07, 15:57
Location: UK
Contact:

Re: 1st buglet discovered

Post by nikos »

ok that's the same "bug" reported by astewart, it will be fixed
the good news is that peek preview isn't compulsory, like covid vaccination, so you don't have to worry about it :)
astewart
Member
Member
Posts: 36
Joined: 2011 May 12, 00:20

Re: 1st buglet discovered

Post by astewart »

nikos wrote: 2021 Mar 04, 08:03 ... "bug" reported by astewart, it will be fixed
... peek preview isn't compulsory, like covid vaccination, so you don't have to worry about it :)
Yay, after a decade of radio silence, I have a bug kill. I have already vaccinated myself against this viral bug with an Autohotkey exception for the WTL_QuickView class window.

Autohotkey and Xplorer² are like my extra right and left hands...

Alan
pj
Gold Member
Gold Member
Posts: 471
Joined: 2006 Jan 26, 14:01
Location: Florida

Re: 1st buglet discovered

Post by pj »

astewart wrote: 2021 Mar 04, 18:17 ...

Yay, after a decade of radio silence, I have a bug kill. I have already vaccinated myself against this viral bug with an Autohotkey exception for the WTL_QuickView class window.

Autohotkey and Xplorer² are like my extra right and left hands...

Alan
Hello Alan,

As a neo-AHK user, can you please post the code you use with AHK to silence the Quickview window?

----------------
PJ in FL
astewart
Member
Member
Posts: 36
Joined: 2011 May 12, 00:20

Re: 1st buglet discovered

Post by astewart »

pj wrote: 2021 Mar 08, 14:30 As a neo-AHK user, can you please post the code you use with AHK to silence the Quickview window?
--------------
PJ in FL
This is a portion of a larger script that uses XButton1 to close or minimize any window under the mouse as appropriate. For a hand full of programs, I want minimize, and for some others alt-F4 doesn't close well. However, the default is alt-F4. Without a case for QuickView,the default blew it up. The correct case is simply "Click" and the preceeding "WinActivate" does nothing. This code is specific to my uses and includes a tooltip to verify what's about to close.

Code: Select all

; fast close / minimize window under the mouse cursor
XButton1::
    CoordMode, Mouse
    CoordMode, ToolTip
    While (GetKeyState("XButton1", "P"))
    {
      sleep 10  ; less flicker
      MouseGetPos, mx, my, NextID
      If (!NextID)
      {
        CursorID := 0
        tt := "▶"
        ToolTip, % tt, mx+20, my+(my>20?-20:20)
        continue
      }
      WinGetClass, CursorClass, ahk_id %NextID%
      If (CursorClass = "tooltips_class32")     ; mouse overran tooltip
      {
        ToolTip, % tt, mx+20, my+(my>20?-20:20) ; move last tt
        continue
      }
      If (CursorClass = "Progman" || CursorClass = "Shell_TrayWnd")   ; desktop or tray
      {
        CursorID := 0
        tt := "▶◀"
        ToolTip, % tt, mx+20, my+(my>20?-20:20)
        continue
      }
      CursorID := NextID
      WinGet, CursorName, ProcessName, ahk_id %CursorID%
      WinGet, CursorPID, PID, ahk_id %CursorID%
      tt := "▼▼ " CursorName " " CursorPID
      ToolTip, % tt, mx+20, % my+(my>20?-20:20)
    }
    ToolTip
    If (!CursorID)
      return
    WinActivate, ahk_id %CursorID%
    WinWaitActive, ahk_id %CursorID%,, 2        ; maybe slow activation
    If ErrorLevel
      return
    IfWinActive, ahk_class ATL:ExplorerFrame    ; xplorer²
    {
      PostMessage, 0x112, 0xF020                ; min to tray
      ; 0x112, 0xF020 -> WM_SYSCOMMAND, SC_MINIMIZE
      return
    }
    IfWinActive, ahk_class ATL:ScrapFrame       ; xplorer² scrap pane
    {
      SendInput !{F4}                           ; close
      return
    }
    IfWinActive, ahk_class WTL_QuickView        ; xplorer² peek
    {
      Click                                     ; dismiss
      return
    }
    IfWinActive, ahk_class ATL:DeskRule         ; deskrule
    {
      SendInput !x                              ; close
      return
    }
    IfWinActive, ahk_exe palemoon.exe           ; Pale Moon
    {
      WinGetTitle, title
      If RegExMatch(title, "(Pale Moon|Portable)( \(Private Browsing\))?$")
        PostMessage, 0x112, 0xF020              ; min to tray
      Else
        SendInput !{F4}                         ; close Library, Page Info, etc
      return
    }
    IfWinActive, ahk_exe msedge.exe             ; Edge
    {
      PostMessage, 0x112, 0xF020                ; min to tray
      return
    }
    IfWinActive, ahk_exe basilisk.exe           ; Basilisk
    {
      PostMessage, 0x112, 0xF020                ; min to tray
      return
    }
    IfWinActive, ahk_exe thunderbird.exe        ; Thunderbird
    {
      WinGetTitle, title
      If RegExMatch(title, "Mozilla Thunderbird$")
        PostMessage, 0x112, 0xF020              ; min to tray
      Else
        SendInput !{F4}                         ; close Address Book, Write:, etc
      return
    }
    IfWinActive, ahk_exe i_view32.exe           ; Irfan
    {
      SendInput {Escape}                        ; exit
      return
    }
    IfWinActive, ahk_exe notepad\+\+.exe        ; Notepad++
    {
        SendInput !{F4}
        return
        ; alternative controlled shutdown
        SendInput {Esc}+^w                      ; Escape any search, Close All files
        Loop
        {
            Sleep 500
            If (WinExist("^Save ahk_exe notepad\+\+.exe"))  ; Save or Save As dialog
            {
                Loop {
                } Until !WinExist("^Save ahk_exe notepad\+\+.exe")
            }
            Else
                break
        }
        SendInput !{F4}                         ; exit
        return
    }
    ; default
    SendInput !{F4}                             ; exit
    return

The xplorer² portion is

Code: Select all

    IfWinActive, ahk_class ATL:ExplorerFrame    ; xplorer²
    {
      PostMessage, 0x112, 0xF020                ; min to tray
      ; 0x112, 0xF020 -> WM_SYSCOMMAND, SC_MINIMIZE
      return
    }
    IfWinActive, ahk_class ATL:ScrapFrame       ; xplorer² scrap pane
    {
      SendInput !{F4}                           ; close
      return
    }
    IfWinActive, ahk_class WTL_QuickView        ; xplorer² peek
    {
      Click                                     ; dismiss
      return
    }
Alan
pj
Gold Member
Gold Member
Posts: 471
Joined: 2006 Jan 26, 14:01
Location: Florida

Re: 1st buglet discovered

Post by pj »

astewart wrote: 2021 Mar 08, 18:39
pj wrote: 2021 Mar 08, 14:30 As a neo-AHK user, can you please post the code you use with AHK to silence the Quickview window?
--------------
PJ in FL
This is a portion of a larger script that uses XButton1 to close or minimize any window under the mouse as appropriate. For a hand full of programs, I want minimize, and for some others alt-F4 doesn't close well. However, the default is alt-F4. Without a case for QuickView,the default blew it up. The correct case is simply "Click" and the preceeding "WinActivate" does nothing. This code is specific to my uses and includes a tooltip to verify what's about to close.
...
Alan
Alan,

That's quite interesting!

Thank you for sharing this work with us.

-----------------
PJ in FL
Post Reply