Sign in to follow this  
Followers 0
tdniaiubam

Dividing a picture into a grid

8 posts in this topic

Hi guys,

I need some help in dividing a picture into a grid of about 100 x 100 but im not actually sure how to do it using autoit, i dont want the picture to be seperated i just need a grid to be drawn onto the picture.

I'll be using it to help my program be used on different resolution windows/screens e.g.

$size = WinGetClientSize("")

$2x = $size[0] / 2
$2y = $size[1] / 2

mousemove($2x,$2y,0)

Instead of the static version:

mousemove(640,512,0)

If anyone knows any other way of making positions on the screen more dynamic so it would suit any resolution it would be appriciated, thanks.

Also, is there anyway of keeping the window title and border out of the WinGetClientSize figures?

Share this post


Link to post
Share on other sites



Above? You mean on-top, like a layer?

Share this post


Link to post
Share on other sites

Above? You mean on-top, like a layer?

AutoIt has a Z-Index when drawing controls. Just place the labels above the picture control. You can create the grid dynamically, just search for grid. No doubt you will find a few methods.

Share this post


Link to post
Share on other sites

Right i think i get what you mean, draw labels onto the picture, each label would be a cell in the grid?

Share this post


Link to post
Share on other sites

Good idea thanks! Time to do some reading :D

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