Focus on current clover explorer ?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
mithrilsaber
Posts: 10
Joined: 12 Nov 2017, 21:19

Focus on current clover explorer ?

12 Dec 2017, 20:58

I have asked a question about this,

https://autohotkey.com/boards/viewtopic ... 93#p182593

After sometime, I found below code only worked in one tab (maybe the first open tab ?? )

Code: Select all

#IfWinExist ahk_exe Clover.exe
#Space::
    WinActivate
    ControlFocus, DirectUIHWND3, A
    return
#IfWinExist
clover is : http://ejie.me/ , add chrome like tab to windows explorer.

--------------------------

I use a test code to show the problem:

Code: Select all

#IfWinExist ahk_exe Clover.exe
#Space::
    WinActivate

    WinActivate "ahk_exe explorer.exe"

    ControlFocus, DirectUIHWND3, A

    ;; print focus
    ControlGetFocus, DirectUIHWND3, A
    if ErrorLevel
        MsgBox, The target window doesn't exist or none of its controls has input focus.
    else
        MsgBox, Control with focus = %OutputVar%
        
    ;; select first
    SendInput, {Space}
Return
#IfWinExist

this tab can be focused
Image

this tab can't
Image




How do I solve this problem ?
mithrilsaber
Posts: 10
Joined: 12 Nov 2017, 21:19

Re: Focus on current clover explorer ?

27 Dec 2017, 21:29

Can anyone point out what is the problem ?? I need a tip.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Lamron750, songdg and 265 guests