topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Friday May 20, 2022, 6:23 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: NANY 2022 Entry -- WayText  (Read 982 times)

kunkel321

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 586
    • View Profile
    • Donate to Member
NANY 2022 Entry -- WayText
« on: December 03, 2021, 08:21 AM »
NANY 2022 Entry Information

Application Name WayText
Version v5-17-2022
Short Description Enters boilerplate text into webforms and such.
Supported OSes Windows
Web Page Just this forum post
Download Link See bottom of post.
System RequirementsAny modern version of Windows should work.
Author See OP on the left.

Description
WayText was made by a school psychologist who works for a public school district.  It was made to add a personalized touch to boilerplate text, by adding a student’s name and gender on-the-fly via simple replacement codes/placeholder that are embedded in the boilerplate text.  The tool is designed to be used in webforms. 

Features
-Boilerplate text snippets that are customized for each student.
-Binary-to-nonbinary grammar fixing.
-Entries can easily be made or edited on-the-fly.
-Supports entering contact info for multiple schools/offices.
-Remembers your weekly building schedule.
-Remembers last-used student.
-Remembers and waits for active window.
-Windows admin account not required.
-Boilerplate components can be typed or pasted.
-Optional sub(mini)forms for further customization of text entries.
-Separate GUI-based settings tool.
-Puts clipboard content back when done.

Updates
-5-17-2022 Added an optional post-type delay, to wait for playback before sending Ctrl+V command to Windows.

Planned Features
TBD

Screencast
*I should note that the production quality of the 43 min video is not great.  I might re-record it later.  Also note, the zipped folder contains a PDF of tips.  There are things in the PDF (WayTips.pdf) that are not covered in the video. 


Usage
Installation
No installation!  It is a portable application that runs right from its folder.

Using the Application
Download and unzip the folder, then double-click the WayText.exe file (Green icon with white H).  WayText.exe is actually a renamed copy of AutoHotkey.exe.  The exe reads from the same-named AHK file.  The AHK file contains the actual script.  Therefore, WayText has the same limitations as AutoHotkey, which acts like its “run time environment.”  The little green AutoHotkey icon will also appear in the Windows System Tray.  Right click that and choose “Exit” or “Reload.”  If changes are made to the settings, a reload/restart of WayText will be needed. 

Uninstallation
In the wtSettings, at the bottom of the Activation Mode Tab, there is an option to “Start with Windows.”  If this is used, a startup link will be created in the Windows Startup folder.  This is the only thing that gets added to Windows.  Use the same setting to also remove the startup link.  Then right click the above-mentioned icon in the Windows System Tray.  Choose “Exit.”  Then delete the WayText folder. 

Tips
In the download there is a list of tips called WayTips.pdf. 
2-8-2022 update:  When I added the feature to allow WayText to stay in RAM and have its own hotkey, I also added the ability to have it start with Windows.  *But* I didn't want the GUI to popup every time Windows is started.  So I made it check for an active Window, and *not* pop up if there is no active Window.  Just now I realized that, if Windows is already running, and you try to activate it from the Desktop, it has that same effect of not popping up (because there is no active Window).  I consider this a feature and not a bug <wink>.  Really though, you'd never need to launch it from the Desktop, because there would never be an associated text field to type text in to.

Known Issues
Are there any issues that users should know about?
-Each boilerplate entry can have multiple components.  Each component can optionally by sent via “Type” or “Paste.”  If multiple simultaneous pastes occur in succession it will confuse Windows.  For this reason, there is a “post-paste delay.”  By default it is 100 milisecs, but this can be changed. 
-The above mention components are defined as key values in INI files.  Windows strips white spaces from the beginning and ending of string variables that are obtained from INI keys.  This can be an annoyance when creating boilerplate entry items. 
edit 1-4-2022:  -Due to the nature of Test information not lending itself to pasting, Paste commands are now ignored in test info boilerplate entries.

A couple more screenshots
(I just noticed the my real school names are in the new screenshots, but that's fine.  It's open info.)
Settings Window:
https://i.imgur.com/jpTsSDX.png

A few different colors:
https://i.imgur.com/NuPH15F.png

Regarding 32 vs 64 bit Systems
I'm currently using it as a 64bit app.  This information was just added to the WayTips.pdf file:
The files “WayText.exe” and “wtSettings.exe” are the executable files that get double-clicked at first run.   They are not compiled versions of the corresponding (same-named) .ahk files.  They are merely renamed copies of AutoHotkey.exe.  More specifically, they are copies of the 64 bit “AutoHotkeyU64.exe.”  If a person has a 32 bit windows, they could obtain a copy of AutoHotkeyU32.exe and make two copies of it, renamed “WayText.exe” and “wtSettings.exe.”  That should work fine.
« Last Edit: May 17, 2022, 02:00 PM by kunkel321 »

relipse

  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 111
  • I love Jesus. Coding in PHP primarily.
    • View Profile
    • See my GitHub
    • Read more about this member.
    • Donate to Member
Re: NANY 2022 Entry -- WayText
« Reply #1 on: December 31, 2021, 07:31 PM »
Thanks for the entry!
Ex C++Builder coder, current PHP coder, and noob Qt Coder

kunkel321

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 586
    • View Profile
    • Donate to Member
Re: NANY 2022 Entry -- WayText
« Reply #2 on: January 04, 2022, 04:45 PM »
Thanks for the entry!
You are most welcome Relipse!   Hopefully it will be useful for somebody.

kunkel321

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 586
    • View Profile
    • Donate to Member
Re: NANY 2022 Entry -- WayText
« Reply #3 on: May 17, 2022, 02:20 PM »
I found an annoying bug...  Mostly I use the tool for typing text narratives into webforms.  The quickest way to do this is with

Code: Text [Select]
  1. Paste a segment of text.
  2. Type out {Tab}{Tab}
  3. Paste another segment of text.
  4. Type out {Tab}{Tab}
  5. Etc.


It works fine like that, but recently I happened to end up with a setup such as

Code: Text [Select]
  1. TYPE a segment of text.
  2. Type out {Tab}{Tab}
  3. Paste a segment of text.
  4. Type out {Tab}{Tab}
  5. Etc.


WayText has to use the Windows clipboard to do those paste commands.  It does them by simulating "Ctrl+V" key presses.  The app also will save your original clipboard contents and put them back on the clipboard after doing the paste commands.  What I found was that -- when a typed-out string was followed by pastes -- the AutoHotkey engine would quickly reset the clipboard and then restore the original content before Windows' keyboard buffer could catch up.  The result was

Code: Text [Select]
  1. TYPE a segment of text.
  2. Type out {Tab}{Tab}
  3. Erroneously Paste your original clipboard content, rather than the other segment of text.
  4. Type out {Tab}{Tab}
  5. Etc.

The solution -- until I can come up with something less kludgy -- is to add a dynamic pause after the text is played.  The length of pause is dynamic because it's generated from the length of the text string.  This dynamic pause (actually a "Sleep" command) only is applied if an entry contains both 'paste' and 'type' components.  This is not a perfect system, as some apps (looking at you Chrome) accept the typing more slowly than others.   If a text sting is no more than 600 characters or so, then the current delay should work.  The current post-type delay is 200 milisecs + (strLength * 2).

Updated version (v5-17-2022) is in top post.  Note that the Settings tool is also updated.  It has a checkbox to use/don't use post-type delay.