Jump to content
Sign in to follow this  
hackbird

html reformater

Recommended Posts

hackbird

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

Share this post


Link to post
Share on other sites
Jos

So Hackbird, think it is clear what you want to do but what is the question you are asking or did you just want to share your challenge with us?


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Thatsgreat2345

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.

Share this post


Link to post
Share on other sites
hackbird

Hi Jos,

the question is, how can i do that?

Don´t know how i can make this in autoit. Never done before.

Hope someone can help

Share this post


Link to post
Share on other sites
Thatsgreat2345

Hi Jos,

the question is, how can i do that?

Don´t know how i can make this in autoit. Never done before.

Hope someone can help

I just told you how, StringRegExp and StringRegExpReplace

Share this post


Link to post
Share on other sites
hackbird

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

Share this post


Link to post
Share on other sites
DaleHohm

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

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.