Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Send has problems with Adobe Illustrator


  • Please log in to reply
18 replies to this topic
Chris
  • Administrators
  • 10727 posts
  • Last active:
  • Joined: 02 Mar 2004
I have added something that I think will work for you. Please let me know if it's useful and whether it needs improvement:

Added support for Unicode text on the clipboard and in variables. See Transform Unicode for details. [thanks Tekl]

Tekl
  • Members
  • 814 posts
  • Last active: May 03 2009 03:28 PM
  • Joined: 24 Sep 2004
Hi Chris,

mega thanks to you. Now it works. Slow, but not so slow like with {AltDown}...

!1::
   utf8=„             ; UF8-String of „
   gosub, utf8send
return
!2::
   utf8=“             ; UF8-String of “
   gosub, utf8send
return

utf8send:
   cliptemp = %clipboard%
   Transform, Clipboard, Unicode, %utf8%
   Send,^v{Alt}
   clipboard = %cliptemp%
return

Regards, Tekl

Chris
  • Administrators
  • 10727 posts
  • Last active:
  • Joined: 02 Mar 2004
Thanks for the feedback.

Tekl
  • Members
  • 814 posts
  • Last active: May 03 2009 03:28 PM
  • Joined: 24 Sep 2004
Hi,

I've improved the subroutine, so the AltGr also works well.

utf8send:
   cliptemp = %clipboard%
   Transform, Clipboard, Unicode, %utf8%
   Send,{Ctrl}
   SetKeyDelay,70,1
   Send,^v{Alt}
   SetKeyDelay,
   if A_ThisHotKey contains <^>!,!^,^!
   {
      GetKeyState, CtrlState, Ctrl, P
      if CtrlState = D
         Send,{LCtrl}{RAlt}
   }
   clipboard = %cliptemp%
return

Strange, that nearly all hotkeys has to use this routine in Illustrator and Photoshop.

Tekl