How to move the mouse pointer position

VA Smalltalk is a "100% VisualAge compatible" IDE that includes the original VisualAge technology and the popular VA Assist and WidgetKit add-ons.

Moderators: Eric Clayberg, wembley, tc, Diane Engles, solveig

How to move the mouse pointer position

Postby PhotonDemon » Sun Apr 24, 2011 8:27 am

Does anyone know how to move the mouse pointer position? Windows specific is fine.

Lou
Louis LaBrunda
Keystone Software Corp.
SkypeMe callto://PhotonDemon
mailto:Lou@Keystone-Software.com http://www.Keystone-Software.com
PhotonDemon
[|]
 
Posts: 176
Joined: Thu Dec 20, 2007 1:45 pm

Re: How to move the mouse pointer position

Postby PhotonDemon » Sun Apr 24, 2011 8:44 am

Sorry for answering my own question but I found the answer just after making the post.

Code: Select all
OSCall new setCursorPos: 100 y: 150


Will move the mouse pointer 100 pixels right and 150 pixels down from the top left corner of the screen (not your window).

Lou
Louis LaBrunda
Keystone Software Corp.
SkypeMe callto://PhotonDemon
mailto:Lou@Keystone-Software.com http://www.Keystone-Software.com
PhotonDemon
[|]
 
Posts: 176
Joined: Thu Dec 20, 2007 1:45 pm


Return to VA Smalltalk 7.0, 7.5 & 8.0

Who is online

Users browsing this forum: No registered users and 1 guest

cron