for help: external lister and ahk

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
hughman
Junior Member
Junior Member
Posts: 12
Joined: 2005-03-23, 05:03 UTC

for help: external lister and ahk

Post by *hughman »

I have wrote a script with ahk to call the external version lister to view files from Open/Save dialogue and window explorer.
Lister can open all the files and all the setting in winwcm.ini such as font, backcolor can go into effect.However,it can't call the wlx plugin.
In fact, this case happens sometimes. the first day I wrote the sctipt, it works all fine. But afterward, it strikes.
I don't know why. Who can do me a favor?
PS: Is there a newer version lister.exe corresponding to TC7 available to download?

Code: Select all

;Open/Save Dialogue: View with Lister
#IfWinActive, ahk_class #32770
F3::
	MouseGetPos, , , , _curCNN, 1
	if (_curCNN="SysListView321")
	{
		ControlGet, _curFileName, List, Selected, SysListView321, A
		_curFileName = %_curFileName%
		Send, {AppsKey}r
		WinWaitActive, %_curFileName% property;
		ControlGetText, _curPath, Edit4, A
		Send, {Esc}
		Sleep, 200
		Run, %_TC_Path%\lister.exe /I=.\wincmd.ini "%_curPath%\%_curFileName%"
	}
Return
#IfWinActive

;Window Explorer: View with Lister
#IfWinActive, ahk_class CabinetWClass
F3::
	ControlGetText, _curPath, Edit1, A
	ControlGet, _curFileName, List, SELECTED, SysListView321, A
	Run, %_TC_Path%\lister.exe /I=.\wincmd.ini "%_curPath%\%_curFileName%"
	WinWait, ahk_class TLister
	WinSet, AlwaysOnTop, On
	Sleep, 5000
	WinSet, AlwaysOnTop, Off
Return
#IfWinActive
Post Reply