Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Is it possible to foce the mouse to move somewhere?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Andy




PostPosted: 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
Sponsor
sponsor
Mazer




PostPosted: 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




PostPosted: 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.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Homer_simpson




PostPosted: 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 Rolling Eyes ) cant even do that
Dan




PostPosted: 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




PostPosted: Fri May 30, 2003 7:52 am   Post subject: (No subject)

yeah but u cant hide the real cursor...
Andy




PostPosted: Fri May 30, 2003 8:13 am   Post subject: (No subject)

how?
Homer_simpson




PostPosted: 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
Tony




PostPosted: 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 Confused
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Homer_simpson




PostPosted: 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




PostPosted: Sat May 31, 2003 11:14 am   Post subject: (No subject)

but u still see the real mouse tho...
Tony




PostPosted: Sat May 31, 2003 1:09 pm   Post subject: (No subject)

yes, but if you click the real mouse, nothing happens 8)
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Andy




PostPosted: 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
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 13 Posts ]
Jump to:   


Style:  
Search: