退伍後…無聊測試一下忘了多少練習用XD
原本以為效果應該很差,沒想到初版就能接近100萬分了…
目前最高紀錄測到160萬分…開2個加成 時間跟*2
1
退伍後…無聊測試一下忘了多少練習用XD
原本以為效果應該很差,沒想到初版就能接近100萬分了…
目前最高紀錄測到160萬分…開2個加成 時間跟*2
1
/// <param name="hwnd">handle of destination window</param>
/// <param name="wMsg">message to post</param>
/// <param name="wParam">first message parameter</param>
/// <param name="lParam">second message parameter</param>
const string Dowm = 0x100;
const string Up = 0x101
[DllImport("user32.dll", EntryPoint = "SendMessageA")]
static extern int SendMessage(IntPtr hwnd, int wMsg, IntPtr wParam, IntPtr lParam);
[DllImport("User32.dll")]
static extern bool PostMessage(IntPtr hwnd, int wMsg, IntPtr wParam, IntPtr lParam);
SendMessage用在你需要馬上知道這個Message處理的結果
PostMessage只是把訊息丟入Message Queue會在下次進入訊息迴圈時才處理
C# 使用WIN32API須先引入
http://msdn.microsoft.com/zh-tw/library/ms171548.aspx
using System.Runtime.InteropServices;
在主程式加入API函數