So I'm tryint to make a program that will detect when my friend enters a website and redirect him to that website with "http://bacolicio.us/" in front of it.
If you don't know what that does, click here:
http://bacolico.us/http://http://bacoli ... google.com
Anyways, here's my code:
IfWinExist (Chrome)
{
www::Input, OutputVar, C V, {enter},
Send
http://bacolicio.us/http://www.%OutputVar%{Enter}
}
I thought that means anytime he's using his browser (Chrome, in this case), if he presses www it will start an input and copy the website to a string, then when he presses enter I was hoping I could use Send to reinput the website with the desired prefix.
When I try to run it I get this error:
Error at line 3.
Line Text: www::Input, OutputVar, C V, {enter}
Error: Invalid hotkey.
The program will exit.
I don't know why it's doing this, and so I was hoping someone could figure it out, also if anyone knows any easier implementation or command that I don't, feel free to advise me, I've never really tried anything with autohotkey before today