Webcreation Posted September 15, 2014 Share Posted September 15, 2014 Alright, so here i am 3-4 days after starting to learn autoit, and i find it a great tool to be used in database management. I greatly apriciate all the effort , especialy that which autoit gives! So my problem: My idea is to create some kind of map (and create it so that it can memorise this map)? It would be like a chessboard, Every group of coordinates would be in a block right? So we will have for example A1(block A1) A2,A3, but also B2, B3, or C. So then i would like the program to react on it, for example i want to go from block A2 to- B4. In order to do this it will do func() (am i wrong on this, should i put something else instead). Important to know? There will be a point on screen which will always be the point that moves to the blocks, but its position would still stay the same on the screen. So im sorry im a nub coming here for help with so little to give in return, in example a piece of code as a start. I know a lil bit of autoit, getting more into it and would like to know ANY way in how to get CLOSER to knowing WHAT TO DO! Link to comment Share on other sites More sharing options...
JohnOne Posted September 15, 2014 Share Posted September 15, 2014 You put a lot of time and effort into writing that post, so it's only fair that I do the same in a reply. But I can't think of anything else to say, except for padding the post out a bit. I could tell you the story about when my nana got a jelly fish stuck to her face, or the time I thought I was dreaming, but it turned out I really was in class without my pants on, but that would be more padding out of the post. Tell us your endgame, because your description could mean anything. MikahS, 232showtime and Xandy 3 AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Webcreation Posted September 15, 2014 Author Share Posted September 15, 2014 in order to go from C1 to A4 it would need to do a function ( and it will go through blocks on its way) A1 A2 A3 A4 B1 B2 B3 B4 C1 C2 C3 C4 So for example i like to make a script that would do: Start A1 then do func recdata() endfunc Go B2 (how?) then do func Input() endfunc Go... etc Hope i would be more understandable! Thanks Link to comment Share on other sites More sharing options...
JohnOne Posted September 15, 2014 Share Posted September 15, 2014 Are you making a chess game? in order for what to go from C1 to A4? AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Webcreation Posted September 15, 2014 Author Share Posted September 15, 2014 Not chess but checkers actually, but a simple version that any one should be able to code Link to comment Share on other sites More sharing options...
JohnOne Posted September 15, 2014 Share Posted September 15, 2014 You are talking about drawing to the screen, I do not believe the is any simple beginners way of doing that. You want to be looking at the _GDIPlus_* functions in the help file really. Unless of course you create some sort of board on a gui using labels and colour the labels to represent the pieces of each player etc... to get yourself started. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Webcreation Posted September 16, 2014 Author Share Posted September 16, 2014 Thanks i will, if any one else have a simple suggestion.All is apriciated Link to comment Share on other sites More sharing options...
Webcreation Posted September 16, 2014 Author Share Posted September 16, 2014 So i basicly want a map from a .bmp to bitmap? but i dont know if i am tottaly wrong on the bitmap part?! :/ But i was thinking of trying to create a Map (like in chess), and that a movement from one to another block requires commands to be triggerd. How to do so? I was thinking of _GDIPlus_BitmapCloneArea in order to go from C1 to A4 it would need to do a function ( and it will go through blocks on its way) A1 A2 A3 A4 B1 B2 B3 B4 C1 C2 C3 C4 Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted September 16, 2014 Moderators Share Posted September 16, 2014 Webcreation,Just the one thread at a time please - merged. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Webcreation Posted September 16, 2014 Author Share Posted September 16, 2014 Ohh sorry i just wanted to make it more understandable. THank you i hope ppl will scroll down! Link to comment Share on other sites More sharing options...
kylomas Posted September 16, 2014 Share Posted September 16, 2014 WC, Check out >this thread. There are Checkers examples as well as other games. kylomas Forum Rules Procedure for posting code "I like pigs. Dogs look up to us. Cats look down on us. Pigs treat us as equals." - Sir Winston Churchill 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