I am trying to use AHK to help me do some copy and paste thing on to notepad.
Let me be a bit specific by showing my case.
1. AHK goes to google news web page, copy a word from the new web page. (e.g. Hello)
2. The AHK script launches the 1.txt and paste the word onto notepad.
3. The script then minimizes the notepad titled 1.txt.
4. The script switches back to the google news web page,
and copy another word on the same web page (e.g. World).
5. It maximizes the the notepad titled 1.txt, and pastes the word (e.g. World) onto the 1.txt.
The problem is that, since the mouse click will affect the position where the second copied word will paste onto,
how can I tell the AHK to paste the text (i.e. World) just after the word Hello?
In this case, the mouseClick will the click at the middle position of the word Hello,
and the AHK will paste the text (i.e. World) between the word, and make the output like this "HelWorldlo", instead of "Hello World".
Here is my script:
Run http://news.google.com/?edchanged=1&ned=us&authuser=0
Sleep 6000
MouseClickDrag, L, 684, 450, 234, 450
Sleep 1000
send ^c
Sleep 1000
Run R:\1.txt
Sleep 1000
send ^v
send {space}
send {space}
Sleep 1000
WinMinimize 1.txt
MouseClickDrag, L, 682, 615, 234, 615
Sleep 1000
send ^c
WinMaximize 1.txt
Sleep 1000
ControlClick 1.txt
send ^vPlease help me if you could.
Thank you so much
Kitty




