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

相关文章

Flutter监听当前页面可见与隐藏状态的代码详解

《Flutter监听当前页面可见与隐藏状态的代码详解》文章介绍了如何在Flutter中使用路由观察者来监听应用进入前台或后台状态以及页面的显示和隐藏,并通过代码示例讲解的非常详细,需要的朋友可以参考下... flutter 可以监听 app 进入前台还是后台状态,也可以监听当http://www.cppcn

C++ Primer 标准库vector示例详解

《C++Primer标准库vector示例详解》该文章主要介绍了C++标准库中的vector类型,包括其定义、初始化、成员函数以及常见操作,文章详细解释了如何使用vector来存储和操作对象集合,... 目录3.3标准库Vector定义和初始化vector对象通列表初始化vector对象创建指定数量的元素值

MyBatis与其使用方法示例详解

《MyBatis与其使用方法示例详解》MyBatis是一个支持自定义SQL的持久层框架,通过XML文件实现SQL配置和数据映射,简化了JDBC代码的编写,本文给大家介绍MyBatis与其使用方法讲解,... 目录ORM缺优分析MyBATisMyBatis的工作流程MyBatis的基本使用环境准备MyBati

Nginx中location实现多条件匹配的方法详解

《Nginx中location实现多条件匹配的方法详解》在Nginx中,location指令用于匹配请求的URI,虽然location本身是基于单一匹配规则的,但可以通过多种方式实现多个条件的匹配逻辑... 目录1. 概述2. 实现多条件匹配的方式2.1 使用多个 location 块2.2 使用正则表达式

spring @EventListener 事件与监听的示例详解

《spring@EventListener事件与监听的示例详解》本文介绍了自定义Spring事件和监听器的方法,包括如何发布事件、监听事件以及如何处理异步事件,通过示例代码和日志,展示了事件的顺序... 目录1、自定义Application Event2、自定义监听3、测试4、源代码5、其他5.1 顺序执行

Java之并行流(Parallel Stream)使用详解

《Java之并行流(ParallelStream)使用详解》Java并行流(ParallelStream)通过多线程并行处理集合数据,利用Fork/Join框架加速计算,适用于大规模数据集和计算密集... 目录Java并行流(Parallel Stream)1. 核心概念与原理2. 创建并行流的方式3. 适

web网络安全之跨站脚本攻击(XSS)详解

《web网络安全之跨站脚本攻击(XSS)详解》:本文主要介绍web网络安全之跨站脚本攻击(XSS)的相关资料,跨站脚本攻击XSS是一种常见的Web安全漏洞,攻击者通过注入恶意脚本诱使用户执行,可能... 目录前言XSS 的类型1. 存储型 XSS(Stored XSS)示例:危害:2. 反射型 XSS(Re

linux本机进程间通信之UDS详解

《linux本机进程间通信之UDS详解》文章介绍了Unix域套接字(UDS)的使用方法,这是一种在同一台主机上不同进程间通信的方式,UDS支持三种套接字类型:SOCK_STREAM、SOCK_DGRA... 目录基础概念本机进程间通信socket实现AF_INET数据收发示意图AF_Unix数据收发流程图A

Go 1.23中Timer无buffer的实现方式详解

《Go1.23中Timer无buffer的实现方式详解》在Go1.23中,Timer的实现通常是通过time包提供的time.Timer类型来实现的,本文主要介绍了Go1.23中Timer无buff... 目录Timer 的基本实现无缓冲区的实现自定义无缓冲 Timer 实现更复杂的 Timer 实现总结在

Vue中动态权限到按钮的完整实现方案详解

《Vue中动态权限到按钮的完整实现方案详解》这篇文章主要为大家详细介绍了Vue如何在现有方案的基础上加入对路由的增、删、改、查权限控制,感兴趣的小伙伴可以跟随小编一起学习一下... 目录一、数据库设计扩展1.1 修改路由表(routes)1.2 修改角色与路由权限表(role_routes)二、后端接口设计