Someone said I was missing the point of the reload key, but I don't know enough about AHK to find an alternative that let's me "restart."
Code: Select all
#Requires AutoHotkey v1.1.33
#Persistent
;==============================================================================
; Controls
Hotkey !Q, party_clicking ; Pressing alt + q will start function
; Presses the left mouse click button 350 times, then waits a few seconds for the page to reload. Repeats 20 times.
Hotkey !W, misc_clicking ; Pressing alt + w will start function
; Simply presses the left mouse click button 2,000 times.
Hotkey !1, 1_click ; Pressing alt + 1 will start function
; Clicks the 1 key 45 times, then presses next. Repeats 251 times.
Hotkey !2, 2_click ; Pressing alt + 2 will start function
; Clicks the 2 key 45 times, then presses next. Repeats 251 times.
Hotkey !3, 3_click ; Pressing alt + 3 will start function
; Clicks the 3 key 45 times, then presses next. Repeats 251 times.
Hotkey !4, 4_click ; Pressing alt + 4 will start function
; Clicks the 4 key 45 times, then presses next. Repeats 251 times.
Hotkey !5, 5_click ; Pressing alt + 5 will start function
; Clicks the 5 key 45 times, then presses next. Repeats 251 times.
^Esc::ExitApp ; Pressing ctrl + esc will close the AHK script
^1::Pause ; Pressing ctrl + 1 will pause/play the script
^2::Reload ; Pressing ctrl + 2 will reload the script
^3::Edit ; Pressing ctrl + 3 will open the script in notepad
;==============================================================================
party_clicking:
{
Loop, 20 {
Loop, 350 {
Sleep 120
MouseClick, left
}
Sleep 8000
}
return
}
;==============================================================================
misc_clicking:
{
Loop, 2000 {
Sleep 120
MouseClick, left
}
return
}
;==============================================================================
sour_field_clicking:
{
SetKeyDelay, 100
Loop, 251 {
Send {1 55}
Send {d 1}
}
return
}
;==============================================================================
2_click:
{
SetKeyDelay, 100
Loop, 251 {
Send {2 55}
Send {d 1}
}
return
}
;==============================================================================
3_click:
{
SetKeyDelay, 100
Loop, 251 {
Send {3 55}
Send {d 1}
}
return
}
;==============================================================================
sweet_field_clicking:
{
SetKeyDelay, 100
Loop, 251 {
Send {4 55}
Send {d 1}
}
return
}
;======================================
5_click:
{
SetKeyDelay, 100
Loop, 251 {
Send {5 55}
Send {d 1}
}
return
}