maurocav Posted March 21, 2007 Posted March 21, 2007 Please help me,i need this: Search from combo a|b|c| into csv file x;y;z;a d;a;y;z s;b;k;r populate the same combo wiht the line found select 1 line split line into array Tank you very much
BrettF Posted March 21, 2007 Posted March 21, 2007 Please help me,i need this:Search from comboa|b|c|into csv filex;y;z;ad;a;y;zs;b;k;r populate the same combo wiht the line foundselect 1 linesplit line into arrayTank you very muchGUIctrlSetData () Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version!
maurocav Posted March 21, 2007 Author Posted March 21, 2007 GUIctrlSetData () Thank you Bert ,but i know to here: #include <GuiConstants.au3> $data = "string1|string2|string3|string4|Exit" $sGUI = GUICreate("WinBar App", 100, 20, @DesktopWidth / 2 + 320, @DesktopHeight / 170, BitOR($WS_POPUP, $WS_EX_TOPMOST), $WS_EX_TOOLWINDOW) $sInput = GUICtrlCreateCombo("", -1, -1, 102, 22) GUICtrlSetData($sInput, $data) GUISetState() WinSetOnTop($sGUI, "", 1) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $sInput $sRead = GUICtrlRead($sInput) If $sRead = "EXIT" Then Exit Else ToDo() EndIf EndSwitch WEnd Func ToDo() $file = FileOpen("C:\file.csv", 0) $sWFound= '' While 1 $line = FileReadLine($file) If @error = -1 Then ExitLoop If StringInStr(" "&$line,$sRead) > 0 Then $sWFound &= $line & @LF EndIf WEnd EndFunc Do you write me the rest ? tank you
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