Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Vista Explorer - Double left
#1
Double left click on a free area in SysListView32 to go up
in the directory tree.
Works also for SpeedCommander.

trigger:
##Lh1 //FF_dbl_left

FF_dbl_left
Code:
Copy      Help
;/
function# iid FILTER&f
str cla.getwinclass(win(mouse))    
str childclass.getwinclass(f.hwnd2)    
str win_exe.getwinexe(win());err
int+ _xm = xm
int+ _ym = ym

int+ lhwnd = f.hwnd
if(!f.hwnd2) ret -2
sel _s.getwinexe(f.hwnd) 1
,case "explorer"
,,if(GetWinId(f.hwnd2)=1)
,,,mac "left_explorer"
,,,,ret -1
,case "speedcommander"
,,if(GetWinId(f.hwnd2)=183)
,,,mac "left_speedcommander"
,,,
,,,,ret -1        
;
,case else ret -2 ;;default action in other programs
,,

left_explorer
Code:
Copy      Help
spe -1

Acc m=acc(mouse)
if (_s.getwinclass(child(m))!="SysListView32"); ret -1

str name=m.Name
if name.len=0
,key AU
,;'B
,;out "up"
else
,lef

,
,

left_speedcommander
Code:
Copy      Help
spe -1

Acc m=acc(mouse)
if (_s.getwinclass(child(m))!="SysListView32"); ret -1

str name=m.Name
if name.len=0
,'B
else
,lef

,
,

***
needs to be extented for file dialogs.
pi


Forum Jump:


Users browsing this thread: 3 Guest(s)