ThrottleApps

  • Home
  • Themes
  • News
  • Forum
  • Products
  • Tutorials
  • Wiki
  • 38.107.179.212
  • Talk for this IP
  • Register
Menu
  • ThrottleLauncher
    • Startup tutorial
    • Files
    • ThrottleConfig
    • Skinning
    • Packing themes
    • Troubleshotting
  • ThrottleLock
    • First steps
    • Files
    • Configuration
    • Skining
  • About
    • The author
    • Thanks
  • Search
Built-in commands
  • Page
  • Discussion
  • View source
  • History

Built-in commands

From ThrottleWiki

Jump to: navigation, search

Built-in commands can be used in the place of an exec attribute or in an event. Available built-in commands:

  •  :Config => Will open ThrottleConfig
  •  :ConfigSetup => Will open the configuration dialog for the theme.
  •  :Apps2Cat => Opens a dialog where you can assign app's to the category passed as parameter.
  •  :Page => Enable to open automatically specific xml page designed in your theme AND declared in the config.xml page. i.e: Open home.xml page
<action execute=":page" parameters="Home"/>

parameters: Case sensitive, should be the name of the page given in config.xml.

  •  :Script => Enable to execute changes in your xml page. i.e change object (named horizontal) X position to 218. Parameters: TODO.
    • set()
    • Add()
    • refresh()
    • RefreshRectangle() =>This is usefull if you change the positioning of an element to achieve some animations. A refresh() will do it but it's slow. If you change the positioning of an element you know the initial pos and the end pos so you can just refresh the locations you want...
<action execute=":Script" parameters="Horizontal:set(X,218)"/>


  •  :SendKey => Enable to emulate a key press. i.e: to Lock the device
<action execute=":SendKey" parameters="133"/>

A complete list in hexadecimal for keys is here (you'll have to change it to decimal) http://msdn.microsoft.com/en-us/library/bb431750.aspx

  •  :WifiToggle => Set Wifi ON/OFF or OFF/ON (No parameters needed)
  •  :BlueToothToggle => Set Bluetooth ON/OFF or OFF/ON (No parameters needed)
  •  :PhoneToggle => Set Phone ON/OFF or OFF/ON (Flight Mode) (No parameters needed)
  •  :SoundToggle => Set Sound ON/OFF or OFF/ON (No parameters needed)
  •  :VibrateToggle => Set vibrate mode ON/OFF or OFF/ ON (No parameters needed)
  •  :Reset => Soft reset (No parameters needed)
  •  :FreeRam => Free Memory by sending WM_HIBERNATE message (No parameters needed)
  •  :EditWidgets => This is an special action that will launch the widget selecting dialog. YOu must specify as parameters the names of the varaible to store the widgets to (must be a hiden configuration section variable) and the name of the page to refresh after widget selection.
  •  :ToPlugin => Special action. Currently is only used to send the selected contact to an especific plugin. This is how the contacts page currently works.
  •  :CallHistory => Display call history page (No parameters needed)
  •  :SetVariable => This one asigns a value to a dinamic variable (note that this is not a configuration variable). You can use dinamic variables just as registry or sistem state by using #$Variable,NAME#. And change the value using :SetVariable(NAME,Value). Note you'll have to initialize the variable on a PageLoad event.
  •  :NextPage => Will change to the next page. Note that the next page is the one included after the current one in the CONFIG.XML file and has nothing to do with the footer order.
  •  :PrevPage => Same as above
  •  :Play => You can use this one to play a sound. As parameter place the relative or absolute path of the wav or mp3 file.
  •  :Exit => This will close the app. In the plugin it will cause a full refresh.
  •  :Reload => deprecated. Will try to reload the setup without exit.
  •  :OthersPage (parameter is the page number). If launched from the stand alone app will make the today plugin to open the designated page, will make the oposite if launched from the today plugin.
  •  :Minimize => Will minimize the window: will only work if using the standalone app instead of the today plugin.
Retrieved from "http://www.throttlelauncher.com/wiki/index.php/Built-in_commands"
This page was last modified on 22 February 2009, at 15:30. This page has been accessed 4,401 times.
  • Powered by MediaWiki
  • Design by Paul Gu
Copyright © 2008 ThrottleLauncher. All Rights Reserved.