国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發設計 > 正文

將字串傳入到Windows目前窗口Cursor所在位置

2019-11-18 18:17:01
字體:
來源:轉載
供稿:網友

網絡ID:wnhoo or sos_admin
網名:e夢緣
Mail:
wnhoo@163.com
風花雪月 e夢情緣

如下:

function GetSysFocus : integer;
Var
hOtherWin,OtherThreadID,hFocusWin : integer;
Begin
hOtherWin := GetForegroundWindow;
OtherThreadID := GetWindowThreadPRocessID( hOtherWin, nil);
If AttachThreadInput( GetCurrentThreadID, OtherThreadID, true ) Then
Begin
hFocusWin := GetFocus;
result := GetFocus;
AttachThreadInput( GetCurrentThreadID, OtherThreadID, False );
End
else
result := getFocus;
End;


procedure TForm1.Timer1Timer(Sender: TObject);
var
s:string;
begin
s:='test';
SendMessage(GetSysFocus, WM_SETTEXT,0,longint(PCHAR(S)));
end;


上一篇:Format的用法

下一篇:防止程序多次運行

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
學習交流
熱門圖片

新聞熱點

疑難解答

圖片精選

網友關注

主站蜘蛛池模板: 定兴县| 三穗县| 沾益县| 万盛区| 淮安市| 新安县| 闸北区| 江西省| 曲水县| 宜黄县| 锡林郭勒盟| 仙游县| 淮滨县| 台中县| 班玛县| 会东县| 武冈市| 酒泉市| 柘城县| 丹东市| 武陟县| 镇巴县| 上蔡县| 浦北县| 四平市| 房山区| 贺兰县| 镇坪县| 孝感市| 普兰县| 沂南县| 疏附县| 岳池县| 隆化县| 石首市| 荆门市| 辉南县| 邵武市| 巍山| 霍邱县| 镶黄旗|