-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathf5.ahk
More file actions
32 lines (27 loc) · 1.02 KB
/
f5.ahk
File metadata and controls
32 lines (27 loc) · 1.02 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
windowTitle = mov51 ;the title of the window you are fishing with IE Minecraft 1.14.3
SetTitleMatchMode 3
#SingleInstance Force ;ensures that only 1 version of the script is running
!^v:: ;key to start the loop. get key combos from here https://www.autohotkey.com/docs/KeyList.htm
IfWinExist %windowTitle% ;checks if the window exists
BreakLoop = 0 ;a variable used to break out of the loop
Loop ;the start of the loop
{
if (BreakLoop = 1) ;checks if the break variable is set
{
BreakLoop = 0 ;resets break variable
break ;exits loop
}
Sleep 10 ;waits 100ms
ControlSend, , {F5}, %windowTitle%
Sleep 10 ;waits 500ms
ControlSend, , {F5}, %windowTitle%
Sleep 150
ControlSend, , {F5}, %windowTitle%
Sleep 150
}
Return ;returns when you exit the loop, waiting for another keybind
!^b:: ;key to break the loop. get key combos from here https://www.autohotkey.com/docs/KeyList.htm
BreakLoop = 1
return
NumpadAdd:: ;key to close the script. get key combos from here https://www.autohotkey.com/docs/KeyList.htm
exitApp