Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

i need some help for inputbox functions

$
0
0
hy guys,
whatever i need help, i find it here :))
now i've some problem with inputbox, i dont know how can i "configure" it.

so if someone have a bit free time please how should to do these functions in my test script below here:

1.
-when you add multiple files to inputbox,, it' going to next to each other, for example, like this: D:\01.jpg02.jpg
and it would be nice if the multiple files going to below each other, like this:
D:\01.jpg
D:\02.jpg

2.
-now you added one or more files to inputbox, when click to "Let's do it" button, you should to get 2 msg box with these messages, first:D:\01.jpg and another msgbox D:\02.jpg
-my "dream" now, i'd like the script give as much msgbox as line is exist (with files from lines)

i hope u can understand what i want do to, if not please ask me again about it, unfortunately my english is a bit low..
and i cant explaining things in some situation., thanks for understanding.

[ autoit ]    ( ExpandCollapse - Popup )
#include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <GUIListBox.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> Opt("GUIOnEventMode", 1) #Region ### START Koda GUI section ### $test = GUICreate("test script", 633, 350, 281, 129) GUISetOnEvent($GUI_EVENT_CLOSE, "_Exit", $test) $addfile = GUICtrlCreateButton("Add File", 408, 300, 75, 25) GUICtrlSetOnEvent(-1, "_addfile") $showmsg = GUICtrlCreateButton("Let's do it", 504, 300, 75, 25) GUICtrlSetOnEvent(-1, "_message") GUICtrlSetState($showmsg, $GUI_DISABLE) $List = GUICtrlCreateList("", 39, 20, 561, 253) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() ;Switch $nMsg ;Case $GUI_EVENT_CLOSE ;Exit ;Case $addfile ;_addfile() ;EndSwitch WEnd Func _Exit() Exit EndFunc Func _message() MsgBox(0, "msg", GUICtrlRead($List)) EndFunc Func _addfile() Local $message = "Hold down Ctrl or Shift to choose multiple files." Local $var = FileOpenDialog($message, @WindowsDir & "\", "(*.jpg)", 1 + 4) ; how should to replace the *.jpg for open every filetype? :( If @error Then ;MsgBox(4096, "", "No File(s) chosen") Else $var = StringReplace($var, "|", @CRLF) GUICtrlSetData($List, $var) GUICtrlSetState($showmsg, $GUI_ENABLE) EndIf EndFunc

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>