-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathslovnik.ahk
More file actions
38 lines (35 loc) · 706 Bytes
/
slovnik.ahk
File metadata and controls
38 lines (35 loc) · 706 Bytes
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
;run http://slovnik.azet.sk/preklad/anglicko-slovensky/
run http://webslovnik.zoznam.sk/en-sk/
msgbox
sleep 2000
WinGet, slovnik_id, ID, A
WinGetClass, this_class, ahk_id %slovnik_id%
WinGetTitle, this_title, ahk_id %slovnik_id%
MsgBox `n`nahk_id %slovnik_id%`nahk_class %this_class%`n%this_title%`n`nOK?
focus = kniha
MButton::
if focus = kniha
{
WinGet, active_id, ID, A
;prev_clip = %clipboard%
send ^c
sleep 100
;text = %clipboard%
;send !{tab}
WinActivate, ahk_id %slovnik_id%
sleep 500
focus = slovnik
send ^v
sleep 100
send {enter}
;clipboard = %prev_clip%
}
else{
if focus = slovnik
{
;send !{tab}
WinActivate, ahk_id %active_id%
focus = kniha
}
}
return