hackbird Posted June 12, 2010 Posted June 12, 2010 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
Developers Jos Posted June 12, 2010 Developers Posted June 12, 2010 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? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Thatsgreat2345 Posted June 12, 2010 Posted June 12, 2010 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.
hackbird Posted June 12, 2010 Author Posted June 12, 2010 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
Thatsgreat2345 Posted June 12, 2010 Posted June 12, 2010 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 helpI just told you how, StringRegExp and StringRegExpReplace
hackbird Posted June 12, 2010 Author Posted June 12, 2010 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
DaleHohm Posted June 12, 2010 Posted June 12, 2010 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now