Jump to content

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

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?

Link to comment
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.
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...