Jump to content

New question to crack :)


Recommended Posts

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! :)
Link to comment
Share on other sites

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.
Link to comment
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! :)
Link to comment
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 *

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...