GetExePath 得到窗口程序路径 |
|
得到指定窗口所属的程序路径 |
|
参数1 整数型,窗口句柄 |
|
字符串型,程序全路径 |
|
Call RunApp("notepad.exe") Delay 1500 //下面这句是得到当前最前面的窗口句柄 Hwnd = Plugin.Window.Foreground() //下面这句是得到指定窗口所属的程序路径 spath=Plugin.Window.GetExePath(hwnd) MessageBox "记事本的路径是:" & spath |
|
VBSCall RunApp("notepad.exe") Delay 1000 //下面这句是得到当前最前面的窗口句柄 Plugin Hwnd = Window.Foreground() //下面这句是得到指定窗口所属的程序路径 Plugin spath=Window.GetExePath(hwnd) MessageBox "记事本的路径是:" & spath |