A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://kmeleon.sourceforge.net/manual/macro-lang.html below:

Macro Language

  open( URL );
	Open url in the current browser window.

  opennew( URL );
	Open url in a new browser window.

  openbg( URL );
	Open url in a new background window.

  setpref( TYPE, "user.preference.variable", VALUE);
	Sets user preferences.
	TYPE = BOOL | INT | STRING

  $VALUE = getpref( TYPE, "user.preference.variable" );
	Gets a user preference.
	TYPE = BOOL | INT | STRING

  togglepref( TYPE, "user.preference.variable", VALUE1, VALUE2, ... );
	Toggles a user preference between a series of values.
	TYPE = BOOL | INT | STRING
	(booleans always toggle between true and false)
 
 exec( PROGRAM );
	Execute an external program.

  id( COMMAND_ID );
	Send a message id to the current window.
	See the complete list of command IDs.

  plugin( PLUGIN, COMMAND );
  pluginmsg( PLUGIN, COMMAND, ARGS );
  $REPLY = pluginmsgex( PLUGIN, COMMAND, ARGS, TYPE );
	Run a plugin command.
	See the complete list of plugin commands.

  statusbar( TEXT );
	Show the message text on the status bar.

  alert( MESSAGE, TITLE, ICON );
	Show a messagebox.
	ICON = EXCLAIM | INFO | STOP | QUESTION

  $RESULT = confirm( MESSAGE, TITLE, BUTTONS, ICON );
	Show a messagebox and ask for confirmation.
	BUTTONS = RETRYCANCEL | YESNO | YESNOCANCEL | ABORTRETRYIGNORE;
	ICON = EXCLAIM | INFO | STOP | QUESTION
	RESULT = OK | YES | NO |ABORT | RETRY | IGNORE | 0

  $VALUE = prompt( PROMPT, TITLE, DEFAULT_STRING );
	Show a modal 'prompt' dialog that returns a string value.

  $TEXT = getclipboard();
	Get and return data from the clipboard.

  setclipboard( TEXT );
	Set data to the clipboard.

  $SUB = gensub( r, s, h, t );
	search the target string t for matches of the string r.  If h
	is a string beginning with g or G, then replace all matches
	of r with s.  Otherwise, h is a number indicating which match
	of r to replace.  The modified string is returned as the
	result of the function.

  $SUB = gsub( r, s, t );
	for each substring matching the string r in the string t,
	substitute the string s, and return the modified string.

  $I = index( s, t );
	returns the index of the string t in the string s, or -1 if t
	is not present.

  $LEN = length( s );
	returns the length of the string s.

  $SUB = sub( t, s, t );
	just like gsub(), but only the first matching substring is
	replaced.

  $SUB = substr( s, i [, n] );
	returns the at most n-character substring of s starting at i.
	If n is omitted, the rest of s is used.

  $BASE = basename( NAME [, SUFFIX] );
	Returns NAME with any leading directory components removed.
	If specified, also remove a trailing SUFFIX.

  $DIR = dirname( NAME );
	Returns NAME with its trailing /component removed; if NAME
	contains no /'s, output `.' (meaning the current directory).

  $HOST = hostname( URL );
	Returns hostname of given URL.

  macros( MACRO );
	Execute another macro.

  &MACRO
	Alias for 'macros(MACRO)'

Not all parameters are required for alert, confirm and prompt commands.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.3