@
Torrente: Many thanks.. cool tool.
Q-Dir uses regular Windows controls and so can be automated with AHK.
Here is an example code to toggle the display of TreeView Pane:
Code:
#IfWinActive Q-Dir 3.03 ahk_class ATL:00409DB0
F3:: ; Toggle Display of TreeView Pane
ControlGet, hTV, Hwnd,, SysTreeView321, A
If DllCall( "IsWindowVisible", UInt, hTv )
SendMessage, 0x111, 32877,,, A ; No TreeView
Else
SendMessage, 0x111, 32875,,, A ; One TreeView for All
Return
#IfWinActive
For the other magic numbers, you may refer the
Menu Resource extracted with ResHacker:
Code:
128 MENU
LANGUAGE LANG_GERMAN, SUBLANG_GERMAN
{
POPUP "&File"
{
MENUITEM "&New (Cloning)\tStrg+N", 57600
MENUITEM "&Open...\tCtrl+O", 57601
MENUITEM "&Save\tCtrl+S", 57603
MENUITEM "Set at Desktop Item", 32820
MENUITEM "E&xport", 32816
MENUITEM "&Exit\tAlt+F4", 57665
MENUITEM SEPARATOR
}
POPUP "&Edit"
{
MENUITEM "for aktiv View", 32808, GRAYED
MENUITEM SEPARATOR
MENUITEM "Select A&ll\tCtrl+A", 57642
}
POPUP "&View"
{
MENUITEM "&Status Bar", 59393
MENUITEM "&Full Screen\tF11", 32859
}
POPUP "&Favorites"
{
MENUITEM "Add to Favorites...", 32919
MENUITEM "Organize Favorites...", 32779
MENUITEM "Folder", 32841
MENUITEM SEPARATOR
MENUITEM "In new Q-Dir with Ctrl", 32784, GRAYED
}
POPUP "E&xtras"
{
POPUP "Q-Dir always ..."
{
MENUITEM "Normal (the default)", 32945
MENUITEM "Maximized start", 32946
MENUITEM "With current window position", 32947
MENUITEM "Last window position", 32948
MENUITEM SEPARATOR
MENUITEM "now: ¢ered", 32949
MENUITEM "now: to the &left edge", 32950
MENUITEM "now: to the &right edge", 32951
MENUITEM SEPARATOR
MENUITEM "Classic Design", 32880
MENUITEM "Flat Design", 32881
}
POPUP "Starting as"
{
MENUITEM "Q-Dir", 32960
MENUITEM "3T-Dir", 32961
MENUITEM "3B-Dir", 32962
MENUITEM "2H-Dir", 32963
MENUITEM "2V-Dir", 32964
MENUITEM "4H-Dir", 32966
MENUITEM "4V-Dir", 32968
MENUITEM "3H-Dir", 32967
MENUITEM "3V-Dir", 32969
MENUITEM "Use last view", 32965
}
POPUP "Color && Columns"
{
MENUITEM "Use Color-Filter", 32802
MENUITEM "Save columns", 32803
MENUITEM "Full row select", 32805
MENUITEM "Show grid lines", 32806
}
POPUP "Tree-View"
{
MENUITEM "One 4 all", 32875
MENUITEM "All have one", 32876
MENUITEM SEPARATOR
MENUITEM "No use", 32877
}
MENUITEM SEPARATOR
POPUP "System"
{
MENUITEM "Show hiden files && folders", 32793
MENUITEM "Hide extensions for known file types", 32794
MENUITEM "Add Q-Dir to shell contextmenu", 32800
MENUITEM "Regiister (*.qdr) for Q-Dir", 33999
MENUITEM SEPARATOR
MENUITEM "... &more", 32798
}
POPUP "Network"
{
MENUITEM "Connect Drive", 32837
MENUITEM "Disconnect Drive", 32838
}
MENUITEM SEPARATOR
MENUITEM "... &more Options", 32804
}
POPUP "Info"
{
MENUITEM "&about Q-Dir...", 57664
MENUITEM "&License...", 32778
MENUITEM "&Help", 57670
MENUITEM SEPARATOR
MENUITEM "&DONATE", 32910
MENUITEM "More Freeware of Nenad Hrg", 32780
MENUITEM "Contact me", 32781
MENUITEM "Error report ", 32782
MENUITEM "Suggestion for improvements", 32783
MENUITEM SEPARATOR
MENUITEM "Recommend Q-Dir", 32817
MENUITEM "Send Q-Dir by e-mail", 32818
}
POPUP "X"
{
MENUITEM "Add your Fav. Search-Provider ", 32909
}
}
