seesoe Posted August 20, 2009 Share Posted August 20, 2009 hello, im trying to figure out how i can make a program that will allow for user control permissions over hotkeys.i have a wireless keypad for the computer, and i want to do like functions, like pressing 0 and 1 will start the user login, and after that they must enter their id then press enter, and after that they can for examples sake press period and the plus sign to higher the volume.different users have different permissions, like one can pause music, while another can only higher or lower it.im just going to change this senddata function in this script for vlc#626595im thinking putting if hotkeys thens in a while loop and go from therebut im not sure how to do it with usersim just looking for second opinions on how to code thisthanks all Link to comment Share on other sites More sharing options...
seesoe Posted August 21, 2009 Author Share Posted August 21, 2009 how do i create an array that has arrays for its element, i couldn't figure it out from the docs i need an array thats 7 big, and each element in that element i need it to have 3 more elements Local $worker[1][3] = [[1], ['name'], [111]] Local $worker[2][3] = [[1], ['name'], [111]] Local $worker[3][3] = [[1], ['name'], [111]] Local $worker[4][3] = [[2], ['name'], [111]] Local $worker[5][3] = [[2], ['name'], [111]] Local $worker[6][3] = [[2], ['name'], [111]] Local $worker[7][3] = [[2], ['name'], [111]] Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted August 21, 2009 Moderators Share Posted August 21, 2009 seesoe, Here is a hint for a slightly smaller array: Local $worker[2][3] = [[1, 'name1', 111], [2, 'name2', 222]] MsgBox(0, $worker[0][1], $worker[1][2]) 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...
JSThePatriot Posted August 21, 2009 Share Posted August 21, 2009 how do i create an array that has arrays for its element, i couldn't figure it out from the docs i need an array thats 7 big, and each element in that element i need it to have 3 more elements Local $worker[1][3] = [[1], ['name'], [111]] Local $worker[2][3] = [[1], ['name'], [111]] Local $worker[3][3] = [[1], ['name'], [111]] Local $worker[4][3] = [[2], ['name'], [111]] Local $worker[5][3] = [[2], ['name'], [111]] Local $worker[6][3] = [[2], ['name'], [111]] Local $worker[7][3] = [[2], ['name'], [111]] Local $worker[7][3] = [ [1, "name", 111], [1, "name", 111], [1, "name", 111], [2, "name", 111], [2, "name", 111], [2, "name", 111], [2, "name", 111] ] If you look under the documentation for "Dim / Global / Local / Const" or "Keyword Reference" you'll see exactly where I got the above from. I hope it helps, Jarvis AutoIt Links File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out. ComputerGetInfo UDF's Updated! 11-23-2006 External Links Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more) 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