[CPP]View PlainCopy
- RECT Rtwindow;
- GetWindowRect (&rtwindow);
- //long x = 400;
- //long y = 200;
- long x = Rtwindow.left;
- long y = rtwindow.top;
- long cxwidth = Rtwindow.right-rtwindow.left;
- long cyheight = rtwindow.bottom-rtwindow.top;
- Const Long noffset = 9;
- Const Long sleep_interal = 60;
- For (long i=0; i<=2; ++i)
- {
- :: MoveWindow (M_hwnd, X+noffset, Y-noffset, Cxwidth, Cyheight, TRUE);
- :: Sleep (Sleep_interal);
- :: MoveWindow (M_hwnd, X-noffset, Y-noffset, Cxwidth, Cyheight, TRUE);
- :: Sleep (Sleep_interal);
- :: MoveWindow (M_hwnd, X-noffset, Y+noffset, Cxwidth, Cyheight, TRUE);
- :: Sleep (Sleep_interal);
- :: MoveWindow (M_hwnd, X+noffset, Y+noffset, Cxwidth, Cyheight, TRUE);
- :: Sleep (Sleep_interal);
- :: MoveWindow (M_hwnd, x, Y, Cxwidth, cyheight, TRUE);
- :: Sleep (Sleep_interal);
- }
Reference: http://www.rupeng.com/forum/thread-6423-1-1.html
http://blog.csdn.net/analogous_love/article/details/47979739
Simulates the QQ window Jitter effect (simulated via movewindow and sleep)