6 个解决方案
#1
up
#2
为什么不使用 SendKeys "{Enter}" ?
够直接啊
够直接啊
#3
to wxy_xiaoyu(☆然也☆╭∩╮(︶︿︶)╭∩╮) :
我是发去非本地程序的窗口,
我用:SendMessage(parent_hwnd, WM_KEYDOWN, VK_RETURN, 0)
为何不成功?
我是发去非本地程序的窗口,
我用:SendMessage(parent_hwnd, WM_KEYDOWN, VK_RETURN, 0)
为何不成功?
#4
try
sendmessage( parent_hwnd, WM_KEYDOWN, 13, 13 )
sendmessage( parent_hwnd, WM_KEYDOWN, 10, 10 )
or
sendmessage( parent_hwnd, WM_CHAR, 13, 13 )
sendmessage( parent_hwnd, WM_CHAR, 10, 10 )
sendmessage( parent_hwnd, WM_KEYDOWN, 13, 13 )
sendmessage( parent_hwnd, WM_KEYDOWN, 10, 10 )
or
sendmessage( parent_hwnd, WM_CHAR, 13, 13 )
sendmessage( parent_hwnd, WM_CHAR, 10, 10 )
#5
i sure this can do it
sendmessage( parent_hwnd, WM_CHAR, 13, 0 )
sendmessage( parent_hwnd, WM_CHAR, 13, 0 )
#6
Call sendmessage( parent_hwnd, WM_CHAR, 13, ByVal 0&)
#1
up
#2
为什么不使用 SendKeys "{Enter}" ?
够直接啊
够直接啊
#3
to wxy_xiaoyu(☆然也☆╭∩╮(︶︿︶)╭∩╮) :
我是发去非本地程序的窗口,
我用:SendMessage(parent_hwnd, WM_KEYDOWN, VK_RETURN, 0)
为何不成功?
我是发去非本地程序的窗口,
我用:SendMessage(parent_hwnd, WM_KEYDOWN, VK_RETURN, 0)
为何不成功?
#4
try
sendmessage( parent_hwnd, WM_KEYDOWN, 13, 13 )
sendmessage( parent_hwnd, WM_KEYDOWN, 10, 10 )
or
sendmessage( parent_hwnd, WM_CHAR, 13, 13 )
sendmessage( parent_hwnd, WM_CHAR, 10, 10 )
sendmessage( parent_hwnd, WM_KEYDOWN, 13, 13 )
sendmessage( parent_hwnd, WM_KEYDOWN, 10, 10 )
or
sendmessage( parent_hwnd, WM_CHAR, 13, 13 )
sendmessage( parent_hwnd, WM_CHAR, 10, 10 )
#5
i sure this can do it
sendmessage( parent_hwnd, WM_CHAR, 13, 0 )
sendmessage( parent_hwnd, WM_CHAR, 13, 0 )
#6
Call sendmessage( parent_hwnd, WM_CHAR, 13, ByVal 0&)