 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Thu Nov 11, 2004 5:53 pm Post subject: |
|
|
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 |
|
 |
Tekl
Joined: 24 Sep 2004 Posts: 813 Location: Germany
|
Posted: Fri Nov 12, 2004 4:01 pm Post subject: |
|
|
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 |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Fri Nov 12, 2004 4:07 pm Post subject: |
|
|
| Thanks for the feedback. |
|
| Back to top |
|
 |
Tekl
Joined: 24 Sep 2004 Posts: 813 Location: Germany
|
Posted: Tue Nov 23, 2004 9:35 am Post subject: |
|
|
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 |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|