WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Desktop

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

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
File Created: 2001:03:01:14:57:30
Last Updated: 2001:03:01:14:57:30