Let's Make Things Better

C++ – Move cursor position (windows)

#include "stdafx.h"
#include "Windows.h" 

int main()
{
	for(int i=1 ; i<200 ; i++)
	{ 
		SetCursorPos(200/i, 200*i);
		Sleep(500);
	}
	
	return 0;
}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.