| View previous topic :: View next topic |
| Author |
Message |
curioustolearn Guest
|
Posted: Sun Aug 24, 2008 2:56 pm Post subject: Keyboard Shortcut in Firefox |
|
|
Hi,
Ctrl t in firefox opens a new tab with an untitled page. I want to change this to a new tab with my home page instead of the untitled page.
I am trying the following command:
^t::SendPlay, {ALT Down}{f}{ALT Up}{t}{ALT Down}{Home}
However, the above just ends up opening both the file menu and the tools menu. Can someone please point out my mistake and guide me to the correct answer.
Thank you. |
|
| Back to top |
|
 |
curioustolearn Guest
|
Posted: Sun Aug 24, 2008 2:59 pm Post subject: |
|
|
A correction.
I added {Alt Up} to my previous command and changes the current tab to my homepage. Does not open a new tab. Also, both the menus are still open. |
|
| Back to top |
|
 |
Guest
|
Posted: Sun Aug 24, 2008 5:50 pm Post subject: |
|
|
|
|
| Back to top |
|
 |
curioustolearn Guest
|
Posted: Sun Aug 24, 2008 7:56 pm Post subject: |
|
|
Thanks. I will try your script. Sometime after I posted the question, I tried other possibilities. I thought that perhaps my script was not working because the keys were being sent too quickly. So I tried the following code which works. Yours is certainly better and will try that, but just wanted to post what I tried.
| Code: |
^t::
SendPlay, {ALT Down}{f}{ALT Up}
Send, {t}
Sleep, 100
SendPlay, {ALT Down}{Home}{ALT Up}
return
|
|
|
| Back to top |
|
 |
Guest
|
Posted: Sun Aug 24, 2008 9:09 pm Post subject: |
|
|
| You don't need that. Just install Keyconfig. |
|
| Back to top |
|
 |
Hasso
Joined: 23 Mar 2005 Posts: 158 Location: Germany
|
Posted: Mon Aug 25, 2008 11:26 am Post subject: |
|
|
| Code: | #IfWinActive, Firefox
~^t::
sleep, 500
send, !swww.myhomepage.com{ENTER} ;insert URL of your homepage here
return
#IfWinActive
|
Tested. _________________ Hasso
Programmers don't die, they GOSUB without RETURN |
|
| Back to top |
|
 |
|