Menu

Create hotkeys to minimize and open program window

Mike
2019-10-13
2019-11-05
  • Mike

    Mike - 2019-10-13

    Suggestion: enable global hotkeys to minimize to tray (in addition to
    ESC), and to activate the program's GUI.

     
  • Krzysztof Studnik

    I usually use Everything. Today I decided to give SwiftSearch a try.
    And I think the only thing I am missing here, is the customizable hotkey to toggle search window, or at least information that any exist.

     
    • Mike

      Mike - 2019-11-05

      AutoHotkey code to activate the search window is below. The image file is a screenshot of the tray icon tray icon.

      CoordMode, Pixel, Screen
      ImageSearch, x, y, 1, 1, % A_ScreenWidth, % A_ScreenHeight/2, swiftSearch.png ; Look for the tray icon
      If ErrorLevel ; Tray icon was not found
       SoundBeep, 400, 40
      Else ; Tray icon was found
      {
       MouseGetPos, xpos, ypos ; Get mouse position.
       CoordMode, Mouse, Screen
       x += 10
       y += 10
       Click %x%, %y% ; Click on the tray icon to activate the program
       MouseMove, %xpos%, %ypos% ; Move mouse back to its original position.
      }
      

      The ImageSearch command looks at the top half of the screen, as I have my taskbar at the top. Adjust the parameters as needed; could be something like the following.

      ImageSearch, x, y, 1, % A_ScreenHeight/2, % A_ScreenWidth, % A_ScreenHeight, swiftSearch.png
      
       

      Last edit: Mike 2019-11-05
  • Anonymous

    Anonymous - 2019-10-17

    My intention was that this could be on your taskbar, and the "hotkey" to view it would just be a key such as Win+4 (for example). To hide, you could press ESC. However, I'm not sure how useful this is, because the search results don't update in real-time, and getting them to do that is far from trivial. Therefore, I don't do that myself; I just close the program and open it again via Win+4.

    Have you tried this workflow? Does it not work for you? If it doesn't, could you elaborate on the issues you encounter so I can see if there's a better solution?

     

Anonymous
Anonymous

Add attachments
Cancel