Giter VIP home page Giter VIP logo

rufaydiumquickmenu's Introduction

Rufaydium Quick Menu

Menu to assist during writing scripts using Rufaydium, a WebDriver library for AutoHotkey.

It will paste the selected entry from a submenu at the current caret location in your editor.

Rufaydium Quick Menu screenshot

Setup

At first startup it will create RufaydiumQuickMenu.ini. Available keys:

Key Default
Hotkey ^k
Editor ERROR
Browser Browser
Session Session

Hotkey in AutoHotkey notation used to show the menu.

Editor: one executable name (notepad.exe, notepad++.exe, atom.exe, etc) to limit the menu to specific program.

Examples:

Define Browser as Chrome, in the Menu Browser:=new Rufaydium() becomes Chrome:=new Rufaydium()
Define Session as MyPage, in the Menu Session.NewTab() becomes MyPage.NewTab()

Quick Access / Favourites (1)

To add personal favourites to the menu, create a file called QuickAccess.txt. Each line in that file will become a menu entry.
Text after a semi-colon ; will become a menu hint.
Restart Rufaydium Quick Menu after editing QuickAccess.txt for new/changed entries to be loaded.

QuickAccess.txt will not be part of the Rufaydium Quick Menu repository[1].

Example:

Page.Navigate(url)
MyPage.getElementsbyName("img")[0].click() ; Click button

Templates (2)

To add My Templates to the menu as entry in the menu, create a Templates folder first.
Place AutoHotkey snippets and (template) files to that folder with the .ahk extension.
Restart Rufaydium Quick Menu, and a new My Templates menu item should appear.

The Templates folder and the files therein will not be part of the Rufaydium Quick Menu repository[1].

Example:

Templates\new script.ahk

#Include Rufaydium.ahk
Chrome:=new Rufaydium()
Page:=Chrome.NewSession()
Page.Navigate()
Return

; code here

#z:: ; winkey-z to close session, webdriver, browser and script
Chrome.QuitAllSessions() ; close all session 
Chrome.Driver.Exit() ; then exits driver
ExitApp
Return

RufaydiumQuickMenu.txt (3)

Nearly all available regular Rufaydium/WebDriver commands, functions, methods you may need to write a script.
Suggestions for RufaydiumQuickMenu.txt and the script welcome via pull requests.

As there might be changes to RufaydiumQuickMenu.txt, it is probably best left unmodified.
Any changes will be lost when updating from this repository. (See updating below).

Updating

[1] Both QuickAccess.txt and the folder and files in Templates will not be part of this repository so updating the script should not affect your personal additions.

rufaydiumquickmenu's People

Contributors

hi5 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.