In the past six months, text expansion in Chrome/FF is spotty.
Sometimes works briefly after restarting script, but then is just ignored.
I can check which script AHK ran last, and it appears to be working, but the expanded text does not appear in browser.
I switch to Word or Notepad++, works great.
Any ideas?
Expansion does not work in Chrome/FF, fine in text editor/Word
Re: Expansion does not work in Chrome/FF, fine in text editor/Word
Welcome to AHK. You can post your script here to get feedback about it.
Re: Expansion does not work in Chrome/FF, fine in text editor/Word
Thank you!
Sample from script:
[Mod edit: [code][/code] tags added.]
Sample from script:
Code: Select all
;patent
::(ca::(Currently Amended)
::(wd::(Withdrawn)
::(can::(Canceled)
::(pp::(Previously Presented)
::(ori::(Original)
::(ne::(New)
;symbols
;:*: ppara::{ASC 0182}
;:*: ss::{ASC 0167}
;:*: endash::{ASC 8211}
;:*: emdash::{ASC 8212}
:*:ppara::{ASC 0182}
:*:ss::{ASC 0167}
:*:endash::{ASC 8211}
:*:emdash::{ASC 8212}
:*:theta::{ASC 233}
;:*:phi::{ASC 232}
;date
:*:fdate::
FormatTime, CurrentDateTime,, yyyy-MM-dd
SendInput %CurrentDateTime%
return
:*:tdate::
FormatTime, CurrentDateTime,, yyyy-MM-dd HHmmss
SendInput %CurrentDateTime%
return
:*:ldate::
FormatTime, CurrentD
;long
^#v:: ; Text–only paste from ClipBoard - Ctrl-Win-V
Clip0 = %ClipBoardAll%
ClipBoard = %ClipBoard% ; Convert to text
Send ^v ; For best compatibility: SendPlay
Sleep 50 ; Don't change clipboard while it is pasted! (Sleep > 0)
ClipBoard = %Clip0% ; Restore original ClipBoard
VarSetCapacity(Clip0, 0) ; Free memory
Return
Re: Expansion does not work in Chrome/FF, fine in text editor/Word
Since your script does not work, test a shorter piece of it.
This worked for me. If it works at your end, you can expand slowly, adding one small piece at a time, and testing carefully along the way. If your Web browser is using another keyboard shortcut manager, it might conflict.
Subroutines should generally end in Return if they have multiple lines.
If you set the clipboard, use ClipWait. Example
Code: Select all
::(ca::(Currently Amended)
::(wd::(Withdrawn)
::(can::(Canceled)
::(pp::(Previously Presented)
::(ori::(Original)
::(ne::(New)
Subroutines should generally end in Return if they have multiple lines.
If you set the clipboard, use ClipWait. Example
Re: Expansion does not work in Chrome/FF, fine in text editor/Word
Thank you mikeyww.
I have tried a smaller script, and the problem exists: works fine outside browser, no response inside browser.
Is there an alternative means of sending the keystrokes for text expansion?
I have tried a smaller script, and the problem exists: works fine outside browser, no response inside browser.
Is there an alternative means of sending the keystrokes for text expansion?
Re: Expansion does not work in Chrome/FF, fine in text editor/Word
Do you mean that the script that I posted does not work in your browser?
Try this one alone.
Try this one alone.
Code: Select all
:COT:(ca::(Currently Amended)
Re: Expansion does not work in Chrome/FF, fine in text editor/Word
The most-recent snippet only works once.
I run script, try in Gmail, works.
Click to File Explorer, back to Gmail, expansion does not work. But still works find in Notepad++, etc, just not in browsers.
I run script, try in Gmail, works.
Click to File Explorer, back to Gmail, expansion does not work. But still works find in Notepad++, etc, just not in browsers.
Code: Select all
:COT:(ca::(Currently Amended)
Re: Expansion does not work in Chrome/FF, fine in text editor/Word
You are typing the hotstring into a newly composed Gmail message in Chrome? Exactly what are you typing there?
Your script has no other code, and no other scripts are running?
Your script has no other code, and no other scripts are running?
Who is online
Users browsing this forum: a_bolog, BrightWen, hiahkforum, Xtra and 143 guests