Jump to content

Game Quiz


Swiftzn
 Share

Recommended Posts

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

Link to comment
Share on other sites

  • Moderators

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. ;)

M23

And 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. ;)

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

  • Moderators

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_109

Then you could use Random to get an index both to show an image and indicate the correct name for checking the input. ;)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png 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 columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

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...