-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathiSendU.ahk
More file actions
750 lines (660 loc) · 18.6 KB
/
iSendU.ahk
File metadata and controls
750 lines (660 loc) · 18.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
/*
------------------------------------------------------------------------
InKeySendU module, based largely on SendU module: http://autohotkey.try.hu/SendU/SendU.ahk
InKey's modifications:
-modified to preserve hidden icons
-Modes renamed to 1, 2, and 3 for user-interface purposes
-Sending modes for each app are stored in AppList.txt and UserAppList.txt
------------------------------------------------------------------------
SendU module for sending Unicode characters
http://www.autohotkey.com
------------------------------------------------------------------------
Version: 0.0.11 2008-03-03
License: GNU General Public License
Tested Platform: Windows XP/Vista
Tested AutoHotkey Version: 1.0.47.04
Lastest version: http://autohotkey.try.hu/SendU/SendU.ahk
Location in AutoHotkey forum: http://www.autohotkey.com/forum/viewtopic.php?t=25566
Contributors:
* Laszlo Hars <www.Hars.US>
original SendU function, _SendU_UnicodeChar function
and some bugfixes
* Shimanov
original SendU function
* Piz
Fixed goto issues
http://www.autohotkey.com/forum/viewtopic.php?p=182218#182218
------------------------------------------------------------------------
If you would like help to me...
Please correct my english misspellings...
------------------------------------------------------------------------
*/
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; PUBLIC GLOBAL VARIABLES FOR LOCALIZE
; See the _SendU_Load_Locale() function!
; PRIVATE GLOBAL VARIABLES
; _SendU_*** : unicode number -> utf8 character
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; PUBLIC FUNCTIONS
SendCh( Ch ) ; Character number code, for example 97 (or 0x61) for 'a'
{
; global showmode
; dansmode := SendU_Mode()
; if showmode
; ToolTip %dansmode%, 1, 1, 2
Ch += 0
if ( Ch < 0 ) {
; What do you want???
return
} else if ( Ch < 33 ) {
; http://en.wikipedia.org/wiki/Control_character#How_control_characters_map_to_keyboards
Char = ;
if ( Ch == 32 ) {
Char = {Space}
} else if ( Ch == 9 ) {
Char = {Tab}
} else if ( Ch > 0 && Ch <= 26 ) {
Char := "^" . Chr( Ch + 64 )
} else if ( Ch == 27 ) {
Char = ^{VKDB}
} else if ( Ch == 28 ) {
Char = ^{VKDC}
} else if ( Ch == 29 ) {
Char = ^{VKDD}
} else {
SendU( Ch )
return
}
Send %Char%
} else if ( Ch < 129 ) {
; ASCII characters
Char := "{" . Chr( Ch ) . "}"
Send %Char%
} else {
; Unicode characters
_SendU_Clipboard(Ch)
;~ SendU( Ch )
}
}
SendU( UC )
{
SetFormat IntegerFast, d ;drm
UC += 0
if ( UC <= 0 )
return
mode := SendU_Mode()
; DRM: This section added because SendInput messes up when Ctrl or Alt is still pressed.
;outputdebug SendU(%uc%), mode=%mode%
if (GetKeyState("Alt") or GetKeyState("Ctrl")) {
_SendU_Clipboard(UC)
return
}
ralt := 0
if (GetKeyState("RAlt")) {
ralt := 1
Send {RAlt Up}
}
if ( mode = "d" ) { ; dynamic
WinGet, pn, ProcessName, A
mode := _SendU_Dynamic_Mode( pn )
;~ tooltip d-%mode%,1,1,2
}
if ( mode = "i" )
_SendU_Input(UC)
else if ( mode = "c" ) ; clipboard
_SendU_Clipboard(UC)
else if ( mode = "a" ) { ; {ASC nnnn}
if ( UC < 256 )
UC := "0" . UC
Send {ASC %UC%}
} else { ; input
_SendU_Input(UC)
}
; if (ralt = 1)
; Send {RAlt Down}
}
SendU_utf8_string( str )
{
mode := SendU_Mode()
if ( mode = "d" ) { ; dynamic
WinGet, pn, ProcessName, A
mode := _SendU_Dynamic_Mode( pn )
}
if ( mode = "c" ) ; clipboard
_SendU_Clipboard( str, 1 )
else if ( mode = "a" ) { ; {ASC nnnn}
codes := _SendU_Utf_To_Codes( str, "_" )
Loop, parse, codes, _
{
UC := A_LoopField
if ( UC < 256 )
UC := "0" . UC
Send {ASC %UC%}
}
} else {
codes := _SendU_Utf_To_Codes( str, "_" )
Loop, parse, codes, _
{
_SendU_Input(A_LoopField)
}
}
}
SendU_Mode( newMode = -1 )
{
static mode := "i"
if ( newMode == "d" || newMode == "i" || newMode == "a" || newMode == "c" )
mode := newMode
return mode
}
SendU_Clipboard_Restore_Mode( newMode = -1 )
{
static mode := 1
if ( newMode == 1 || newMode == 0 ) ; Enable, disable
mode := newMode
else if ( newMode == 2 ) ; Toggle
mode := 1 - mode
return mode
}
SendU_Try_Dynamic_Mode()
{
; get processname and current mode
WinGet, processName, ProcessName, A
mode := _SendU_GetMode( processName )
outputdebug Old mode: %mode%
; get the new mode
if ((mode == "i") or (mode == "d"))
mode = a
else if ( mode == "a" )
mode = c
else
mode = i
mode = c
if (mode == "i")
nummode=1
else if (mode == "a")
nummode=2
else if (mode == "c")
nummode=3
outputdebug New mode: %mode%, Code: %nummode%
; output tooltip
_SendU_Dynamic_Mode_Tooltip( processName, mode )
_SendU_SetMode( processName, mode )
_SendU_Dynamic_Mode( "", 1 ) ; Clears the PrevProcess variable
; update UserAppList.txt
IfNotExist, %A_WorkingDir%\UserAppList.txt
{
; create a blank file
FileAppend,, %A_WorkingDir%\UserAppList.txt
}
; check to see if file is empty
FileRead, Str, %A_WorkingDir%\UserAppList.txt
If (Str == "")
{
; blank file, so simply output the first entry
newentry := Chr(34) . processName . Chr(34) . "," . nummode
FileAppend, %newentry%, %A_WorkingDir%\UserAppList.txt
}
else
{
; delete old file
FileDelete, %A_WorkingDir%\UserAppList.txt
entryadded := false
firstentry := true
; loop through file contents looking to see if entry already exists
Loop, Parse, Str, `n, `r
{
Loop, Parse, A_LoopField, CSV
{
CSV_%A_Index% := A_LoopField
}
If ( CSV_1 == processName )
{
; write out new mode for existing entry
if (firstentry)
{
updateentry := Chr(34) . processName . Chr(34) . "," . nummode
firstentry := false
}
else
{
updateentry := Chr(10) . Chr(34) . processName . Chr(34) . "," . nummode
}
FileAppend, %updateentry%, %A_WorkingDir%\UserAppList.txt
entryadded := true
}
else
{
; write out line of file
if (firstentry)
{
oldentry := Chr(34) . CSV_1 . Chr(34) . "," . Chr(34) . CSV_2 . Chr(34)
firstentry := false
}
else
{
oldentry := Chr(10) . Chr(34) . CSV_1 . Chr(34) . "," . Chr(34) . CSV_2 . Chr(34)
}
FileAppend, %oldentry%, %A_WorkingDir%\UserAppList.txt
}
}
If (not entryadded) then
{
if (firstentry)
{
newentry := Chr(34) . processName . Chr(34) . "," . nummode
firstentry := false
}
else
{
newentry := Chr(10) . Chr(34) . processName . Chr(34) . "," . nummode
}
FileAppend, %newentry%, %A_WorkingDir%\UserAppList.txt
}
}
return
}
SendU_Init( mode = "d" )
{
SendU_Mode( mode )
_SendU_Load_Locale()
_SendU_Load_Dynamic_Modes()
}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; PRIVATE FUNCTIONS
_SendU_Input( UC )
{
; Original SendU function written by Shimanov and Laszlo
; http://www.autohotkey.com/forum/topic7328.html
static buffer := "#"
if buffer = #
{
VarSetCapacity( buffer, 56, 0 )
DllCall("RtlFillMemory", "uint",&buffer,"uint",1, "uint", 1)
DllCall("RtlFillMemory", "uint",&buffer+28, "uint",1, "uint", 1)
}
DllCall("ntdll.dll\RtlFillMemoryUlong","uint",&buffer+6, "uint",4,"uint",0x40000|UC) ;KEYEVENTF_UNICODE
DllCall("ntdll.dll\RtlFillMemoryUlong","uint",&buffer+34,"uint",4,"uint",0x60000|UC) ;KEYEVENTF_KEYUP|
if not A_IconHidden
Menu, Tray, Icon,,, 1 ; Freeze the icon
Suspend On ; SendInput conflicts with scan codes (SC)!
DllCall("SendInput", UInt,2, UInt,&buffer, Int,28) ; non-zero return does not necessarily mean success
Suspend Off
if not A_IconHidden
Menu, Tray, Icon,,, 0 ; Unfreeze the icon
return
}
_SendU_Utf_To_Codes( utf8, separator = "," ) {
; Return (comma) separated Unicode numbers of UTF-8 input STRING
; Written by Laszlo Hars and FARKAS Mate (fmate14)
static U := "#"
static res
if ( U == "#" ) {
VarSetCapacity(U, 256 * 2)
VarSetCapacity(res, 256 * 4)
}
DllCall("MultiByteToWideChar", UInt,65001, UInt,0, Str,utf8, Int,-1, UInt,&U, Int,256)
res := ""
pointer := &U
Loop, 256
{
h := (*(pointer+1)<<8) + *(pointer)
if ( h == 0 )
break
if ( res )
res .= separator
res .= h
pointer += 2
}
Return res
}
SendU_Utf_To_CodesPub( utf8, separator = "," ) {
; Return (comma) separated Unicode numbers of UTF-8 input STRING
; Written by Laszlo Hars and FARKAS Mate (fmate14)
static U := "#"
static res
if ( U == "#" ) {
VarSetCapacity(U, 256 * 2)
VarSetCapacity(res, 256 * 4)
}
DllCall("MultiByteToWideChar", UInt,65001, UInt,0, Str,utf8, Int,-1, UInt,&U, Int,256)
res := ""
pointer := &U
Loop, 256
{
h := (*(pointer+1)<<8) + *(pointer)
if ( h == 0 )
break
if ( res )
res .= separator
res .= h
pointer += 2
}
Return res
}
; --------------------- functions for clipboard mode ----------------------------
_SendU_Clipboard( UC, isUtfString = 0 )
{
OutputDebug _SendU_Clipboard(%UC%)
Critical
ClipSaved := ClipboardAll ; Save the entire clipboard to a variable of your choice.
Clipboard := Chr(UC)
ClipWait
Send +{Ins}
Sleep, 50 ; see http://www.autohotkey.com/forum/viewtopic.php?p=159301#159306
Clipboard := ClipSaved ; Restore the original clipboard. Note the use of Clipboard (not ClipboardAll).
ClipSaved = ; Free the memory in case the clipboard was very large.
Critical, Off
return
Critical
restoreMode := 1 ; SendU_Clipboard_Restore_Mode()
if ( isUtfString ) {
utf := UC
} else {
utf := _SendU_GetVar( UC )
if not utf
{
utf := _SendU_UnicodeChar( UC )
_SendU_SetVar( UC, utf )
}
}
if restoreMode
_SendU_SaveClipboard()
;Transform Clipboard, Unicode, %utf% ; no longer available in AHKL
Clipboard = %utf%
ClipWait
Send +{Ins}
Sleep, 50 ; see http://www.autohotkey.com/forum/viewtopic.php?p=159301#159306
if restoreMode {
_SendU_Last_Char_In_Clipboard( Clipboard )
SetTimer, _SendU_restore_Clipboard, -3000
}
Critical, Off
}
_SendU_RestoreClipboard()
{
_SendU_SaveClipboard(1)
}
_SendU_SaveClipboard( restore = 0 )
{
static cb
if ( !restore && _SendU_Last_Char_In_Clipboard() == "" )
cb := ClipboardALL
else
Clipboard := cb
}
_SendU_Last_Char_In_Clipboard( newChar = -1 )
{
static ch := ""
if ( newChar <> -1 )
ch := newChar
return ch
}
_SendU_UnicodeChar( UC ) ; Return the Utf-8 char from the Unicode numeric code (UC, in decimal format)
{
VarSetCapacity(UText, 8, 0)
NumPut(UC, UText, 0, "UShort")
outputdebug UC: %UC%, UText: %UText%
return %UText%
; the following procedure is no longer necessary, but left in just in case...
; first get the size
returnsize := DllCall("WideCharToMultiByte"
, "UInt", 65001 ; CodePage: CP_ACP=0 (current Ansi), CP_UTF7=65000, CP_UTF8=65001
, "UInt", 0 ; dwFlags
, "Str", UText ; LPCWSTR lpWideCharStr
, "Int", -1 ; cchWideChar: size in WCHAR values: Len or -1 (= null terminated)
, "Str", 0 ; LPSTR lpMultiByteStr
, "Int", 0 ; cbMultiByte: Len or 0 (= get required size / allocate!)
, "UInt", 0 ; LPCSTR lpDefaultChar
, "UInt", 0) ; LPBOOL lpUsedDefaultChar
; allocate space for return string
VarSetCapacity(AText, returnsize, 0)
; now do the conversion
DllCall("WideCharToMultiByte"
, "UInt", 65001 ; CodePage: CP_ACP=0 (current Ansi), CP_UTF7=65000, CP_UTF8=65001
, "UInt", 0 ; dwFlags
, "Str", UText ; LPCWSTR lpWideCharStr
, "Int", -1 ; cchWideChar: size in WCHAR values: Len or -1 (= null terminated)
, "Str", AText ; LPSTR lpMultiByteStr
, "Int", returnsize ; cbMultiByte: Len or 0 (= get required size / allocate!)
, "UInt", 0 ; LPCSTR lpDefaultChar
, "UInt", 0) ; LPBOOL lpUsedDefaultChar
return %UText%
}
; --------------------- functions for dynamic mode ----------------------------
_SendU_Get_Mode_Name( mode )
{
if ( mode == "c" && SendU_Clipboard_Restore_Mode() )
mode = r
m := _SendU_GetVar( "Mode_Name_" . mode )
if ( m == "" )
m := _SendU_GetVar( "Mode_Name_0" )
return m
}
_SendU_Get_Mode_Type( mode )
{
if ( mode == "c" && SendU_Clipboard_Restore_Mode() )
mode = r
m := _SendU_GetVar( "Mode_Type_" . mode )
if ( m == "" )
m := _SendU_GetVar( "Mode_Type_0" )
return m
}
_SendU_Dynamic_Mode_Tooltip( processName = -1, mode = -1 )
{
tt := _SendU_getVar("DYNAMIC_MODE_TOOLTIP")
if not tt
return
if ( processName = -1 || mode == -1 ) {
WinGet, processName, ProcessName, A
mode := _SendU_GetMode( processName )
}
WinGetTitle, title, A
StringReplace, tt,tt, $processName$, %processName%, A
StringReplace, tt,tt, $title$, %title%, A
StringReplace, tt,tt, $mode$, %mode%, A
StringReplace, tt,tt, $modeType$, % _SendU_Get_Mode_Type( mode ), A
StringReplace, tt,tt, $modeName$, % _SendU_Get_Mode_Name( mode ), A
ToolTip, %tt%
SetTimer, _SendU_Remove_Tooltip, 2000
}
_SendU_Dynamic_Mode( processName, clearPrevProcess = -1 )
{
static prevProcess := "fOyj9b4f79YmA7sZRBrnDbp75dGhiauj" ; Nothing
static mode := ""
if ( clearPrevProcess == 1 )
prevProcess := "fOyj9b4f79YmA7sZRBrnDbp75dGhiauj" ; Nothing
if ( processName == prevProcess )
return mode
prevProcess := processName
mode := _SendU_GetMode( processName )
if ( mode == "" )
mode = i
return mode
}
; http://www.autohotkey.com/forum/topic17838.html
_SendU_SetMode( sKey, sItm )
{
static pdic := 0
if ( pdic == 0 )
_SendU_Get_Dictionary( pdic )
pKey := SysAllocString(sKey)
VarSetCapacity(var1, 8 * 2, 0)
EncodeInteger(&var1 + 0, 8)
EncodeInteger(&var1 + 8, pKey)
pItm := SysAllocString(sItm)
VarSetCapacity(var2, 8 * 2, 0)
EncodeInteger(&var2 + 0, 8)
EncodeInteger(&var2 + 8, pItm)
DllCall(VTable(pdic, 8), "Uint", pdic, "Uint", &var1, "Uint", &var2)
SysFreeString(pKey)
SysFreeString(pItm)
}
; http://www.autohotkey.com/forum/topic17838.html
_SendU_GetMode( sKey )
{
static pdic := 0
if ( pdic == 0 )
_SendU_Get_Dictionary( pdic )
pKey := SysAllocString(sKey)
VarSetCapacity(var1, 8 * 2, 0)
EncodeInteger(&var1 + 0, 8)
EncodeInteger(&var1 + 8, pKey)
DllCall(VTable(pdic, 12), "Uint", pdic, "Uint", &var1, "intP", bExist)
If bExist
{
VarSetCapacity(var2, 8 * 2, 0)
DllCall(VTable(pdic, 9), "Uint", pdic, "Uint", &var1, "Uint", &var2)
pItm := DecodeInteger(&var2 + 8)
Unicode2Ansi(pItm, sItm)
SysFreeString(pItm)
}
SysFreeString(pKey)
Return sItm
}
_SendU_Get_Dictionary( ByRef mypdic )
{
static pdic := 0
if ( pdic == 0 ) {
; http://www.autohotkey.com/forum/topic17838.html
CoInitialize()
CLSID_Dictionary := "{EE09B103-97E0-11CF-978F-00A02463E06F}"
IID_IDictionary := "{42C642C1-97E1-11CF-978F-00A02463E06F}"
pdic := CreateObject(CLSID_Dictionary, IID_IDictionary)
DllCall(VTable(pdic, 18), "Uint", pdic, "int", 1) ; Set text mode, i.e., Case of Key is ignored. Otherwise case-sensitive defaultly.
}
mypdic := pdic
}
_SendU_Load_Dynamic_Modes()
{
; NOTE:
; d=dynamic (auto-pick mode)
; i=static (mode 1)
; a=simulates ALT+numpad sequence (mode 2)
; c=clipboard (mode 3)
IfExist, %A_WorkingDir%\AppList.txt
{
FileRead, Str, %A_WorkingDir%\AppList.txt
Loop, Parse, Str, `n, `r
{
Loop, Parse, A_LoopField, CSV
{
CSV_%A_Index% := A_LoopField
}
if ( CSV_2 == "2" )
{
_SendU_SetMode( CSV_1, "a" )
}
if ( CSV_2 == "3" )
{
_SendU_SetMode( CSV_1, "c" )
}
}
}
else
{
MsgBox, Warning! The file AppList.txt is missing.`nSome programs may not receive Unicode characters correctly.`nPlease open the InKey.zip file and extract AppList.txt to the InKey directory.
}
IfExist, %A_WorkingDir%\UserAppList.txt
{
FileRead, Str, %A_WorkingDir%\UserAppList.txt
Loop, Parse, Str, `n, `r
{
Loop, Parse, A_LoopField, CSV
{
CSV_%A_Index% := A_LoopField
}
if ( CSV_2 == "2" )
{
_SendU_SetMode( CSV_1, "a" )
}
if ( CSV_2 == "3" )
{
_SendU_SetMode( CSV_1, "c" )
}
}
}
}
; --------------------- other functions ----------------------------
_SendU_SetVar( var, value )
{
global
_SendU_%var% := value
}
_SendU_GetVar( var )
{
global
return _SendU_%var% . ""
}
_SendU_Default_Value( var, value )
{
global
if ( _SendU_%var% . "" == "" )
_SendU_%var% := value
}
_SendU_Load_Locale()
{
;stringLower, lang, A_Language
; if ( lang == "040e" ) { ; Hungarian
; _SendU_Default_Value("DYNAMIC_MODE_TOOLTIP", "ڪ m㤠a(z) $processName$ programhoz`n($title$)`n ""$mode$"" ($modeName$ - $modeType$)")
; _SendU_Default_Value("Mode_Name_i", "SendInput")
; _SendU_Default_Value("Mode_Name_c", "V᧳lap")
; _SendU_Default_Value("Mode_Name_r", "V᧳lap helyreᬬ���ssal")
; _SendU_Default_Value("Mode_Name_a", "Alt+Sz᭢illenty뺥t")
; _SendU_Default_Value("Mode_Name_d", "Dinamikus")
; _SendU_Default_Value("Mode_Name_0", "Ismeretlen")
; _SendU_Default_Value("Mode_Type_i", "a legjobb, ha m뫶dik")
; _SendU_Default_Value("Mode_Type_c", "t沬i a v᧳lapot")
; _SendU_Default_Value("Mode_Type_r", "talᮠlassꢩ
; _SendU_Default_Value("Mode_Type_a", "talᮠnem m뫶dik")
; _SendU_Default_Value("Mode_Type_d", "programokt㬠f짧堤inamikus m㤢)
; _SendU_Default_Value("Mode_Type_0", "ismeretlen m㤢)
; } else { ; English
_SendU_Default_Value("DYNAMIC_MODE_TOOLTIP", "Setting mode for $processName$`n($title$)`nto $modeName$ - $modeType$")
_SendU_Default_Value("Mode_Name_i", "Method 1") ; SendInput
_SendU_Default_Value("Mode_Name_c", "Clipboard")
_SendU_Default_Value("Mode_Name_r", "Method 3") ; Restore Clipboard
_SendU_Default_Value("Mode_Name_a", "Method 2") ; Alt+Numbers
_SendU_Default_Value("Mode_Name_d", "Automatic") ; dynamic
_SendU_Default_Value("Mode_Name_0", "Unknown")
_SendU_Default_Value("Mode_Type_i", "the fastest mode")
_SendU_Default_Value("Mode_Type_c", "clears the clipboard")
_SendU_Default_Value("Mode_Type_r", "slowest, but some apps need it")
_SendU_Default_Value("Mode_Type_a", "second best, if it works")
_SendU_Default_Value("Mode_Type_d", "automatic mode selection")
_SendU_Default_Value("Mode_Type_0", "unknown mode")
; }
}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; LABELS AND INCLUDES
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
__SendU_Labels_And_Includes__This_Is_Not_A_Function()
{
return
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; LABELS for internal use
_SendU_Remove_Tooltip:
SetTimer, _SendU_Remove_Tooltip, Off
ToolTip
return
_SendU_Restore_Clipboard:
Critical
if ( _SendU_Last_Char_In_Clipboard() == Clipboard )
_SendU_RestoreClipboard()
_SendU_Last_Char_In_Clipboard( "" )
Critical, Off
return
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; LABELS for public use
_SendU_Try_Dynamic_Mode:
_SendU_Change_Dynamic_Mode:
SendU_Try_Dynamic_Mode()
return
_SendU_Toggle_Clipboard_Restore_Mode:
SendU_Clipboard_Restore_Mode( 2 )
_SendU_Dynamic_Mode_Tooltip()
return
}
#include CoHelper.ahk
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; END OF SENDU MODULE
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;