디자이너 비활성 핫키 업뎃후 미작동
페이지 정보
본문
using System.Runtime.InteropServices;
[DllImport("user32.dll")]
private static extern int RegisterHotKey(int hWnd, int id, int fsModifiers, int vk);
[DllImport("user32.dll")]
private static extern int UnRegisterHotKey(int hWnd, int id);
protected override void WndProc(ref Message m)
{
if (m.Msg == (int)0x312)
{
if(m.WParam == (IntPtr)0x1)
{
}
}
base.WndProc(ref m);
}
private void Form1_Load(object sender, EventArgs e)
{
RegisterHotKey((int)this.Handle, 1, 0x1, (int)Keys.);
}
private void Form1_FormClosing(object sender, FormClosingEventArgs e)
{
UnRegisterHotKey((int)this.Handle, 1);
}
딜 임포트해서 사용중이었는데 패치하고 먹질 않습니당..
- 이전글비활성 hid 신호가 가능한가요? 20.07.20
- 다음글재생버튼 비활성 및 텔레그램 연동 재질문 20.06.15
댓글목록
![profile_image](http://ngmsoftware.com/data/member_image/ad/admin.gif)
![profile_image](http://ngmsoftware.com/data/member_image/ad/admin.gif)
![profile_image](http://ngmsoftware.com/img/no_profile.gif)
![profile_image](http://ngmsoftware.com/img/no_profile.gif)