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

相关文章

详解MySQL中DISTINCT去重的核心注意事项

《详解MySQL中DISTINCT去重的核心注意事项》为了实现查询不重复的数据,MySQL提供了DISTINCT关键字,它的主要作用就是对数据表中一个或多个字段重复的数据进行过滤,只返回其中的一条数据... 目录DISTINCT 六大注意事项1. 作用范围:所有 SELECT 字段2. NULL 值的特殊处

SQL BETWEEN 语句的基本用法详解

《SQLBETWEEN语句的基本用法详解》SQLBETWEEN语句是一个用于在SQL查询中指定查询条件的重要工具,它允许用户指定一个范围,用于筛选符合特定条件的记录,本文将详细介绍BETWEEN语... 目录概述BETWEEN 语句的基本用法BETWEEN 语句的示例示例 1:查询年龄在 20 到 30 岁

CSS place-items: center解析与用法详解

《CSSplace-items:center解析与用法详解》place-items:center;是一个强大的CSS简写属性,用于同时控制网格(Grid)和弹性盒(Flexbox)... place-items: center; 是一个强大的 css 简写属性,用于同时控制 网格(Grid) 和 弹性盒(F

spring中的ImportSelector接口示例详解

《spring中的ImportSelector接口示例详解》Spring的ImportSelector接口用于动态选择配置类,实现条件化和模块化配置,关键方法selectImports根据注解信息返回... 目录一、核心作用二、关键方法三、扩展功能四、使用示例五、工作原理六、应用场景七、自定义实现Impor

nginx启动命令和默认配置文件的使用

《nginx启动命令和默认配置文件的使用》:本文主要介绍nginx启动命令和默认配置文件的使用,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录常见命令nginx.conf配置文件location匹配规则图片服务器总结常见命令# 默认配置文件启动./nginx

一文深入详解Python的secrets模块

《一文深入详解Python的secrets模块》在构建涉及用户身份认证、权限管理、加密通信等系统时,开发者最不能忽视的一个问题就是“安全性”,Python在3.6版本中引入了专门面向安全用途的secr... 目录引言一、背景与动机:为什么需要 secrets 模块?二、secrets 模块的核心功能1. 基

一文详解MySQL如何设置自动备份任务

《一文详解MySQL如何设置自动备份任务》设置自动备份任务可以确保你的数据库定期备份,防止数据丢失,下面我们就来详细介绍一下如何使用Bash脚本和Cron任务在Linux系统上设置MySQL数据库的自... 目录1. 编写备份脚本1.1 创建并编辑备份脚本1.2 给予脚本执行权限2. 设置 Cron 任务2

一文详解如何在idea中快速搭建一个Spring Boot项目

《一文详解如何在idea中快速搭建一个SpringBoot项目》IntelliJIDEA作为Java开发者的‌首选IDE‌,深度集成SpringBoot支持,可一键生成项目骨架、智能配置依赖,这篇文... 目录前言1、创建项目名称2、勾选需要的依赖3、在setting中检查maven4、编写数据源5、开启热

Python常用命令提示符使用方法详解

《Python常用命令提示符使用方法详解》在学习python的过程中,我们需要用到命令提示符(CMD)进行环境的配置,:本文主要介绍Python常用命令提示符使用方法的相关资料,文中通过代码介绍的... 目录一、python环境基础命令【Windows】1、检查Python是否安装2、 查看Python的安

HTML5 搜索框Search Box详解

《HTML5搜索框SearchBox详解》HTML5的搜索框是一个强大的工具,能够有效提升用户体验,通过结合自动补全功能和适当的样式,可以创建出既美观又实用的搜索界面,这篇文章给大家介绍HTML5... html5 搜索框(Search Box)详解搜索框是一个用于输入查询内容的控件,通常用于网站或应用程