0 GP
SendMessage 指定視窗
作者:Red月│2018-06-18 08:28:04│巴幣:0│人氣:167
- 1. API函數
- [DllImport("user32.dll", EntryPoint = "FindWindow", SetLastError = true)]
- public static extern IntPtr FindWindow(IntPtr ZeroOnly, string ipWindowName);
- [DllImport("user32.dll", EntryPoint = "SendMessage")]
- private static extern int SendMessage(IntPtr hwnd, int wMsg, int wParam, int lParam);
- 2.視窗名
- IntPtr _potint = FindWindow(new IntPtr(0), "98");
- //SendMessage(_potint, 0x0104, 0x71, 0);//按下F1
- //SendMessage(_potint, 0x0105, 0x71, 0);//放開F1
引用網址:https://home.gamer.com.tw/TrackBack.php?sn=4027344
All rights reserved. 版權所有,保留一切權利
相關創作
留言共 0 篇留言
我要留言提醒:您尚未登入,請先
登入再留言
0喜歡★adj0918 可決定是否刪除您的留言,請勿發表違反站規文字。
前一篇:Mysql php...