I am looking to have a macro made for me to use in Microsoft Word 365 (current). The purpose of this macro is to give a visual representation of delays in typing and word formation in a visually simplistic way.
I need the macro script to do the following:
• If the user stops typing, after some short amount of time, the computer will begin advancing the cursor based on these rules:
o If the user stops typing mid word, after a couple of seconds, hyphenate the word and begin placing a space every 1 second until the user begins to type.
o If the user stops typing after a space, begin placing space every 1 second until the user begins to type.
o If the user stops typing after a period “.”, give them a couple of seconds, then start placing a space every 1 second until the user begins to type.
Expressed in a little more programmer-oriented way:
• If user has not typed for some configurable amount of time, begin loop
• Check the following conditions continuously or use intrupts and repeat action until user begins typing on keyboard.
o If previous key was aA through zZ or 1-0 or any other asci character not defined below, then wait 2 seconds then key hyphen “-“
o If previous key was space “ “ then wait 1 second and key space “ “
o If previous key was period “. , ! ?” Then wait 2 seconds then key space “ “
o If previous key is not any of the defined conditions above or something goes wrong exit with an error.
• If user starts typing on keyboard, reset all values timers and conditions to initial values and restart from the top.
• Regardless of the initial character, the program will transition over to space “ “ by the second iteration of the loop.
There are a few things to consider:
• The purpose of this macro is to keep the cursor moving forward at regular intervals and needs to transition to placing a space every 1 second regardless of the initial condition.
• The macro must detect and mute itself while the user is typing and cannot add phantom characters into the text unless the conditions to do so have been met.
• There cannot be any notable delays in typing caused by the macro running in the background.
Hi
I've read the project description carefully.
I have 5 years of experience in excel VBA and MS word 365,
so I became an expert that fits perfectly with your requirement fields.
It would be a great pleasure for me to have the opportunity working with you.
✓ Looking forward to hearing more about your project via chat.
Best regards!