AzKay Posted March 18, 2007 Posted March 18, 2007 If I use this: expandcollapse popup#include <GUIConstants.au3> #include <Constants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Search", 634, 450, 193, 115) $Group1 = GUICtrlCreateGroup("Search", 8, 8, 617, 433) $Input1 = GUICtrlCreateInput("", 32, 32, 233, 21) $Button1 = GUICtrlCreateButton("Search", 280, 32, 177, 21, 0) $Group2 = GUICtrlCreateGroup("Results", 24, 64, 585, 361) $Edit1 = GUICtrlCreateEdit("", 40, 88, 553, 321, BitOR($ES_AUTOVSCROLL,$ES_AUTOHSCROLL, _ $ES_READONLY, $ES_WANTRETURN,$WS_HSCROLL,$WS_VSCROLL)) GUICtrlCreateGroup("", -99, -99, 1, 1) $Label1 = GUICtrlCreateLabel(" ", 472, 32, 135, 21, BitOR($SS_CENTERIMAGE,$SS_SUNKEN, $SS_CENTER)) GUICtrlCreateGroup("", -99, -99, 1, 1) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 GUICtrlSetData($Edit1, "") AdlibEnable("Searching") Sleep(100) $Cmd = Run(@ComSpec & ' /c dir /B /S "' & GUICtrlRead($Input1) & '"', @HomeDrive, @SW_HIDE, $STDERR_CHILD + $STDOUT_CHILD) While 1 $Line = StdoutRead($Cmd) If @Error Then ExitLoop If $Line <> "" Then GUICtrlSetData($Edit1, $Line, 1) WEnd AdlibDisable() GUICtrlSetData($Label1, "Great Success!") EndSwitch WEnd Func Searching() GUICtrlSetData($Label1, "Searching.") Sleep(100) GUICtrlSetData($Label1, "Searching..") Sleep(100) GUICtrlSetData($Label1, "Searching...") Sleep(100) GUICtrlSetData($Label1, "Searching....") Sleep(100) EndFunc If I search, *.*, from c:, There isnt enough space to fit it all in, it stops inserting text around temporary internet files. Any ideas on getting more space to fitting all the text? # MY LOVE FOR YOU... IS LIKE A TRUCK- #
Moderators SmOke_N Posted March 18, 2007 Moderators Posted March 18, 2007 Did you try adding $ES_MULTILINE to your BitOr? Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
AzKay Posted March 18, 2007 Author Posted March 18, 2007 (edited) Tryed, Still runs out of space to use.EDIT::Just re-read my problem, I suck at explaining.I search:C:\*.*Everything works fine, but near the end of Temp internet files, its got no room left to write any more text. Edited March 18, 2007 by AzKay # MY LOVE FOR YOU... IS LIKE A TRUCK- #
Moderators SmOke_N Posted March 18, 2007 Moderators Posted March 18, 2007 Tryed, Still runs out of space to use.EDIT::Just re-read my problem, I suck at explaining.I search:C:\*.*Everything works fine, but near the end of Temp internet files, its got no room left to write any more text.Then you've reached your limit more than likely (32 kb by default I think)... try setting the limit higher with GUICtrlSetLimit(). Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
AzKay Posted March 18, 2007 Author Posted March 18, 2007 Mmm, Seems to work, Thanks :] # MY LOVE FOR YOU... IS LIKE A TRUCK- #
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