Jump to content

Recommended Posts

Posted

Hello,

i want to change a picture html code with one click.

Here are an example.

untreated html picture code:

<a href="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" target=_blank><img src="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" border="0" style="margin: 1px;" ></a>

treated html picture code:

<a href="yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" target=_blank><img src="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" border="0" style="margin: 1px;" ></a>

xxxxx stand for the picture links.

With yyy a new URL should be added.

Not to make this from hand now I wanted to make this with autoit. I lack in addition, however, the entrance

how I could create this.

The best solution would be:

To be able to insert the Html codes somewhere.

By one click on the program converts the codes and puts the URL before it.

I hope all was understandably what I wanted to say :-)

hackbird

Posted

Regular expression(stringregexp) to find all links inside hrefs which many regular expressions have already been done to do this and are online, then use stringregexpreplace to replace it with whatever you want.

Posted

Yeah thatsgreat i read it, but never done before.

Only write in autoit an script for automatical severall programs.

But never work before with StringRegExp and StringRegExpReplace.

Dont know how i must write this

Posted

And unless you try it for yourself, you never will.

Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y

Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...