Need help in Mouse Controls

Deploying to Windows? Utilizing VB Script execution? This is the place to ask Windows-specific questions.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Seraphim
Posts: 1
Joined: Thu Aug 26, 2010 6:22 pm

Need help in Mouse Controls

Post by Seraphim » Thu Aug 26, 2010 6:31 pm

Hey I'm Still new to RevTalk But Iwanted to make a Fun Desktop Application but first I needsome help I need to order the mouse to follow specific pixel color on the desktop like for example the screen wallpapers is compsed of 100 colors i want the mouse to stay on a designated color and not move and reposition the instant the mouse is moved though i need a handle to turn in on and off anykind of help would be nice
Thanks to all :D

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Need help in Mouse Controls

Post by Mark » Wed Sep 01, 2010 6:28 am

Seraphim,

The lack of punctuation makes it rather difficult to read your question.

Can you tell a little more about the purpose of your project? My first thought is that you can check the mouseColor after the mouse moves and can move the mouse back if the color is wrong. However, this is very unelegant and probably slow.

If this is supposed to work with multiple monitors, then you probably will want to search for a different development platform. It won't work.

Do you realise that photos may contain 16777216 different colours? That's a tad more than the 100 colours mentioned by you. You will probably want to write an algorithm to determine if the mouseColor is within a range of colours,e.g. 5±5,5±5,250±5 for blue.

Best regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Post Reply