Jump to content
Sign in to follow this  
walle

Stringtrimright/iniwrite

Recommended Posts

walle

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

Share this post


Link to post
Share on other sites
weaponx

It sounds like you already have the answer.

StringTrimRight ( "string", count )

IniWrite(@HomeDrive & "\Temp\Burnbuddy.ini", "Search Movies", $count, StringTrimRight ( $sLinkText, 5 ))

Share this post


Link to post
Share on other sites
walle

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

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.