New Tab => change focus to Address Bar

Features wanted...
Post Reply
ReviewPilot
Posts: 150
Joined: 27 Jul 2007 09:21
Location: Germany

New Tab => change focus to Address Bar

Post by ReviewPilot »

Everytime I add a new tab (CTRL-t), I have to mouseclick in the Addressbar to change the location to the desired.

How about setting the focus on the address bar, so I can press CTRL-T and then just type the new address, without having to touch the mouse?


RP
check out this guys work - xkcd webcomics

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: New Tab => change focus to Address Bar

Post by serendipity »

ReviewPilot wrote:Everytime I add a new tab (CTRL-t), I have to mouseclick in the Addressbar to change the location to the desired.

How about setting the focus on the address bar, so I can press CTRL-T and then just type the new address, without having to touch the mouse?
RP
Since it is specific to your interest, one option is to change the keyboard shortcut for ctrl+t. Assign it to this script in UDC:

Code: Select all

//Open new tab
    #340;
//Focus address bar
    focus a;
Last edited by serendipity on 12 Nov 2008 16:31, edited 1 time in total.

admin
Site Admin
Posts: 66324
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: New Tab => change focus to Address Bar

Post by admin »

Or Ctrl+Alt+A to focus AB.

JustinF
Posts: 358
Joined: 28 Jun 2005 23:47
Location: Omaha, Nebraska, USA

Re: New Tab => change focus to Address Bar

Post by JustinF »

serendipity wrote:Since it is specific to your interest, one option is to change the keyboard shortcut for ctrl+t. Assign it to this script in UDC:

Code: Select all

//Open new tab
    #340;
//Focus address bar
    focus a;
I don't use scripting nearly as much as I probably should, but WOW, the power of it is amazing! Being able to do stuff like this is very cool.
Justin
Windows 7 Professional

ReviewPilot
Posts: 150
Joined: 27 Jul 2007 09:21
Location: Germany

Re: New Tab => change focus to Address Bar

Post by ReviewPilot »

These are neat tipps! Thank you!
check out this guys work - xkcd webcomics

ReviewPilot
Posts: 150
Joined: 27 Jul 2007 09:21
Location: Germany

Re: New Tab => change focus to Address Bar

Post by ReviewPilot »

Err, could someone, again, instruct me how to use this stuff?

I created a xys-file in the scripts folder. is this the intended way? and now what? how to assign?
check out this guys work - xkcd webcomics

Pagat
Posts: 308
Joined: 09 Oct 2007 21:23
Location: Austria

Re: New Tab => change focus to Address Bar

Post by Pagat »

you can also enter that 2-line-script directly as a UDC without creating a XYS file:

"User | Manage Commands..." -> Select "Run Script" -> Click on "New". Enter a Caption that you like and the following line under "Script":

Code: Select all

#340; focus a;
Now select a keyboard shortcut, click "Apply" and you are good to go. Execute the script either via your shortcut, or via "User | Run Script | [Your Caption]".
OS: Windows 11, 64-bit, Version 25H2, Build 26200.8655 (10.0), AMD64
Monitor: 1/2 (Primary) Primary Screen DPI: 96 (100%)

ReviewPilot
Posts: 150
Joined: 27 Jul 2007 09:21
Location: Germany

Re: New Tab => change focus to Address Bar

Post by ReviewPilot »

that works, thx.
But now always this "stepping thru script" pops up..
check out this guys work - xkcd webcomics

admin
Site Admin
Posts: 66324
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: New Tab => change focus to Address Bar

Post by admin »

ReviewPilot wrote:that works, thx.
But now always this "stepping thru script" pops up..
Remove the checkmark "Step through scripts" in menu Scripting. This is only used for testing/debugging scripts.

ReviewPilot
Posts: 150
Joined: 27 Jul 2007 09:21
Location: Germany

Re: New Tab => change focus to Address Bar

Post by ReviewPilot »

admin wrote:
ReviewPilot wrote:that works, thx.
But now always this "stepping thru script" pops up..
Remove the checkmark "Step through scripts" in menu Scripting. This is only used for testing/debugging scripts.
uups. one should read the manual or think. :oops:
check out this guys work - xkcd webcomics

Post Reply