技术报告 自编按键程序对祈福的控制
前几天看见有传说可以用按键精灵做祈福,这样可以5全
更离谱的说法是可以用秒表来计时
为了测试下这种说法的可能性
自己用VC++做了个定时程序
为了说明本文的可靠性特粘贴关键代码如下
不注释,懂行的自己明白
BOOL CJsqfjlDlg::PreTranslateMessage(MSG* pMsg)
{
// TODO: Add your specialized code here and/or call the base class
if( pMsg->message == WM_KEYUP)
{
UINT iKey = (UINT)pMsg->wParam;
if(iKey == VK_DOWN)
{
ptCursorPos_at = ptCursorPos;
m_str2.Format("捕获鼠标位置:(%d,%d)",ptCursorPos_at.x,ptCursorPos_at.y);
UpdateData(FALSE);
}
}
return CDialog::PreTranslateMessage(pMsg);
}
::SetCursorPos(ptCursorPos_at.x,ptCursorPos_at.y);
mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
mouse_event(MOUSEEVENTF_LEFTUP,0,0,0,0);
SetTimer(2,m_ms,NULL);
结果:
用两天时间测试了自己和朋友的号共计46角色次
发现并不存在一个严格的定时关系
结论:
金山可能有一个随机的类似阻尼系统存在
更离谱的说法是可以用秒表来计时
为了测试下这种说法的可能性
自己用VC++做了个定时程序
为了说明本文的可靠性特粘贴关键代码如下
不注释,懂行的自己明白
BOOL CJsqfjlDlg::PreTranslateMessage(MSG* pMsg)
{
// TODO: Add your specialized code here and/or call the base class
if( pMsg->message == WM_KEYUP)
{
UINT iKey = (UINT)pMsg->wParam;
if(iKey == VK_DOWN)
{
ptCursorPos_at = ptCursorPos;
m_str2.Format("捕获鼠标位置:(%d,%d)",ptCursorPos_at.x,ptCursorPos_at.y);
UpdateData(FALSE);
}
}
return CDialog::PreTranslateMessage(pMsg);
}
::SetCursorPos(ptCursorPos_at.x,ptCursorPos_at.y);
mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0);
mouse_event(MOUSEEVENTF_LEFTUP,0,0,0,0);
SetTimer(2,m_ms,NULL);
结果:
用两天时间测试了自己和朋友的号共计46角色次
发现并不存在一个严格的定时关系
结论:
金山可能有一个随机的类似阻尼系统存在