Jump to content

Recommended Posts

Posted

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?

Posted

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.

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
×
×
  • Create New...