Author |
Message |
Andy
|
Posted: 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 |
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
Mazer

|
Posted: Thu May 29, 2003 7:44 am Post subject: (No 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. |
|
|
|
|
 |
Tony

|
Posted: Thu May 29, 2003 9:49 am Post subject: (No subject) |
|
|
you need to access window's API for that... you'd need to use C++ or VB, not possible in turing. |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
 |
Homer_simpson

|
Posted: Thu May 29, 2003 2:00 pm Post subject: (No subject) |
|
|
bwahahahahrrrrr... turing sux...
i did that using turbo pascal(a program so very old) but turing(the new program ) cant even do that |
|
|
|
|
 |
Dan

|
Posted: Thu May 29, 2003 10:21 pm Post subject: (No 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. |
Computer Science Canada
Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more! |
|
|
|
 |
Homer_simpson

|
Posted: Fri May 30, 2003 7:52 am Post subject: (No subject) |
|
|
yeah but u cant hide the real cursor... |
|
|
|
|
 |
Andy
|
Posted: Fri May 30, 2003 8:13 am Post subject: (No subject) |
|
|
how? |
|
|
|
|
 |
Homer_simpson

|
Posted: Fri May 30, 2003 4:00 pm Post subject: (No 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
|
|
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
Tony

|
Posted: Fri May 30, 2003 7:54 pm Post subject: (No 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  |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
 |
Homer_simpson

|
Posted: Fri May 30, 2003 11:04 pm Post subject: (No 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 |
|
|
|
|
 |
Andy
|
Posted: Sat May 31, 2003 11:14 am Post subject: (No subject) |
|
|
but u still see the real mouse tho... |
|
|
|
|
 |
Tony

|
|
|
|
 |
Andy
|
Posted: Sun Jun 01, 2003 2:39 pm Post subject: (No subject) |
|
|
true, but i don't want the user to be able to see the cusor |
|
|
|
|
 |
|