(AGK version: 2.0.10)
Submitted: 2015-01-22 11:47:20
// Project Example: SetRawMousePosition()
// Created: 2015-01-22

Setvirtualresolution(640,480)
ResetTimer()

// The current mouse position is read
// then postitioned 10 pixels to the right
// then to the left and back to original
// position. [Windows]

Repeat
    Xpos=GetRawMouseX()
    Ypos=GetRawMouseY()
	
    SetRawMousePosition(Xpos+10,Ypos)
    Sync()
    SetRawMousePosition(Xpos-10,Ypos)
    Sync()
    SetRawMousePosition(Xpos,Ypos)
    Sync()
	
Until Timer()>15
End
Help make AGK better by submitting an example for this command!
(All examples are subject to approval)
Login to post an example of your own.