| View previous topic :: View next topic |
| Author |
Message |
beal
Joined: 03 Mar 2007 Posts: 10
|
Posted: Sun Nov 04, 2007 2:48 pm Post subject: Why is my script only running once? |
|
|
I'm new to writing scripts, so any advice is appreciated. Basically, I want the script to, when my mouse is hovered over a link and a hotkey is pressed to copy that link location and then paste it in a Gtalk window and then return to the Firefox window. I have succeeded in getting it to post the link, but it will only run once when the hotkey is pressed. Pressing the hotkey a second time does nothing. In addition, it does not return to the Mozilla Firefox window after pasting the link.
Thanks
| Code: | ^Q::
MouseClick, right
Send {Down}{Down}{Down}{Down}{Down}{Down}{Down}
Send {Enter}
IfWinExist windowtitlehere
{
WinActivate
}
else
{
Run gtalk:chat?jid=gtalkaddress@gmail.comhere
WinWait windowtitlehere
WinActivate
}
Send ^V
Send {Enter}
WinWait Mozilla Firefox ahk_class MozillaUIWindowClass
WinActivate
return |
|
|
| Back to top |
|
 |
beal
Joined: 03 Mar 2007 Posts: 10
|
Posted: Sun Nov 04, 2007 3:22 pm Post subject: |
|
|
Nevermind, fixed it with a
SetTitleMatchMode 2
before everything....Thanks! |
|
| Back to top |
|
 |
kimbledon
Joined: 28 Sep 2007 Posts: 26
|
Posted: Mon Nov 05, 2007 7:06 pm Post subject: |
|
|
You can replace
| Code: | | Send {Down}{Down}{Down}{Down}{Down}{Down}{Down} |
with
 |
|
| Back to top |
|
 |
icefreez
Joined: 15 May 2007 Posts: 39
|
Posted: Mon Nov 05, 2007 7:32 pm Post subject: |
|
|
oOo I did not know that  |
|
| Back to top |
|
 |
|