walle Posted October 16, 2007 Share Posted October 16, 2007 Can't figure out how to stringtrim the lines before iniwrite. I would like to stringtrimright the last 5 characters in every line. Any idea? Func Search() _GUICtrlListClear($Listbox1) $count = 0 $Search2 = GUICtrlRead($Search) $oIE = _IECreate("http://www.swedvdr.org/browse.php?search=" & $Search2,0,0) $oLinks = _IELinkGetCollection($oIE) For $oLink in $oLinks $sLinkText = _IEPropertyGet($oLink, "innerText") If StringInStr($sLinkText, $Search2) Then $count += 1 IniWrite(@HomeDrive & "\Temp\Burnbuddy.ini", "Search Movies", $count, $sLinkText) ;msgbox(0,$count,$sLinkText) ;_IEAction($oLink, "click") EndIf Next _IEQuit($oIE) EndFunc Link to comment Share on other sites More sharing options...
weaponx Posted October 16, 2007 Share Posted October 16, 2007 It sounds like you already have the answer. StringTrimRight ( "string", count ) IniWrite(@HomeDrive & "\Temp\Burnbuddy.ini", "Search Movies", $count, StringTrimRight ( $sLinkText, 5 )) Link to comment Share on other sites More sharing options...
walle Posted October 16, 2007 Author Share Posted October 16, 2007 It sounds like you already have the answer.StringTrimRight ( "string", count )IniWrite(@HomeDrive & "\Temp\Burnbuddy.ini", "Search Movies", $count, StringTrimRight ( $sLinkText, 5 ))Stupid of me =/thanks Link to comment Share on other sites More sharing options...
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