Jump to content

Stringtrimright/iniwrite


walle
 Share

Recommended Posts

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

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...