• administrators

    Autohotkey collection for the TIA Engineering Portal
    This Autohotkey project is intended to help maximize speed and efficiency of development in the TIA Portal environment through inserting and wrapping code into snippets mostly used in SCL programming language. This is mostly intended to expand functionality that is mostly available in other GUI code editors, which strangely enough has not been included in TIA Portal yet.

    To use this ahk file, you obviously need Autohotkey, which can be downloaded here

    If you don't know how Autohotkey works, go read the documentation here

    Following functions are actually included in this project:

    • Wrap selected code around a REGION by pressing SHIFT+WIN+R:

    • Wrap selected code around a IF by pressing SHIFT+WIN+I:

    • Wrap selected code around a CASE by pressing SHIFT+WIN+C:

    • Wrap selected code around a FOR by pressing SHIFT+WIN+F:

    • Wrap selected code around a WHILE by pressing SHIFT+WIN+W:

    • Wrap selected code around a REPEAT by pressing SHIFT+WIN+Q:

    • Comment and uncomment selected code by pressing SHIFT+WIN+M:

    • Invert selected assignment row by pressing SHIFT+WIN+-:

    • Wrap selected code in parenthesis by pressing SHIFT+WIN+9

    • Close current Tab with WIN+W

    This project helps you bootstrap your own code wrapping functionalities, since it includes a function that generally works with any kind of Text passed to its parameters.

    WrapClipText(Left, Right)

    Just replace the Left and Right parameters with your desired text as a new hotkey entry at the bottom of the file, inside the WinActive condition, like so:


    You can find the project on GitHub