Jump to content
Sign in to follow this  
Vindicator

Minus letters from a variable?

Recommended Posts

Sorry this is my second question in like 10 minutes...

Ok, I have a source editor that Im making and I wanted people to be able to click a certain line of the script and be able to go to the web page (if that line was a link>

THIS is what I TRIED to do

#include <IE.au3>
$URL=InputBox("URL","Input URL of web Page")
$obj=_IECreate ($URL)
$oIE = _IENavigate($obj)
$sHTML = _IEBodyReadHTML ($oIE)
FileWrite( "Test.txt", $sHTML )
$test=FileRead("Test.txt",2) ;Pretend this is <a href="www.autoitscript.com">;This obviously didnt work
$test= $test - '<a href"'
$test= $test - '">'
$obj2=_IECreate ($test)

I did a bad job of explaining what I was asking, but do you get what Im trying to do?


If I hadn't said thank you yet, and you deserve it, than thank you...

Share this post


Link to post
Share on other sites

These will do what you want:

StringTrimRight() or StringTrimLeft()

Most likely you will want StringReplace($test,"String to Remove","")

Hallman

Edited by Hallman

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  

×
×
  • Create New...