|
2006/7/16(Sun) 16:20:51|NO.1368
こんなもんでどうですか?(フォルダを開いて、アクティブな状態で'C'を押すと...)
#uselib "user32.dll"
#func GetForegroundWindow "GetForegroundWindow"
#func FindWindowExA "FindWindowExA" int,int,str,str
#func GetWindowLongA "GetWindowLongA" int,int
#func SetWindowLongA "SetWindowLongA" int,int,int
repeat -1
getkey tmp,'C'
if (tmp==1) : gosub *Change
await 25
loop
*Change
GetForegroundWindow
if (stat == 0) : end
hper = stat
FindWindowExA hper,0,"SHELLDLL_DefView",""
FindWindowExA stat,0,"DUIViewWndClassName",""
FindWindowExA stat,0,"DirectUIHWND",""
FindWindowExA stat,0,"CtrlNotifySink",""
FindWindowExA stat,0,"SysListView32","FolderView"
hview = stat
GetWindowLongA hview,-16
SetWindowLongA hview,-16,stat|$3
return
|