Swiftzn Posted February 13, 2013 Posted February 13, 2013 Hey guys, i need your help, i am rather rusty with AutoIT and i need to get a program done quickly basically it's a knowledge quiz for a game called league of legends there are 109 heros now my team are really new and i am trying to get them to learn the characters faces so basically i want a script that will show a face they need to put in a Name and if it's right it tells them and goes to the next one and maybe even have a score out of 109 at the end (this part isn't important) Any Help would be appreciated Regards
Moderators Melba23 Posted February 13, 2013 Moderators Posted February 13, 2013 Swiftzn,Welcome to the AutoIt forum. We do not write scripts to order here - as I am sure you know - but the functions I would recommend you look up first in the Help file are GUICtrlCreatePic (to show the image) and GUICtrlCreateInput (to get the suggested name).You would probably be best served by using an array to hold the images and the associated names - if you are not very up to speed on arrays then I recommend the Arrays tutorial in the Wiki. Give it go yourself and see how you get on - you know where we are if you run into difficulties. M23And to any other readers - I am happy for this thread to run as it does not interact with the game but only shows a series of images. 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
Swiftzn Posted February 13, 2013 Author Posted February 13, 2013 Thank you i wasn't asking for it to be written to order hehe, just a pointer in the right direction, so basically the array would hold image location and what char it is correct?
Moderators Melba23 Posted February 13, 2013 Moderators Posted February 13, 2013 Swiftzn,I would go for a 2D array like this:[0] | [1] [0] 109 (count) | [1] Path to image_1 | Name of character in image_1 [2] Path to image_2 | Name of character in image_2 ... [109] Path to image_109 | Name of character in image_109Then you could use Random to get an index both to show an image and indicate the correct name for checking the input. 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
Swiftzn Posted February 14, 2013 Author Posted February 14, 2013 Thanks for the help im gonna try code this keep an eye out i'll be back haha
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