Computer Science Canada

Is it possible to foce the mouse to move somewhere?

Author:  Andy [ Thu May 29, 2003 7:13 am ]
Post subject:  Is it possible to foce the mouse to move somewhere?

I dun know if turing is capable, but can you force the cursor to be between an area or force it to go to a location? thanx

Author:  Mazer [ Thu May 29, 2003 7:44 am ]
Post subject: 

i'm fairly certain that there isn't. sorry, but that's turing for ya. but what exactly are you trying to do, there may be another way to accomplish it.

Author:  Tony [ Thu May 29, 2003 9:49 am ]
Post subject: 

you need to access window's API for that... you'd need to use C++ or VB, not possible in turing.

Author:  Homer_simpson [ Thu May 29, 2003 2:00 pm ]
Post subject: 

bwahahahahrrrrr... turing sux...
i did that using turbo pascal(a program so very old) but turing(the new program Rolling Eyes ) cant even do that

Author:  Dan [ Thu May 29, 2003 10:21 pm ]
Post subject: 

if you where to make the corser in turing and put it a mouse x and y then you may be able to make it look like you made the mouse move.

Author:  Homer_simpson [ Fri May 30, 2003 7:52 am ]
Post subject: 

yeah but u cant hide the real cursor...

Author:  Andy [ Fri May 30, 2003 8:13 am ]
Post subject: 

how?

Author:  Homer_simpson [ Fri May 30, 2003 4:00 pm ]
Post subject: 

like this i guess =/
code:
var mx, my, mb : int
View.Set ("offscreenonly")
View.Set ("graphics:1000,1000")
loop
    mousewhere (mx, my, mb)
    drawfilloval (round (mx * 1.5), round (my * 1.5), 5, 5, 12)
    View.Update
    delay (100)
    cls
end loop

Author:  Tony [ Fri May 30, 2003 7:54 pm ]
Post subject: 

you're better off adding numbers rether then multiplying... so its not relative.

@ X =100, newX = 150, but when X=1, newX = 1.5

big difference Confused

Author:  Homer_simpson [ Fri May 30, 2003 11:04 pm ]
Post subject: 

well he gets the idea.. all he's gotto do is to change the value of phoney mouse coords according to real mouse coords

Author:  Andy [ Sat May 31, 2003 11:14 am ]
Post subject: 

but u still see the real mouse tho...

Author:  Tony [ Sat May 31, 2003 1:09 pm ]
Post subject: 

yes, but if you click the real mouse, nothing happens 8)

Author:  Andy [ Sun Jun 01, 2003 2:39 pm ]
Post subject: 

true, but i don't want the user to be able to see the cusor


: