OESF Portables Forum

Everything Else => General Support and Discussion => Zaurus General Forums => Archived Forums => Software => Topic started by: tml on September 07, 2005, 04:51:02 am

Title: Netfront 3.1: Pagewise Scrolling
Post by: tml on September 07, 2005, 04:51:02 am
I use netfront for viewing html pages. While it does a good job on most pages, I don't like the fact that it scrolls pages line by line. Is there a way to make netfront scroll page by page or maybe even better by half-pages?

I don't quite understand yet how to use inputhelper in conjunction with keyhelper. But based on the information I found so far, I suspect that this could be somehow be done by using these applets? Any advice?

Tom.
Title: Netfront 3.1: Pagewise Scrolling
Post by: zmiq2 on September 07, 2005, 08:10:20 am
Hi Tom,

you can just

1) tap on the scrollbar, on an empty space, and you'll scroll down one page. If you tap on the scrollbar, above the scrollbar handle, you'll go up; tapping under, you'll go down

2) tap and drag the scrollbar handle to the desired position in the page

so, exactly the same as you would do in a pc, just substitute the mouse by tapping

HTH
Title: Netfront 3.1: Pagewise Scrolling
Post by: icruise on September 07, 2005, 08:15:52 am
I use inputhelper to scroll by the page in Opera. At first I thought I would just change up and down or left and right to "page up" and "page down" when in Opera, but you use these keys for things other than navigation within a page (like selecting bookmarks, or when entering URLs or selecting text). Anyway, I assigned page up and down to number keys. Depending on which hand you usually hold the Zaurus with, you might prefer 3 or 4 or 8 or 9 for this. It requires a little extra work to allow use of a key without a launch button modifier, but it's not hard. I can post how I did it in a little bit.
Title: Netfront 3.1: Pagewise Scrolling
Post by: icruise on September 07, 2005, 12:47:06 pm
zmiq2 -- I think he wants an easy way to "page down" using the keyboard. Of course it's true that you can just use the scroll bar if you have your stylus out, but I'm trying to come up with keyboard equivalents to most commands so I don't need the stylus.

You can use Fn + Up/Down to page up and down in most applications, but this is kind of a pain, since you have to have both hands free. So I came up with a way to do it with by pressing only one key.

To do this, you will need to install InputHelper and KeyHelper. Then you need to add something like the following to your keyhelper.xml file. This allows you to have two different kinds of launchers. One (launch) will only work when the launch button (Address in my case) is pressed at the same time as another button. This is in the file by default. The other (launch1) will work just by pressing one button. You apparently need to have the entries in this order for them to work.

Code: [Select]
   
  
      
  


Next, you need to edit your keyhelper.conf file to set up the hotkeys that you want to use.

Add something like this to the file:
Code: [Select]
[Launch1_opera]
8 = @qcop    QPE/InputHelper mouse(QString) "click 620 90"
9 = @qcop    QPE/InputHelper mouse(QString) "click 620 415"
0 = @qcop    QPE/InputHelper mouse(QString) "click 580 390"


What this does is to simulate mouse clicks at certain places on the screen. In this case, at the top and bottom of the scroll bar (in the places that would trigger a "page up" and "page down"). I imagine that the Opera screen is a bit different from Netfront's, so you may need to change the coordinates a bit. But on my system with these settings, I just have to press 8 to page up and 9 to page down. These settings are only active for opera, so they won't interfere with using other programs. If you do need to use these numbers in Opera, you can use the on-screen keyboard or temporarily disable keyhelper. I added the "0" setting for opera because clicking on the scroll bar apparently shifts the focus away from the content of the page, making it so that you can't select links with the keyboard or scroll down with the arrow keys unless you click back inside the page.

As I said, this is for opera, so for netfront you would change it to [Launch1_netfront3].

You would think it would be possible to emulate the "Fn + Up/Down" keystroke instead of emulating the mouse clicks on the screen, but the sites I visited to figure this stuff out didn't mention that.
Title: Netfront 3.1: Pagewise Scrolling
Post by: tml on September 08, 2005, 11:15:37 am
Thanks a lot for your input. I prefer controlling netfront from the keyboard which is why scroll bars don't mean much to me or are considered a waste of space. Unfortunately, fn-up/down doesn't mean much to netfront (or its programmers) which is why this problem occurred.

After meditating on some of the bablefish translated webpages I found, I realized that this problem already bothered other people (or the creater of InputHelper?) as well (http://tbox.jpn.org/wiki/linuzau/wiki.cgi?KeyHelperApplet%2fTIPS).

It took me a while to figure out how to map User1 and all the other keys but now I use a version very close to icruise's (i.e. mapping numeric keys).

Thanks.