Jump to content

Recommended Posts

Posted

Hey guys,

It's my first post!! I'm new to AutoIt. I was looking around for a new macro writing program and I was sure lucky to find AutoIt. I love it.

I'm working on my second prog. and have been stumped for several hours trying to figure out how to double click an array value and perform a function based on the criteria selected. It seems pretty simple. I'm not finding right of what I'm looking for in help files or on the forums.

Could someone be kind enough to point me in the right direction? No need to write the script for me. Just give me some ideas how I can accomplish this.

I appreciate it.

Gid

Posted

Could someone be kind enough to point me in the right direction? 

Not clear on what you mean by double click an array. Can you post what you have so far, or elaborate on the application?
...by the way, it's pronounced: "JIF"... Bob Berry --- inventor of the GIF format
Posted

Not clear on what you mean by double click an array. Can you post what you have so far, or elaborate on the application?

<{POST_SNAPBACK}>

Thanks for the quick response!!

Basically I've created a this:

#RecordsTransactionAssistant

#include <GUIConstants.au3>



$recordsmain            = GUICreate("MO Assist", 400, 300, -1, -1);, BitOr($GUI_SS_DEFAULT_GUI,$WS_CLIPSIBLINGS))
$ok_button          = GUICtrlCreateButton("OK", 110, 270, 70, 20)
$cancel_button      = GUICtrlCreateButton("Cancel", 220, 270, 70, 20)
GUISetState()

; Creates the first child window that is implemented into the main GUI
$people             = GUICreate("", 370, 215, 15, 40, BitOr($WS_CHILD,$WS_TABSTOP), -1, $recordsmain)
;GUISetBkColor(0x257788); just for dimensing the child
$people_tab         = GUICtrlCreateTab(0, 0, 370, 215)

$people_tabitem1    = GUICtrlCreateTabItem("Age")
$agelistview            = GUICtrlCreateListView("Title", 10, 30, 150, 150, BitOr($LVS_NOSORTHEADER,$LVS_SHOWSELALWAYS,$WS_TABSTOP), $WS_EX_CLIENTEDGE)
GUICtrlCreateListViewItem("Age 0-13", $agelistview)
GUICtrlCreateListViewItem("Age 14-17", $agelistview)
GUICtrlCreateListViewItem("Age 18-24", $agelistview)

Simple... but I would like to be able to click on the values that appear in the lists and perform a function on that information. So... for instance click on the first value and it would write the value to Notepad.

Thanks again for your help.

Gid

Posted

Are you after somthing like this?

dim $MyArr[2]
Func Func1()
    MsgBox(1,"Func1","You called!")
EndFunc
Func Func2()
        MsgBox(1,"Func2","You called!")
EndFunc
;
$MyArr[0] = "Func1"
$MyArr[1] = "Func2"

Call($MyFunc[0])
Call($MyFunc[1])

Regards

Uten

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
×
×
  • Create New...