Does Everything supports ControlSend from AutoHotKey?

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
vsub
Posts: 432
Joined: Sat Nov 12, 2011 11:51 am

Does Everything supports ControlSend from AutoHotKey?

Post by vsub »

I am trying to go up and down in the result list while the everything window is not active but when I use ControlSend,either nothing happens or Everything accept it as if I trying to jump to a word that contains Down or Up

Nothing
ControlSend,SysListView321,{Down},ahk_exe Everything.exe


Accept it as text
ControlSend,SysListView321,Down,ahk_exe Everything.exe
void
Developer
Posts: 15096
Joined: Fri Oct 16, 2009 11:31 pm

Re: Does Everything supports ControlSend from AutoHotKey?

Post by void »

I will make ControlSend work for the next alpha update.

For now, to send result list down, please try:
SendMessage, 0x111, 41018,,, ahk_class EVERYTHING

For now, to send result list up, please try:
SendMessage, 0x111, 41019,,, ahk_class EVERYTHING


You can find all the commands in the SDK -> ipc/everything_ipc.h.
vsub
Posts: 432
Joined: Sat Nov 12, 2011 11:51 am

Re: Does Everything supports ControlSend from AutoHotKey?

Post by vsub »

Thanks
vsub
Posts: 432
Joined: Sat Nov 12, 2011 11:51 am

Re: Does Everything supports ControlSend from AutoHotKey?

Post by vsub »

Btw maybe I found a bug

Here is an example

Code: Select all

#IfWinActive,AHK_class WorkerW ; when the desktop is active
~Down::
~Up::
Keywait,% Substr(A_ThisHotkey,2)
DetectHiddenWindows,on
IfInstring,A_ThisHotkey,Down
SendMessage, 0x111, 41018,,, ahk_class EVERYTHING
Else
SendMessage, 0x111, 41019,,, ahk_class EVERYTHING
StatusBarGetText,File,1,ahk_class EVERYTHING
Tooltip,% File
Return
When the window is visible but not active,it works file
When the window is minimized or hidden(hide on close),up and down are acting as if I am pressing Home and End
void
Developer
Posts: 15096
Joined: Fri Oct 16, 2009 11:31 pm

Re: Does Everything supports ControlSend from AutoHotKey?

Post by void »

Everything thinks the focus is coming from the search edit.

Try setting the result list as the focus before sending 41018 or 41019:

SendMessage, 0x111, 41010,,, ahk_class EVERYTHING
SendMessage, 0x111, 41018,,, ahk_class EVERYTHING

-or-

SendMessage, 0x111, 41010,,, ahk_class EVERYTHING
SendMessage, 0x111, 41019,,, ahk_class EVERYTHING



Everything 1.5 alpha has the following commands:

Previous item:
SendMessage, 0x111, 41106,,, ahk_class EVERYTHING

Next item:
SendMessage, 0x111, 41107,,, ahk_class EVERYTHING
void
Developer
Posts: 15096
Joined: Fri Oct 16, 2009 11:31 pm

Re: Does Everything supports ControlSend from AutoHotKey?

Post by void »

Everything 1.5.0.1262a fixes an issue with Everything not handling keydown messages sent externally.

The following should now work:
ControlSend,SysListView321,{Down},ahk_exe Everything.exe
Post Reply