View Single Post
qwazix's Avatar
Moderator | Posts: 2,622 | Thanked: 5,447 times | Joined on Jan 2010
#47
Interesting find

Opera mobile has a host of useful command line arguments. Try for example

Code:
 /opt/operamobile-labs/operamobile -tabletui
Too slow writing on textarea with so much text

Code:
$ /opt/operamobile-labs/operamobile --help

Usage: /opt/operamobile-labs/operamobile [OPTIONS] [URL]

Command-line switches:

-displaysize WIDTHxHEIGHT
    Example: -displaysize 240x400

    Controls the size of the emulated device screen. Default is 854x480.

-skinresolution WIDTHxHEIGHT
    Example: -skinresolution 640x480

    Sets the skin resolution independent of the display size.

-fullscreen
    Run in full screen using the current resolution.

-nofullscreen
    Don't run in full screen mode.

-notouch
    Disable touch mode and use keypad mode instead.

-notouchwithtouchevents
    Like -notouch, but it is still possible to use the mouse. Use for debugging purposes.

-mem MEM
    The amount of heap memory that should be available, in bytes. Suffixes 'K'
    for kilobytes and 'M' for megabytes are supported. Default is no limit.

-lang LANG
    The UI language to use, in the format LANG_REGION, or just LANG.
    Normally this is picked up automatically from the OS, but this
    argument can be used for overriding.

-ppi PPI
    The pixel density (aka PPI or DPI) to report that the screen has. Note
    that setting this will cause the zoom setting to revert to the default
    value for that pixel density.

-mobileui
    Start the mobile version of the browser.

-tabletui
    Start the tablet version of the browser.

-k
    Start the browser in kiosk mode, which is a mode mainly suited for information stands.

-extra-fonts DIR
    Load additional fonts from DIR.

-profile-name NAME
    Will include NAME of a profile.

-delaycorethread DELAY
    Delay each message in core thread by DELAY ms, to emulate a slow device.

-delayuithread DELAY
    Delay each message in UI thread by DELAY ms, to emulate a slow device.

-hasmenuandback
    Make UI report that it has hardware menu and back keys.

-debugproxy host[:port]    Specifies which debug server to connect to.
    The host is by default 127.0.0.1:7001.

-pd DIR
    Specifies a custom profile directory.

-autotestmode
    Automatic testing mode - disables EULA for convenience.

-url URL
    URL specifies a URL to open on startup.

URL
    Any unknown argument is treated as a URL to open.


Other information:
- F1-F4 maps to softkeys 1-4
- F5 and CTRL+R reload the current page
- Enter maps to the 'Enter' key and the newline character
- Keypad Enter and F8 map to the middle selection key (navigation key)

Features intended for testing/debugging:
- F6 maps to the "show/hide hardware keyboard" event
- F7 tells the application to suspend or resume from suspend
- ALT+R emulates a screen rotation from landscape to portrait or vice versa
- ALT+H emulates hiding/showing the screen
- CTRL+E opens the URL currently in the clipboard in a new tab
- ALT+N switches connection state between None, Phone (unspecified speed)
  and Wifi. It is set to unknown by default.
__________________
Proud coding competition 2012 winner: ρcam
My other apps: speedcrunch N9 N900 Jolla –– contactlaunch –– timenow

Nemo UX blog: Grog
My website: qwazix.com
My job: oob
 

The Following 11 Users Say Thank You to qwazix For This Useful Post: