Hi all,
I open a folder using a shellexecute command, and that works great.
The next task is to close the same window. Most posts about similar issues point toward the SendMessage command and the processes work great on other windows, but not on the folder window. Code I am using is as follows
What am I missing?
Alan Arons
I open a folder using a shellexecute command, and that works great.
The next task is to close the same window. Most posts about similar issues point toward the SendMessage command and the processes work great on other windows, but not on the folder window. Code I am using is as follows
Code:
DECLARE INTEGER SendMessage IN Win32API ;
INTEGER hWnd, INTEGER uMsg, INTEGER wParam, ;
INTEGER lParam
DECLARE Long FindWindow in Win32API String, String
DECLARE Long BringWindowToTop in Win32API Long
Local lnHWND,lcTitle
lcTitle = "C:\temp" && The window title for the folder
lnHWND = FindWindow(null,m.lcTitle)
SendMessage(lnHWND,0x0010,0,0)
What am I missing?
Alan Arons