Page 1 of 1

New Tab => change focus to Address Bar

Posted: 11 Nov 2008 16:24
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

Re: New Tab => change focus to Address Bar

Posted: 11 Nov 2008 16:37
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;

Re: New Tab => change focus to Address Bar

Posted: 12 Nov 2008 08:56
by admin
Or Ctrl+Alt+A to focus AB.

Re: New Tab => change focus to Address Bar

Posted: 12 Nov 2008 16:37
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.

Re: New Tab => change focus to Address Bar

Posted: 19 Nov 2008 17:10
by ReviewPilot
These are neat tipps! Thank you!

Re: New Tab => change focus to Address Bar

Posted: 19 Nov 2008 17:15
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?

Re: New Tab => change focus to Address Bar

Posted: 19 Nov 2008 21:00
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]".

Re: New Tab => change focus to Address Bar

Posted: 20 Nov 2008 12:01
by ReviewPilot
that works, thx.
But now always this "stepping thru script" pops up..

Re: New Tab => change focus to Address Bar

Posted: 20 Nov 2008 12:09
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.

Re: New Tab => change focus to Address Bar

Posted: 20 Nov 2008 14:20
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: