unwanted scrambling of text strings
unwanted scrambling of text strings
Recently a text string has been scrambled - username@gmail.com is rendered as username@gmail.ocm That is the simplest example, another longer string has also not been rendered accurately. I've just noticed that it depends on where the string is pasted. Accurate in this thread and in Notepad, but scrambled in a different 'destination'. Is there a remedy ?
Re: unwanted scrambling of text strings
Like you said, it usually depends on the target application. There is no general solution, but you could try {text} mode.
Code: Select all
Sendinput {text}username@gmail.com
Re: unwanted scrambling of text strings
The code I have been using was
Send username@gmail.com
if I change that to
Send {text}username@gmail.com
it still pastes username@gmail.com into Notepad,
but where the text was scrambled, it remains blank (totally disabled).
Send username@gmail.com
if I change that to
Send {text}username@gmail.com
it still pastes username@gmail.com into Notepad,
but where the text was scrambled, it remains blank (totally disabled).
Re: unwanted scrambling of text strings
You can try different send modes and key delays.
Like said, it often depends on the target application - if you tell us what it is, some people might be able to help you testing. Otherwise, people can just give generalized advice.
Also, you could mention your AHK and Windows versions.
Like said, it often depends on the target application - if you tell us what it is, some people might be able to help you testing. Otherwise, people can just give generalized advice.
Also, you could mention your AHK and Windows versions.
Re: unwanted scrambling of text strings
The one application in which it NOW (not previously) fails (there may be others that I do not now remember) is 'Wordperfect 5.1+ for DOS' in x32Win10ProV21H1 using Autohotkey v1.1.33.01
Key delay is a concept I am familiar with - how would I apply that to 'send username@gmail.com' ?
Key delay is a concept I am familiar with - how would I apply that to 'send username@gmail.com' ?
Re: unwanted scrambling of text strings
Try this:
Code: Select all
Clipboard := "username@gmail.com"
Send, ^v
Re: unwanted scrambling of text strings
Your code is so much more complex than what I have shown you I use, that I can not see how to apply yours.
My 'boilerplate.ahk' is a list covering most letters of the alphabet (plus 'characters') with left-win key and then with right-win key.
Only very few would ever be pasted into WordPerfect (where the scrambling is likely to happen).
My 'boilerplate.ahk' is a list covering most letters of the alphabet (plus 'characters') with left-win key and then with right-win key.
Only very few would ever be pasted into WordPerfect (where the scrambling is likely to happen).
Re: unwanted scrambling of text strings
Are you referring to the following two lines as “so much more complex”…
Code: Select all
Clipboard := "username@gmail.com"
Send, ^v
Code: Select all
Send username@gmail.com
Re: unwanted scrambling of text strings
It sounds like a longer script is being used, but it is not posted here. Seeing the script may help readers debug it.
Re: unwanted scrambling of text strings
My script has 60 to 70 lines, all variants of
<#3:: Send username@gmail.com
where '3' is any letter, digit or character
and 'username@gmail.com' is whatever text string interests me.
There is NO
Code: Select all - Toggle Line Numbers,
Clipboard : =
or 'v
I cant see where or how to introduce those 'new terms', that is what makes it complex for me.
AND the suggested addition of
{text}
is missing.
Only now do I realise that
SendInput
also differs from my
send
and again, I don't know what how to implement that change.
A further difficulty is that while writing a reply, the previous posts are invisible, so the way this forum operates also takes me by surprise.
<#3:: Send username@gmail.com
where '3' is any letter, digit or character
and 'username@gmail.com' is whatever text string interests me.
There is NO
Code: Select all - Toggle Line Numbers,
Clipboard : =
or 'v
I cant see where or how to introduce those 'new terms', that is what makes it complex for me.
AND the suggested addition of
{text}
is missing.
Only now do I realise that
SendInput
also differs from my
send
and again, I don't know what how to implement that change.
A further difficulty is that while writing a reply, the previous posts are invisible, so the way this forum operates also takes me by surprise.
Re: unwanted scrambling of text strings
gregster suggested
but you did not indicate whether you tried this script.
Testing this would be easy, fast, and informative. If it does not work, you can try running your script as admin.
Code: Select all
Sendinput {text}username@gmail.com
Testing this would be easy, fast, and informative. If it does not work, you can try running your script as admin.
Re: unwanted scrambling of text strings
You are mistaking the headers of the code box as part of the script. Your script has:
Send username@gmail.com
and I suggested replacing it with:
Clipboard := "username@gmail.com"
Send, ^v
Re: unwanted scrambling of text strings
I made the substitution you suggested, and now nothing gets pasted.
Re: unwanted scrambling of text strings
How did you do it?
If you made it like this:
<#3::Clipboard := "username@gmail.com"
Send, ^v
….then nothing would get pasted because that’s a single-line hotkey that ends after executing the first line. It would need to be a multi-line hotkey definition, like this:
<#3::
Clipboard := "username@gmail.com"
Send, ^v
return
If you made it like this:
<#3::Clipboard := "username@gmail.com"
Send, ^v
….then nothing would get pasted because that’s a single-line hotkey that ends after executing the first line. It would need to be a multi-line hotkey definition, like this:
<#3::
Clipboard := "username@gmail.com"
Send, ^v
return
Re: unwanted scrambling of text strings
Jose-phil: please post a short test script that you are trying to get working. This will ease the debugging process. It's better than "I made the changes..." Will lead to a faster solution.
Re: unwanted scrambling of text strings
Boiler - you 'guessed' correctly I did do as your first pic shows, but doing it as the second pic shows, produces a reaction that is totally inappropriate and unuseful in Word perfect (where I detected the problem).
Mikeyww
I dont know what else I can give/show you.
I have already written that my code is 60-70 repetitions of
<#3:: Send username@gmail.com
where the '3' can be any letter or digit or character, and the 'username@gmail.com' is whatever text string I want.
Mikeyww
I dont know what else I can give/show you.
I have already written that my code is 60-70 repetitions of
<#3:: Send username@gmail.com
where the '3' can be any letter or digit or character, and the 'username@gmail.com' is whatever text string I want.
Re: unwanted scrambling of text strings
As a first step, I would try the following script alone with no other code. Don't retype it; just paste it the way it is.
Code: Select all
F3::SendInput {Text}username@gmail.com
Re: unwanted scrambling of text strings
That substitution resulted in NO response, both for the 'left-win-3' hotkey that I was using and for F3
Re: unwanted scrambling of text strings
If that is the entire script, and you have run the script and see the green icon in your system tray, then there are only a few possibilities, I think.
1. Antivirus killed it
2. Your active target window will not accept text
3. Conflicting software (hooks, keyboard shortcuts, keyboard & mouse utilities, etc.)
4. Some kind of admin rights issue
Perhaps there are one or two others. You mentioned that you are using Wordperfect 5.1+ for DOS. I have not tested this in DOS. Possibly helpful: https://www.autohotkey.com/board/topic/12456-autohotkey-in-dos/
1. Antivirus killed it
2. Your active target window will not accept text
3. Conflicting software (hooks, keyboard shortcuts, keyboard & mouse utilities, etc.)
4. Some kind of admin rights issue
Perhaps there are one or two others. You mentioned that you are using Wordperfect 5.1+ for DOS. I have not tested this in DOS. Possibly helpful: https://www.autohotkey.com/board/topic/12456-autohotkey-in-dos/
Re: unwanted scrambling of text strings
I've had a look at the URL you provided. Yes it refers to DOS. My Wordperfect for DOS works (through TAME ?) in the latest Windows 10. I could not find any useful clues. By the way, the corruption has increased instead of 'com' being changed to 'ocm', now an 'l' gets inserted, so its 'olcm'.