AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Keyboard Shortcut in Firefox

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
curioustolearn
Guest





PostPosted: Sun Aug 24, 2008 2:56 pm    Post subject: Keyboard Shortcut in Firefox Reply with quote

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





PostPosted: Sun Aug 24, 2008 2:59 pm    Post subject: Reply with quote

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






PostPosted: Sun Aug 24, 2008 5:50 pm    Post subject: Reply with quote

Code:
~^t::Send !{home}
Back to top
curioustolearn
Guest





PostPosted: Sun Aug 24, 2008 7:56 pm    Post subject: Reply with quote

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






PostPosted: Sun Aug 24, 2008 9:09 pm    Post subject: Reply with quote

You don't need that. Just install Keyconfig.
Back to top
Hasso



Joined: 23 Mar 2005
Posts: 158
Location: Germany

PostPosted: Mon Aug 25, 2008 11:26 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group