Jan-13-2024, 10:53 AM
(This post was last modified: Jan-13-2024, 11:19 AM by Yoriz.
Edit Reason: Added code tags
)
I am trying to change text which contain these capitalized words surrounded by space. But this Autokey script is not working. Can someone point out what I am doing wrong?
text_.replace(" A "," a ") time.sleep(0.1) text_.replace(" An "," an ") time.sleep(0.1) text_.replace(" And "," and ") time.sleep(0.1) text_.replace(" As "," as ") time.sleep(0.1) text_.replace(" At "," at ") time.sleep(0.1) text_.replace(" De "," de ") time.sleep(0.1) text_.replace(" Du "," du ") time.sleep(0.1) text_.replace(" For "," for ") time.sleep(0.1) text_.replace(" In "," in ") time.sleep(0.1) text_.replace(" Is "," is ") time.sleep(0.1) text_.replace(" It "," it ") time.sleep(0.1) text_.replace(" Not "," not ") time.sleep(0.1) text_.replace(" Of "," of ") time.sleep(0.1) text_.replace(" On "," on ") time.sleep(0.1) text_.replace(" The ", " the ") time.sleep(0.1) text_.replace(" To "," to ") time.sleep(0.1)
Linux Mint Cinnamon 22 - Python 3.12.3 - Autokey-gtk 0.96.0 as of 2024-01-13.