ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Finished Programs

DONE: ahk Find and Replace

(1/2) > >>

DougleBug:
Hello All,

I need some help with ahk, I'm at the 'Hello World' stage and a bit lost with this.

Hoping to press a short-cut and ahk will find @1 and replace it with what is in my clip board.

I think the command is StringReplace but not sure on how to code it.

Any help would be greatly appreciated.

Thank you, Doug.

skwire:
Hello, DougleBug, and welcome to the site.

ahk will find @1-DougleBug (April 10, 2012, 06:42 AM)
--- End quote ---

Can you explain this in more detail?  Find "@1" where/how, exactly?

DougleBug:
Hi skwire,

Working in Chrome find @1 (or something unique) within a text field, and replacing it with what is in your clip-board.

Thanks,

skwire:
Working in Chrome find @1 (or something unique) within a text field, and replacing it with what is in your clip-board.
-DougleBug (April 10, 2012, 08:03 AM)
--- End quote ---

Right, I understand that.  What I need to know is how are you determining the text to be searched through?  AHK doesn't just "know" which text you want searched through.  Do you have this text selected/highlighted or something like that?

DougleBug:
Just the web page really, but I could select the text.

A bit like this Quick Reply box, press one key to chance 'text' for example in to what you have copied.

Edit: before posting, while still editable.

Navigation

[0] Message Index

[#] Next page

Go to full version