Sign in to follow this  
Followers 0
FadetoGrey

Make the mouse cursor scour over the entire window

14 posts in this topic

Is there a way to make your mouse cursor scour a window? From left to right, then start a new line, and left to right and so on. But really fast. In a window of something like 1280x1050. I know the really hard way of making code for it, and that is doing MouseMove, but I will have to do every single coordinate seperatly, and that'll take all week with 1280x1050. Is there a faster way?

Share this post


Link to post
Share on other sites



For $y = 0 to @DesktopHeight
For $x = 0 to @DesktopWidth
MouseMove ($x, $y)
next
next

??

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

you know of

@desktopheight

@desktopwidth

????

some implementation with math and junk...

EDIT

haha damnit mdiesel you beat me to it again :)

Edited by CodyBarrett

Share this post


Link to post
Share on other sites

Share this post


Link to post
Share on other sites

Is there a way to make your mouse cursor scour a window? From left to right, then start a new line, and left to right and so on. But really fast. In a window of something like 1280x1050. I know the really hard way of making code for it, and that is doing MouseMove, but I will have to do every single coordinate seperatly, and that'll take all week with 1280x1050. Is there a faster way?

Why you need it? Maybe use PixelGetColor()?

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

For $y = 0 to @DesktopHeight
For $x = 0 to @DesktopWidth
MouseMove ($x, $y)
next
next

??

That's good, however, I have some bad news... Could you make it so it will check if a pixel colour is on the screen every pixel the mouse goes over? More specifically the pixel colour 12330028. Thank you. Edited by FadetoGrey

Share this post


Link to post
Share on other sites

That's good, however, I have some bad news... Could you make it so it will check if a pixel colour is on the screen every pixel the mouse goes over? More specifically the pixel colour 12330028. Thank you.

err.. did you not see this?

Why you need it? Maybe use PixelGetColor()?

Share this post


Link to post
Share on other sites

err.. did you not see this?

I did.

Share this post


Link to post
Share on other sites

err.. did you not see this?

That's code for you do it.

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

That's code for you do it.

Actually - I did, but I don't see the reason for using PixelGetColour because if I work out what I want to do; I don't need it to give me the colour value of a pixel, I just need the mouse to go across every pixel and it will do a scan of all the pixels. If it can't find the pixel colour I'm looking for it will goto the next pixel etc., and as soon as a pixel colour (that I choose) appears then it will do something else.

Edited by FadetoGrey

Share this post


Link to post
Share on other sites

so you want to search for a pixel? Pixelsearch?

Share this post


Link to post
Share on other sites

#12 ·  Posted (edited)

so you want to search for a pixel? Pixelsearch?

Yes! Well done! It will PixelSearch all of the pixels every time the mouse goes onto a new pixel. Now you're getting the hang of it! :)

You deserve a cookie! :party:

Edited by FadetoGrey

Share this post


Link to post
Share on other sites

#13 ·  Posted (edited)

helpfile??? could have solved this from the beggining

edit..

Edited by CodyBarrett

Share this post


Link to post
Share on other sites

You deserve a cookie!

You deserve a good kicking, and a helpfile. :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0