• Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    boot_wb
    Posts: 874 from 2007/4/9
    From: Kingston upon ...
    Quote:

    Jim wrote:
    boot_wb,
    Quote:

    I'd like to be able to 'get version information', and 'open containing directory' (and whatever else may spring to mind) when right-clicking on individual icons.


    Good one!
    And relatively low hanging fruit.
    I use these two functions all the time under Windows.



    Speaking of low hanging fruit, having the 'print screen' button launch grabber would be a natural choice. :-)

    This can be accomplished in a maximum of 2 easy steps for USB keyboards (no idea how PS/2 or ADB keyboards are handled)

    1) Ensure that the print-screen button is correctly mapped*.

    2) Set it up as a hotkey to launch grabber** (either directly or by executing a script.for extra fruitiness).

    Note that this hotkey will not be 'global' - it is an Ambient hotkey. You will therefore have to have Ambient as the active window ( eg by clicking on the desktop or an Ambient browser window) before pressing 'print screen' will launch grabber.

    -----------------------

    * Ensure that the print-screen button is correctly mapped.

    - rmb>settings>system>USB>Devices
    - Double-click the entry for your keyboard in the devices list.
    - In the new window double-click the HID entry in the list of interfaces.
    - In the new window select the 'keyboard' tab. then tick the checkbox for 'track incoming events' (bottom right). WARNING: Be careful not to mess around in this interface - you can completely remap all the keys on your keyboard and make it unusable.
    - Press your 'print screen' button. This should highlight the 'print screen' entry in the left-hand pane - the right hand pane shows what the currently-selected button in the left-hand pane is assigned to - probably 0x7f (ie bugger all) in this case.
    - Wtih 'Print Screen' highlighted in the left-hand pane, select entry "0x6c unprintable sequence" in the right hand pane.
    - Click 'Save' (to save it for just this keyboard) or 'Save as default' (to save it for all keyboards). Then clsoe the window with the 'interfaces' list. Then click 'Save' on the USB preferences window.
    - Now make yourself a nice relaxing cup of tea, that's the hard bit done.

    -----------------------

    **set up a hotkey to launch grabber

    - RMB>Settings>Ambient>Keyboard
    - Click the 'Add a Hotkey' button - a new entry will appear in the 'Custom Commands Hotkeys' list.
    - Give it a name (eg PrtScr) and in the second box press your 'print screen' button - the string 'prtscr' should appear.
    - Click the 'Edit Command' button next to the new entry - a new window is opened;
    - Click the 'ADD' button, select 'AmigaDOS' and enter 'sys:applications/grabber' in the command line THEN PRESS ENTER.
    - Click Save.
    - Drink tea.

    -----------------------

    As an alternative to launching grabber directly from the hotkey, a simple script can be used instead to prevent multiple instances of grabber being launched.
    Everything is the same as above, except instead of entering 'sys:applications/grabber' in the hotkey command line enter 'execute s:prtscr'.

    Save the following as s:prtscr :

    Quote:

    ; checks if magicbeacon is installed and sets notify system
    if exists SYS:MorphOS/Data/MagicBeacon/MagicBeacon
    set Notify "sendbeacon"
    else
    set Notify "echo >CON:200/200/480/300/PrtScr/AUTO/WAIT/CLOSE"
    endif

    status >NIL: COM "grabber"
    if NOT WARN
    $notify "Grabber is already running..."
    quit
    endif
    cd sys:utilities
    run >NIL: grabber



    EDIT: Updated to correctly map print screen button.

    [ Edited by boot_wb 11.07.2013 - 10:47 ]
    www.hullchimneyservices.co.uk

    UI: Powerbook 5,6 (1.67GHz, 128MB VRam): OS3.1, OSX 10.5.8
    HTPC: Mac Mini G4 (1,5GHz, 64MB VRam): OS3.1 (ZVNC)
    Audiophile: Efika 5200b (SB Audigy): OS3.1 (VNC + Virtual Monitor)

    Windows free since 2011!
  • »23.06.13 - 14:28
    Profile Visit Website