To unsubscribe from this group and stop receiving emails from it, send an email to autokey-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/autokey-users/56f5c35a-7907-4b6a-b9f1-4e25f64ee138n%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to autokey-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/autokey-users/d84a1d06-3cbf-0d22-61d6-14d01e7d5b19%40main.nc.us.
#Get the contents of the clipboard, remove the quotes from it, and save the resulting value to a variable:
target = clipboard.get_selection().replace("\"","")
#Surround the value of the variable with curly quotes and send the resulting value to the currently active window:
keyboard.send_keys("<ctrl>+<shift>+u201C%s<ctrl>+<shift>+u201D" % target)
#Get the contents of the clipboard and save their value to a variable:
target = clipboard.get_selection()
#Remove the quotes from the value of the variable:
target = target.replace("\"","")
#Surround the value of the variable with curly quotes:
target = "<ctrl>+<shift>+u201C%s<ctrl>+<shift>+u201D" % target
#Send the value of the variable to the currently active window:
keyboard.send_keys(target)
Thank you, Joe and Johnny. The last solution is very easy. I wonder if there could be an ever simpler solution: somethingliketext = clipboard.get_selection()
keyboard.send_key("<delete>")
keyboard.send_keys("“%s”" % text)
To view this discussion on the web visit https://groups.google.com/d/msgid/autokey-users/97e84ecc-492a-4538-987a-378483fc2c17n%40googlegroups.com.
From: ijaz store, Pakistan. Dear businessman: You good self sells after all buying from somewhere? Can you buy from us? Do you want to check our prices? Whatsapp 00923150085681, zahidsal...@gmail.com, Apparel, CPU, Clothes, dry fruits, FMCG, food items, fruits, furniture, garments, groceries, herbs, keyboards, laptops, mouse, monitors, perfumes, printers, sneakers, spare parts for Suzuki, Toyota, Honda cars, tablets, Toys for babies, kids, children for amusement, playing, education. etc. WHAT REWARD YOU PLEASE WANT. Registered office address: Ijaz store / corporation, Rawalpindi 46000, Pakistan, Whatsapp; 0092 315 0085681, Email; zahidsal...@gmail.com, National tax No. 7622921-2, Sales tax No. 3277876146819, (supplier, wholesellers, Government Contractors / builders /constructors) – PEC Licensed
Warehouse address: SAME
--
You received this message because you are subscribed to the Google Groups "autokey-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to autokey-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/autokey-users/CANNxEPuX0x2f5vpq4FSgR7dve%2BuNGZpx-hXjFd%3DBVhkQ0K1M%3DQ%40mail.gmail.com.
#Print a tooltip and replace it with a snowman if the user presses any of certain keys (Ctrl, Enter, Shift, or Space):
keyboard.send_keys("<ctrl>+<shift>+u+2603")
keyboard.send_keys("<ctrl>+<shift>+u2603")
#Print a snowman, but send an additional keypress (a plus, a space, Ctrl, Enter, or Shift) to avoid displaying a tooltip that requires user intervention:
keyboard.send_keys("<ctrl>+<shift>+u+2603+<right>")
keyboard.send_keys("<ctrl>+<shift>+u2603+<right>")
keyboard.send_keys("<ctrl>+<shift>+u2603+")
keyboard.send_keys("<ctrl>+<shift>+u+2603 ")
keyboard.send_keys("<ctrl>+<shift>+u+2603<ctrl>")
keyboard.send_keys("<ctrl>+<shift>+u+2603<enter>")
keyboard.send_keys("<ctrl>+<shift>+u+2603<shift>")
#Print a snowman with a period after it by sending a plus sign as an additional keypress to avoid displaying a tooltip that requires user intervention:
keyboard.send_keys("<ctrl>+<shift>+u+2603+.")
Will someone please block this annoying user? If that is possible, that is.
--
You received this message because you are subscribed to the Google Groups "autokey-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to autokey-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/autokey-users/f8b4a5ec-fc33-41c2-a9fc-bc1ec8dab54do%40googlegroups.com.
I thought you wanted to use those quotation marks on the fly when you typed, so maybe I misunderstood the problem. The solution above seems to assume that you first select your text before running the script. Of course you can let the script select it for you, but it will probably take some time if the text is long, and I guess that could be somewhat annoying.