Marius Posted June 26, 2005 Posted June 26, 2005 (edited) Ok. Now I'm stuck a little bit further... I have a list(GUICtrlCreateList) with some names in it. I need selected line number to be set as variable. Uhhh... When I select line from list and press button, line number should appear as variable. P.S>hard to explain. Hope someone understood me... Edited June 26, 2005 by Marius Marius back in da hood! :)
FuryCell Posted June 26, 2005 Posted June 26, 2005 (edited) Use this UDF:;=============================================================================== ; ; Description: _GUICtrlListSelectedIndex ; Parameter(s): $h_listbox - controlID ; Requirement: None ; Return Value(s): In a single-selection list box, the return value is the zero-based ; index of the currently selected item. If there is no selection, ; the return value is $LB_ERR ; User CallTip: _GUICtrlListSelectedIndex($h_listbox) return the index of selected item (required: <GuiList.au3>) ; Author(s): Gary Frost (custompcs@charter.net) ; Note(s): Do not use this with a multiple-selection list box. ; ;=============================================================================== Func _GUICtrlListSelectedIndex($h_listbox) Return GUICtrlSendMsg($h_listbox,0x188, 0, 0) EndFunc ;==>_GUICtrlListSelectedIndexfor many more UDF's like this download the UDF update here. Edited June 26, 2005 by SolidSnake HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code.
Marius Posted June 27, 2005 Author Posted June 27, 2005 It seems that I don't have _FileDeleteLine in "File.au3" I downloaded latest UDf installer (http://www.autoitscript.com/autoit3/scite/UDFs/AutoIT3_UDF_Update_3.1.0.exe) but still no function. What I should do to get this function? Marius back in da hood! :)
/dev/null Posted June 27, 2005 Posted June 27, 2005 What I should do to get this function?search the forum, and you will find it.CheersKurt __________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *
GaryFrost Posted June 27, 2005 Posted June 27, 2005 If you want to use the UDFs for Listbox, download the latest beta Beta, once you have that goto User Defined Functions and then GuiList Management.Gary SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
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