Tech Support Guy banner

[Autohotkey] Modify Clipboard

1151 Views 4 Replies 2 Participants Last post by  pasc
So... I have a script that copies the current path to the clipboard:

Let's assume

C:\Users\Tools\etc
is my path.

I now want to use Autohotkey to replace the "C:\" inside the clipboard with "Local Drive"

Could anyone please help me with this + try it out by copying the above line and trying it ?
Status
Not open for further replies.
1 - 5 of 5 Posts
This is the script part that copies the path to the clipboard:

Send {CTRLDOWN}{ENTER}
Send {CTRLUP}
Sleep, 345
Send {F4}
Send {CTRLDOWN}ac
Send {CTRLUP}
Send {ESC}
Send {ESC}
Send {ALTDOWN}{F4}{ALTUP}
After copying it with ctrl c, I need to modify it.
You'll have better chance getting an answer to question by posting it here: http://www.autohotkey.com/board/forum/48-support/

Post your code and more details of exactly what you're trying to accomplish.
ok, this did the trick:
outputvar = %clipboard%
StringReplace, outputvar, outputvar, String 1, repl string
1 - 5 of 5 Posts
Status
Not open for further replies.
Top