Sign in to follow this  
Followers 0
Marius

New question to crack :)

7 posts in this topic

#1 ·  Posted (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 by Marius

Marius back in da hood! :)

Share this post


Link to post
Share on other sites



this was asked yesterday

search this section


NEWHeader1.png

Share this post


Link to post
Share on other sites

#3 ·  Posted (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  ;==>_GUICtrlListSelectedIndex

for many more UDF's like this download the UDF update here.

Edited by SolidSnake

HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code.

Share this post


Link to post
Share on other sites

ok. thanks. :)


Marius back in da hood! :)

Share this post


Link to post
Share on other sites

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! :)

Share this post


Link to post
Share on other sites

What I should do to get this function?

search the forum, and you will find it.

Cheers

Kurt


__________________________________________________________(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 *

Share this post


Link to post
Share on other sites

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.

 

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