Using INNPUTBOX types text backwards in MS Teams

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
RyanMiller
Posts: 3
Joined: 27 Mar 2023, 09:20

Using INNPUTBOX types text backwards in MS Teams

Post by RyanMiller » 27 Mar 2023, 10:19

I can't figure this out :crazy: and this is my first time looking at AHK. The scripts in question have been used here since 2017, but we were on Lotus Notes/Sametime until a year ago, now we have O365 with Teams.

When using the INPUTBOX to generate a message, the message types out backwards in MS Teams.

With INPUTBOX
?per eht htiw ni kcehc esaelp enoemos naC .xua eeffoc gnol ni si nayR ,olleH

IF INPUTBOX line is deleted:
Hello, is in long coffee aux. Can someone please check in with the rep?

All other apps type correctly, even teams.microsoft.com types fine.

Here is the code in question

Code: Select all

!2::
InputBox, Name, Rep Name,,,200,100
SendInput, {RAW}Hello, %Name% is in long coffee aux. Can someone please check in with the rep?
return


RyanMiller
Posts: 3
Joined: 27 Mar 2023, 09:20

Re: Using INNPUTBOX types text backwards in MS Teams

Post by RyanMiller » 27 Mar 2023, 10:38

That's where I was going at first too - but I can't get regular text to type backwards.
If I create an INPUTBOX and don't even use the text input, it's still backwards.

RyanMiller
Posts: 3
Joined: 27 Mar 2023, 09:20

Re: Using INNPUTBOX types text backwards in MS Teams

Post by RyanMiller » 27 Mar 2023, 11:16

Just fixed it! Seems to be a timing issue between going from the input box to the Teams window.
Adding a 100ms sleep between inputbox and sendinput resolves it :D Anything lower than 100 and the text types backwards.
:bravo:
!2::
InputBox, Name, Rep Name,,,200,100
sleep, 100
SendInput, {RAW}Hello, %Name% is in long coffee aux. Can someone please check in with the rep?
return

Post Reply

Return to “Ask for Help (v1)”