Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


How to Launch an Item on the Desktop

Keywords: 	  run desktop item

Question:

Do you have sample code showing how to run an item on the desktop?

Answer:

Here's code to do it:
	AddExtender("wwctl34I.dll")

	hwndex = DLLhwnd("Program Manager")
	hwnd = cwndbyclass(hwndex,"SHELLDLL_DefView")
	hwnd = cwndbyclass(hwnd,"SysListView32")
	wintext = cgetlvtext(hwnd)
	xselect = AskItemList("Choose A Icon To Run", wintext, @TAB, @unsorted, @single)
	num = ItemLocate (xselect, wintext, @TAB)
	cDblClickItem (hwnd, num) 


Article ID:   W13183
Filename:   Run an Item on the Desktop.txt