Giter VIP home page Giter VIP logo

mshafer1 / ahk-generator Goto Github PK

View Code? Open in Web Editor NEW
31.0 6.0 7.0 8.43 MB

A single page website to provide a UI for the 3 most common uses for AHK and defining custom hotstrings and hotkeys to trigger them

Home Page: http://ahkgen.com

License: MIT License

CSS 29.59% JavaScript 21.38% HTML 7.04% Python 7.24% Ruby 0.02% Less 17.26% SCSS 17.48%
ahk hotkey autohotkey-generator w3-css fontawesome-icons jquery autohotkey

ahk-generator's People

Contributors

dependabot[bot] avatar mshafer1 avatar ptar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ahk-generator's Issues

Append Edit-Shortcut

Please automatically insert a hotkey to edit the generated script.

Example on Ctrl-Win-#

;Edit
^##::ActivateOrOpenChrome("editscript", "https://www.ahkgen.com/?length=2&comment0=Just+a+Hotstring&func0=STRING&skeyValue0=just&input0=Just+a+Hotstring&option0=Replace&comment1=Regards&func1=STRING&skeyValue1=br&input1=Best+regards&option1=Replace")

This way, it would be easy to edit your own generated script at any time.

Alternatively: Add a function which generates the Edit-URL based on the contents of the local script.

Ease the use of multi-line custom code by automatically adding necessary syntax

Short description

If you enter custom code consisting of more than one line, the initial EOL and the final 'return' should be added automatically, if not present.

Detailed description

For example, generating the current timestamp in a way it can be used in filenames with the shortcut Ctrl-Win-e have to look like this in AHK:

;It will look like 2018-10-05_08.36h
^+#e:: 
FormatTime, CurrentDateTime,, yyyy-MM-dd_HH.mm'h 
SendInput %CurrentDateTime%
return

If I only put

FormatTime, CurrentDateTime,, yyyy-MM-dd_HH.mm'h 
SendInput %CurrentDateTime%

in the custom code field, it won't work, even if I append the line with 'return'.
There must be an initial EOL after the shortcut and before the code.

It would be great if this initial EOL and the return would added, if they don't exist.

share to facebook link broken when url is shortened

it looks like FB is applying url escaping, breaking the code:

-Actual link +FB link:

-https://www.ahkgen.com/?version=1.0&compressed=aW5kZXhlcz0wJTJDMSUyQzIlMkMzJTJDNCUyQzUlMkM2JTJDNyZjb21tZW50MD0lMjIlM0JkZWdyZWUlMjIraXMrcmVwbGFjZWQrd2l0aCslQzIlQjAmZnVuYzA9U1RSSU5HJnNrZXlWYWx1ZTA9JTYwyUAmaW5wdXQwPTB4MDBiMCZvcHRpb24wPVNlbmRVbmljb2RlQ2hhcsh8Mcd8c21pbNd7RTIlOTglQkHFfjHRfjHHfsVCxn0xPTB4MjYzQcd9Mdh9Msd9ZnJvd27dfTnFfTLRfTLHfcVCxn0yxn05x30y2H0zx311cNl6ODYlOTHFejPRejPHenVwxnczxHcxOTHHdzPYdzTHd2T8APPEeTPFeTTReTTHecRBxns0xnszx3s02Hs1x3tsZWZ03XvmAmk10Xs1x3vEQcZ7NcZ76AJnNdh7Nsd7cmlnaN58MsV8NtF8Nsd8xULGfTbGfTLHfTbYfTfHfXBp1npDRiU45gDzN9F3N8d3cGnGdDfkA1gzQ+gA8TfQdA==
+https://www.ahkgen.com/?version=1.0&compressed=aW5kZXhlcz0wJTJDMSUyQzIlMkMzJTJDNCUyQzUlMkM2JTJDNyZjb21tZW50MD0lMjIlM0JkZWdyZWUlMjIraXMrcmVwbGFjZWQrd2l0aCslQzIlQjAmZnVuYzA9U1RSSU5HJnNrZXlWYWx1ZTA9JTYwyUAmaW5wdXQwPTB4MDBiMCZvcHRpb24wPVNlbmRVbmljb2RlQ2hhcsh8Mcd8c21pbNd7RTIlOTglQkHFfjHRfjHHfsVCxn0xPTB4MjYzQcd9Mdh9Msd9ZnJvd27dfTnFfTLRfTLHfcVCxn0yxn05x30y2H0zx311cNl6ODYlOTHFejPRejPHenVwxnczxHcxOTHHdzPYdzTHd2T8APPEeTPFeTTReTTHecRBxns0xnszx3s02Hs1x3tsZWZ03XvmAmk10Xs1x3vEQcZ7NcZ76AJnNdh7Nsd7cmlnaN58MsV8NtF8Nsd8xULGfTbGfTLHfTbYfTfHfXBp1npDRiU45gDzN9F3N8d3cGnGdDfkA1gzQ%20gA8TfQdA%3D%3D&fbclid=IwAR3Yuxn9PuQOTTeCmRBHnBXiGyue_eC9fJU3IaMC87ep2MR2ydaYeW3gyNw

Any change needs to mark dirty

Currently only new or deleted rows makes the submit button enabled, this needs to also happen when a comment or hotkey or function is changed

Handle missing comment keys

Some platform strip off empty values - since comments are allowed to be empty, this can be problematic. If we allowed for the comment to be missing from the URL (assumed empty), this should fix it.

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.