Jump to content
Sign in to follow this  

Dividing a picture into a grid

Recommended Posts

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


Instead of the static version:


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?

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

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...