Opera 内部命令语法详解

2024-04-07 13:08

本文主要是介绍Opera 内部命令语法详解,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

Syntax | 语法

A general syntax for a single command:
Opera 内部命令基本语法:

代码: 全选
Action, property1, property2, label, icon
(动作, 属性1, 属性2, 标题, 图标)



Example | 示例


代码: 全选
Show popup menu, "Browser Menu Bar", , , "Menu"


Show popup menu is the action, "Browser Menu Bar" is the property to pass to the command and "Menu" is an icon defined in a skin file. Note that all the comma delimiters are entered even if that portion is blank.
显示弹出菜单是动作,"Browser Menu Bar"是传递给命令的属性,"Menu"是皮肤文件中定义图标名称。注意,指定了图标后,即使中间部分参数为空,相应逗号分隔符也不能省略。


Combining Actions: Alternative | 组合动作: 或

| is similar to an OR operator: if the first action doesn't work, then the second will be used instead. In the following example Opera cannot execute 'Enter Fullscreen' if it already is fullscreen. More than two actions can be used, too:
| 号类似 OR 操作符: 如果第一个动作不能使用,则使用第二个。下列示例中 Opera 不能在已全屏的情况下执行 'Enter Fullscreen'。也可使用两个以上动作:

代码: 全选
Enter fullscreen | Leave fullscreen



Combining Actions: Conjunction | 组合动作: 与

& is the concatenation operator, allowing you to string several commands to perform in order. Note that the actions are taken almost simultanously, not one by one so don't rely on one command finishing before the other starts:
& 号为串联操作符,允许顺序执行多个命令。不过要注意实际上动作几乎是同时执行的,并非依次进行,因此下一命令的开始不依赖前一命令的结束。

代码: 全选
Scroll down & Scroll down & Scroll down



Combining Actions: Extra Dropdown | 组合动作: 附加下拉菜单

+ shows a small arrow which is normally used to add a dropdown menu. However, that small arrow can be used with any action:
+ 号显示小箭头,通常用于添加下拉菜单。不过小箭头也可用于各种动作。

代码: 全选
Rewind + Show popup menu, "Internal Rewind History"
Save document As,,,"Save" + Save document with images as



<strong>Combining Actions: Cycler | 组合动作: 循环</strong>

> is a command cycler introduced in V7.5 — it cycles from one command to the next through the list, and guarantees the name/icon can change at each state:
> 是 v7.5 引入的循环命令 — 循环执行列表中的命令,确保名称/图标可在每个状态下改变:

代码: 全选
Set alignment, "document view toolbar", 0, "Show" > Set alignment, "document view toolbar", 6, "Hide"



Combining Actions: Icon Placement | 组合命令: 图标位置

When you make multiple action commands, you may wish to add an icon or title. The icon must then be appended to the first command:
组合多项动作命令时,可能希望添加一个图标或者标题,这时图标必须添加在第一个命令中:

代码: 全选
Copy image,,,,"Window Document Icon" & Execute program, "i_view32.exe", "/clippaste"



You can also pass selected or predefined text, the URL or the cache file path to a command, see
IniFileVariables for more information:
也可向命令传递当前选定或预定义的文本、URL 地址或缓存中的文件路径:



Opera uses a range of special variables that can be used in some of these INI commands (not all):
Opera 使用了一些特殊变量,可用于某些 INI 命令 (并非全部):

%s is the filename of local source cache | 本地缓存文件名

%t is currently selected text | 当前选定的文本

%c is the clipboard content | 剪贴板中的内容

%u is active document url | 当前页面地址

%l is the address of a link you right-click | 右键点击的链接


NOTE: If the letter is written in uppercase (ie. %S) the parameter is put inside a pair of quotes ("). This is useful for instance if you want to open some document from the cache in a source viewer because the path to the file may contain spaces.
注意: 如果字母大写 (如: %S ) 则参数包含在双引号(")之间。此功能非常有用,比如使用其他源码查看器打开缓存页面时,地址可能包含空格,这时就需要用引号进行限定。

这篇关于Opera 内部命令语法详解的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/882679

相关文章

Spring Boot中的路径变量示例详解

《SpringBoot中的路径变量示例详解》SpringBoot中PathVariable通过@PathVariable注解实现URL参数与方法参数绑定,支持多参数接收、类型转换、可选参数、默认值及... 目录一. 基本用法与参数映射1.路径定义2.参数绑定&nhttp://www.chinasem.cnbs

MySql基本查询之表的增删查改+聚合函数案例详解

《MySql基本查询之表的增删查改+聚合函数案例详解》本文详解SQL的CURD操作INSERT用于数据插入(单行/多行及冲突处理),SELECT实现数据检索(列选择、条件过滤、排序分页),UPDATE... 目录一、Create1.1 单行数据 + 全列插入1.2 多行数据 + 指定列插入1.3 插入否则更

Redis中Stream详解及应用小结

《Redis中Stream详解及应用小结》RedisStreams是Redis5.0引入的新功能,提供了一种类似于传统消息队列的机制,但具有更高的灵活性和可扩展性,本文给大家介绍Redis中Strea... 目录1. Redis Stream 概述2. Redis Stream 的基本操作2.1. XADD

Spring StateMachine实现状态机使用示例详解

《SpringStateMachine实现状态机使用示例详解》本文介绍SpringStateMachine实现状态机的步骤,包括依赖导入、枚举定义、状态转移规则配置、上下文管理及服务调用示例,重点解... 目录什么是状态机使用示例什么是状态机状态机是计算机科学中的​​核心建模工具​​,用于描述对象在其生命

Java JDK1.8 安装和环境配置教程详解

《JavaJDK1.8安装和环境配置教程详解》文章简要介绍了JDK1.8的安装流程,包括官网下载对应系统版本、安装时选择非系统盘路径、配置JAVA_HOME、CLASSPATH和Path环境变量,... 目录1.下载JDK2.安装JDK3.配置环境变量4.检验JDK官网下载地址:Java Downloads

nginx -t、nginx -s stop 和 nginx -s reload 命令的详细解析(结合应用场景)

《nginx-t、nginx-sstop和nginx-sreload命令的详细解析(结合应用场景)》本文解析Nginx的-t、-sstop、-sreload命令,分别用于配置语法检... 以下是关于 nginx -t、nginx -s stop 和 nginx -s reload 命令的详细解析,结合实际应

C#连接SQL server数据库命令的基本步骤

《C#连接SQLserver数据库命令的基本步骤》文章讲解了连接SQLServer数据库的步骤,包括引入命名空间、构建连接字符串、使用SqlConnection和SqlCommand执行SQL操作,... 目录建议配合使用:如何下载和安装SQL server数据库-CSDN博客1. 引入必要的命名空间2.

使用Python删除Excel中的行列和单元格示例详解

《使用Python删除Excel中的行列和单元格示例详解》在处理Excel数据时,删除不需要的行、列或单元格是一项常见且必要的操作,本文将使用Python脚本实现对Excel表格的高效自动化处理,感兴... 目录开发环境准备使用 python 删除 Excphpel 表格中的行删除特定行删除空白行删除含指定

MySQL 多列 IN 查询之语法、性能与实战技巧(最新整理)

《MySQL多列IN查询之语法、性能与实战技巧(最新整理)》本文详解MySQL多列IN查询,对比传统OR写法,强调其简洁高效,适合批量匹配复合键,通过联合索引、分批次优化提升性能,兼容多种数据库... 目录一、基础语法:多列 IN 的两种写法1. 直接值列表2. 子查询二、对比传统 OR 的写法三、性能分析

MySQL中的LENGTH()函数用法详解与实例分析

《MySQL中的LENGTH()函数用法详解与实例分析》MySQLLENGTH()函数用于计算字符串的字节长度,区别于CHAR_LENGTH()的字符长度,适用于多字节字符集(如UTF-8)的数据验证... 目录1. LENGTH()函数的基本语法2. LENGTH()函数的返回值2.1 示例1:计算字符串