tdniaiubam Posted January 29, 2008 Share Posted January 29, 2008 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 More sharing options...
tdniaiubam Posted January 30, 2008 Author Share Posted January 30, 2008 bump Link to comment Share on other sites More sharing options...
BrettF Posted January 30, 2008 Share Posted January 30, 2008 Create labels ABOVE the picture? Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
tdniaiubam Posted January 30, 2008 Author Share Posted January 30, 2008 Above? You mean on-top, like a layer? Link to comment Share on other sites More sharing options...
BrettF Posted January 30, 2008 Share Posted January 30, 2008 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. Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
tdniaiubam Posted January 30, 2008 Author Share Posted January 30, 2008 Right i think i get what you mean, draw labels onto the picture, each label would be a cell in the grid? Link to comment Share on other sites More sharing options...
BrettF Posted January 30, 2008 Share Posted January 30, 2008 Right i think i get what you mean, draw labels onto the picture, each label would be a cell in the grid?Got it! Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
tdniaiubam Posted January 30, 2008 Author Share Posted January 30, 2008 Good idea thanks! Time to do some reading Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now