Sign in to follow this  
Followers 0
seesoe

hotkey users

4 posts in this topic

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

#626595

im thinking putting if hotkeys thens in a while loop and go from there

but im not sure how to do it with users

im just looking for second opinions on how to code this

thanks all

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

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

 

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
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
Sign in to follow this  
Followers 0