AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Send has problems with Adobe Illustrator
Goto page Previous  1, 2
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Thu Nov 11, 2004 5:53 pm    Post subject: Reply with quote

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]
Back to top
View user's profile Send private message Send e-mail
Tekl



Joined: 24 Sep 2004
Posts: 813
Location: Germany

PostPosted: Fri Nov 12, 2004 4:01 pm    Post subject: Reply with quote

Hi Chris,

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

Code:

!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
Back to top
View user's profile Send private message Visit poster's website
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Fri Nov 12, 2004 4:07 pm    Post subject: Reply with quote

Thanks for the feedback.
Back to top
View user's profile Send private message Send e-mail
Tekl



Joined: 24 Sep 2004
Posts: 813
Location: Germany

PostPosted: Tue Nov 23, 2004 9:35 am    Post subject: Reply with quote

Hi,

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

Code:

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
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group