To main page | Opera Unite HowTo'sWidget ObjectPlaying with the Widget object: First of all - visible structure (via pprint from uniteness): [object Widget].setPreferenceForKey(...) // function [object Widget].preferenceForKey(...) // function [object Widget].prepareForTransition(...) // function [object Widget].performTransition(...) // function [object Widget].openURL(...) // function [object Widget].getAttention(...) // function [object Widget].showNotification(...) // function [object Widget].show(...) // function [object Widget].hide(...) // function [object Widget].addEventListener(...) // function [object Widget].removeEventListener(...) // function [object Widget].dispatchEvent(...) // function [object Widget].identifier = "058944100304941301421245419213" [object Widget].ondragstart = [null??] [object Widget].ondragstop = [null??] [object Widget].onhide = [null??] [object Widget].onshow = [null??] [object Widget].originURL = "" [object Widget].widgetMode = "widget" gain_experience(+1)wigdet.show()Mysterious window appears :) widget.hide()Whew! > opera.toTray() // just kidding, there's no such method...moving on! widget.getAttention() // start dancing in court room!The Need for Ritalin - doesn't do anything. KVwidget.setPreferenceForKey('bar','foo'); r.write( widget.preferenceForKey('foo') );You earn +5 lock-picking skill for discovering a persistent key-value storage! Nice, it writes 'bar' (which I wrote there), it is not reset between connections, would need to test that for limits. I.e. you can use it as a regular key-value database, the question is performance. > widget.setHotKey('Ctrl+Shift+E', ERROR_CONSOLE_ALWAYS_ON_TOP) sadly, doesn't do anything too, except for raising some beautiful exception if(computerOwnerIsBusyProgramming()) { widget.openURL('http://twitter.com'); widget.openURL('http://facebook.com'); widget.openURL('http://slashdot.org'); widget.openURL('http://cracked.com');Opens some nice windows for Opera Unite owner. Recommend-me-a-page-to-open Service anyone? :) I know I wouldn't let anyone see my screen if that Service is impelemented. Seriously - opens a new tab in browser on "server-side". Might be useful for recommendations to update widget.openURL('http://..../new-version.us') | Last updated
|