Notes![what is notes.io? What is notes.io?](/theme/images/whatisnotesio.png)
![]() ![]() Notes - notes.io |
#Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#SingleInstance Force
SetTitleMatchMode, 2
; TODO: Different JoyThreshold and JoyMultiplier settings aren't working as intended.
JoyMultiplier = 0.30
ImageViewerJoyMultiplier = 0.10
JoyThreshold = 15
JoyThreshold2 = 30
; MPCJoyThreshold = 10
; ImageViewerJoyThreshold = 10
MaxRepeatInterval = 500
MinRepeatInterval = 50
InvertYAxis := false
JoystickNumber = 1
SetTimer, WatchJoystick, 1 ; Monitor the movement of the joystick.
; Calculate the axis displacements that are needed to start moving the cursor:
JoyThresholdUpper := 50 + JoyThreshold
JoyThresholdLower := 50 - JoyThreshold
;ToolTip, JoyThresholdUpper: %JoyThresholdUpper%`nJoyThreshold2Upper: %JoyThreshold2Upper%`nJoyThresholdLower: %JoyThresholdLower%`nJoyThreshold2Lower: %JoyThreshold2Lower%
if InvertYAxis
YAxisMultiplier = -1
else
YAxisMultiplier = 1
; END OF CONFIG SECTION
PreviousDeltaY = 0
PreviousDeltaZ = 0
Sprint := false
Autoclick := false
WatchJoystick:
; SetFormat, float, 03
Analog1HasChanges := false ; Set default.
GetKeyState, JoyX, %JoystickNumber%JoyX
GetKeyState, JoyY, %JoystickNumber%JoyY
if JoyX > %JoyThresholdUpper%
{
Analog1HasChanges := true
DeltaX := JoyX - JoyThresholdUpper
}
else if JoyX < %JoyThresholdLower%
{
Analog1HasChanges := true
DeltaX := JoyX - JoyThresholdLower
}
else
{
DeltaX = 0
}
if JoyY > %JoyThresholdUpper%
{
Analog1HasChanges := true
DeltaY := JoyY - JoyThresholdUpper
}
else if JoyY < %JoyThresholdLower%
{
Analog1HasChanges := true
DeltaY := JoyY - JoyThresholdLower
}
else
{
DeltaY = 0
}
if Analog1HasChanges
{
if WinActive("MPC-HC D3D Fullscreen") or WinActive("ahk_class MediaPlayerClassicW")
{
if DeltaX < 0
{
SendMessage, 0x111, 903,,, ahk_class MediaPlayerClassicW ;WM_COMMAND := 0x111 ;Jump Backward (large)
}
if DeltaX > 0
{
SendMessage, 0x111, 904,,, ahk_class MediaPlayerClassicW ;WM_COMMAND := 0x111 ;Jump Forward (large)
}
sleep 250 ; TODO: Varied by distance.
}
else if WinActive("ImageViewer")
{
if DeltaY < 0
{
Send {Space}
}
if DeltaY > 0
{
Send +{Space}
}
sleep 750 ; TODO: Varied by distance.
}
else if WinActive("Roblox")
{
if DeltaY < 0
{
If (PreviousDeltaY == 0)
{
QCount = 0
}
if QCount = 0
{
;send {t}
Send {BackSpace}
Sleep 10
Send {1}
Sleep 10
Send {z}
Sleep 100
}
if QCount = 10
{
;send {t}
Send {BackSpace}
Sleep 10
Send {1}
Sleep 10
;Send {c}
Sleep 100
}
if QCount = 20
{
;send {t}
Send {BackSpace}
Sleep 10
Send {2}
Sleep 10
Send {f}
Sleep 100
}
; if QCount = 30
; {
; ;send {t}
;
; Send {BackSpace}
; Sleep 10
; Send {3}
; Sleep 10
; Send {z}
; Sleep 100
; }
;
; if QCount = 40
; {
; ;send {t}
;
; Send {BackSpace}
; Sleep 10
; Send {3}
; Sleep 10
; Send {x}
; Sleep 100
; }
if QCount = 49
{
QCount := 0
}
else
{
QCount := QCount + 1
}
Send {q}
}
if DeltaY > 0
{
If (PreviousDeltaY == 0)
{
; ClickCount = 0
Send {BackSpace}
Sleep 10
Send {1}
}
;ClickCount := ClickCount + 1
;if ClickCount = 1
;{
; send {t}
;}
;if ClickCount = 10
;{
; ClickCount := 0
;}
Send {Click}
}
}
else
{
MoveCursor(DeltaX * JoyMultiplier, DeltaY * JoyMultiplier * YAxisMultiplier)
}
}
;ToolTip, JoyThresholdLower: %JoyThresholdLower%`nJoyThresholdUpper: %JoyThresholdUpper%`nJoyX: %JoyX%`nJoyY: %JoyY%`nDeltaX: %DeltaX%`nDeltaY: %DeltaY%
Analog2HasChanges := false ; Set default.
GetKeyState, JoyZ, %JoystickNumber%JoyZ
GetKeyState, JoyR, %JoystickNumber%JoyR
if JoyZ > %JoyThresholdUpper%
{
Analog2HasChanges := true
DeltaZ := JoyZ - JoyThresholdUpper
}
else if JoyZ < %JoyThresholdLower%
{
Analog2HasChanges := true
DeltaZ := JoyZ - JoyThresholdLower
}
else
{
DeltaZ = 0
}
if JoyR > %JoyThresholdUpper%
{
Analog2HasChanges := true
DeltaR := JoyR - JoyThresholdUpper
}
else if JoyR < %JoyThresholdLower%
{
Analog2HasChanges := true
DeltaR := JoyR - JoyThresholdLower
}
else
{
DeltaR = 0
}
if Analog2HasChanges
{
if WinActive("MPC-HC D3D Fullscreen") or WinActive("ahk_class MediaPlayerClassicW")
{
CurrentTime := A_TickCount
if (DeltaZ != PreviousDeltaZ)
{
DeltaZPercentDecimal := Abs(DeltaZ) / (50 - JoyThreshold)
RepeatIntervalSize := MaxRepeatInterval - MinRepeatInterval
RepeatInterval := MaxRepeatInterval - (RepeatIntervalSize * DeltaZPercentDecimal)
ResumeTime := CurrentTime + RepeatInterval
}
If (PreviousDeltaZ == 0)
{
ResumeTime := CurrentTime
}
if (CurrentTime >= ResumeTime)
{
if DeltaZ < 0
{
SendMessage, 0x111, 899,,, ahk_class MediaPlayerClassicW ;WM_COMMAND := 0x111 ;Jump Backward (small)
}
if DeltaZ > 0
{
SendMessage, 0x111, 900,,, ahk_class MediaPlayerClassicW ;WM_COMMAND := 0x111 ;Jump Forward (small)
}
ResumeTime += RepeatInterval
}
}
else if WinActive("YouTube") or WinActive("Gogoanime") or WinActive("Crunchyroll")
{
if DeltaZ < 0
{
Send {Left}
}
if DeltaZ > 0
{
Send {Right}
}
sleep 250 ; TODO: Varied by distance.
}
else if WinActive("ImageViewer")
{
MoveCursor(DeltaZ * ImageViewerJoyMultiplier, DeltaR * ImageViewerJoyMultiplier * YAxisMultiplier)
}
else if WinActive("Roblox")
{
if DeltaR < 0
{
Send {q}
Sleep 10
}
}
else
{
MoveCursor(DeltaZ * JoyMultiplier, DeltaR * JoyMultiplier * YAxisMultiplier)
}
}
PreviousDeltaY := DeltaY
PreviousDeltaZ := DeltaZ
;ToolTip, JoyThresholdUpper: %JoyThresholdUpper%`n JoyThreshold2Upper: %JoyThreshold2Upper%`nJoyThresholdLower: %JoyThresholdLower%`n JoyThreshold2Lower: %JoyThreshold2Lower%
;ToolTip, DeltaZ: %DeltaZ%`nDeltaZ2: %DeltaZ2%`nDeltaR: %DeltaR%`nDeltaR2: %DeltaR2%
if WinActive("Roblox")
{
Sleep 10 ; TODO: Use an alternative to click?
if Sprint
{
if GetKeyState("w") || GetKeyState("s") || GetKeyState("a") || GetKeyState("d")
{
Send {q}
}
}
if Autoclick
{
Send {Click}
}
}
return
MoveCursor(x, y)
{
SetMouseDelay, -1 ; Makes movement smoother.
MouseMove, x, y, 0, R
}
Joy1::
if WinActive("MPC-HC D3D Fullscreen") or WinActive("ahk_class MediaPlayerClassicW")
{
SendMessage, 0x111, 956,,, ahk_class MediaPlayerClassicW ;WM_COMMAND := 0x111 ;On/Off Subtitle
}
else if WinActive("ImageViewer")
{
Send ^{=}
}
else if WinActive("Roblox")
{
Loop
{
Sleep 1 ; This is the delay between clicks, in milliseconds.
GetKeyState, Joy1State, Joy1, P
if Joy1State = U ; User has physically released the button, so end the loop.
break
;MouseClick, Left
Send {q}
}
}
return
Joy2::
if WinActive("MPC-HC D3D Fullscreen") or WinActive("ahk_class MediaPlayerClassicW")
{
SendMessage, 0x111, 920,,, ahk_class MediaPlayerClassicW ;WM_COMMAND := 0x111 ;Next File
}
else if WinActive("ImageViewer")
{
Send ^{0}
}
else if WinActive("Roblox")
{
ClickCount = 0
Send {BackSpace}
Sleep 10
Send {3}
Loop
{
Sleep 1 ; This is the delay between clicks, in milliseconds.
GetKeyState, Joy2State, Joy2, P
if Joy2State = U ; User has physically released the button, so end the loop.
{
break
}
ClickCount := ClickCount + 1
if ClickCount = 1
{
;send {t}
}
if ClickCount = 10
{
ClickCount := 0
}
Send {Click}
}
}
return
Joy3::
if WinActive("ImageViewer")
{
Send ^{-}
}
else if WinActive("Roblox")
{
ClickCount = 0
Send {BackSpace}
Sleep 10
Send {1}
Loop
{
Sleep 1 ; This is the delay between clicks, in milliseconds.
GetKeyState, Joy3State, Joy3, P
if Joy3State = U ; User has physically released the button, so end the loop.
{
break
}
ClickCount := ClickCount + 1
if ClickCount = 1
{
;send {t}
}
if ClickCount = 10
{
ClickCount := 0
}
Send {Click}
}
}
return
Joy4::
if WinActive("MPC-HC D3D Fullscreen") or WinActive("ahk_class MediaPlayerClassicW")
{
SendMessage, 0x111, 919,,, ahk_class MediaPlayerClassicW ;WM_COMMAND := 0x111 ;Previous File
}
else if WinActive("Roblox")
{
ClickCount = 0
Send {BackSpace}
Sleep 10
Send {2}
Loop
{
Sleep 1 ; This is the delay between clicks, in milliseconds.
GetKeyState, Joy4State, Joy4, P
if Joy4State = U ; User has physically released the button, so end the loop.
{
break
}
ClickCount := ClickCount + 1
if ClickCount = 1
{
;send {t}
}
if ClickCount = 10
{
ClickCount := 0
}
Send {Click}
}
}
return
Joy11::
if WinActive("MPC-HC D3D Fullscreen") or WinActive("ahk_class MediaPlayerClassicW")
{
SendMessage, 0x111, 889,,, ahk_class MediaPlayerClassicW ;WM_COMMAND := 0x111 ;Play/Pause (toggle)
}
else
{
Send {Click}
}
return
Joy12::
if WinActive("MPC-HC D3D Fullscreen") or WinActive("ahk_class MediaPlayerClassicW")
{
SendMessage, 0x111, 889,,, ahk_class MediaPlayerClassicW ;WM_COMMAND := 0x111 ;Play/Pause (toggle)
}
else if WinActive("YouTube") or WinActive("Gogoanime")
{
Send {Space}
}
else
{
Send {Click}
}
return
;$w::
;if WinActive("Roblox")
;{
; Send {w down}
; Sleep 10
; Send {q}
; Sleep 10
; Send {w up}
;}
;else
;{
; Send {w}
;}
;return
;
;$s::
;if WinActive("Roblox")
;{
; Send {s down}
; Sleep 10
; Send {q}
; Sleep 10
; Send {s up}
;}
;else
;{
; Send {s}
;}
;return
;
;$a::
;if WinActive("Roblox")
;{
; Send {a down}
; Sleep 10
; Send {q}
; Sleep 10
; Send {a up}
;}
;else
;{
; Send {a}
;}
;return
;
;$d::
;if WinActive("Roblox")
;{
; Send {d down}
; Sleep 10
; Send {q}
; Sleep 10
; Send {d up}
;}
;else
;{
; Send {d}
;}
;return
;
$!f::
if WinActive("Roblox")
{
Sprint := !Sprint
}
Send {!f}
return
$!g::
if WinActive("Roblox")
{
Autoclick := !Autoclick
}
Send {!g}
return
~$MButton::
if WinActive("Roblox")
{
While GetKeyState("MButton", "P")
{
Send {Click}
Sleep 10
}
}
return
;Joy1::
;if WinActive("YouTube") or WinActive("MPC-HC D3D Fullscreen") or WinActive("ahk_class MediaPlayerClassicW") {
; Send, {Left}
;} else if WinActive("ahk_exe vlc.exe") {
; Send {Right down}
; SetTimer, WaitForJoy1, 100
;}
;return
;WaitForJoy1:
;if not GetKeyState("Joy1")
;{
; Send {Right up}
; SetTimer, WaitForJoy1, Off
; return
;}
;Send {Right down}
;return
;JoyThreshold2Upper := JoyThresholdUpper + JoyThreshold2
;JoyThreshold2Lower := JoyThresholdLower - JoyThreshold2
;
;
;Analog1HasChanges2 := false ; Set default.
;
;
; if JoyX > %JoyThreshold2Upper%
; {
; Analog1HasChanges2 := true
; DeltaX2 := JoyX - JoyThreshold2Upper
; }
;
;
; if JoyX < %JoyThreshold2Lower%
; {
; Analog1HasChanges2 := true
; DeltaX2 := JoyX - JoyThreshold2Lower
; }
;
;
; DeltaX2 = 0
;
;
; if JoyY > %JoyThreshold2Upper%
; {
; Analog1HasChanges2 := true
; DeltaY2 := JoyY - JoyThreshold2Upper
; }
;
;
; if JoyY < %JoyThreshold2Lower%
; {
; Analog1HasChanges2 := true
; DeltaY2 := JoyY - JoyThreshold2Lower
; }
;
;
; DeltaY2 = 0
;
; if Analog1HasChanges2
; {
; if DeltaX < 0
; {
; Send {a down}
; }
; if DeltaX > 0
; {
; Send {d down}
; }
; if DeltaY < 0
; {
; Send {w down}
; }
; if DeltaY > 0
; {
; Send {s down}
; }
;
; Sleep 10
; Send {q}
; Sleep 10
;
; if DeltaX < 0
; {
; Send {a up}
; }
; if DeltaX > 0
; {
; Send {d up}
; }
; if DeltaY < 0
; {
; Send {w up}
; }
; if DeltaY > 0
; {
; Send {s up}
; }
; }
; Sleep 10
;
; Send {Click}
;Analog2HasChanges2 := false ; Set default.
;
;
; if JoyZ > %JoyThreshold2Upper%
; {
; Analog2HasChanges2 := true
; DeltaZ2 := JoyZ - JoyThreshold2Upper
; }
;
;
; if JoyZ < %JoyThreshold2Lower%
; {
; Analog2HasChanges2 := true
; DeltaZ2 := JoyZ - JoyThreshold2Lower
; }
;
;
; DeltaZ2 = 0
;
;
; if JoyR > %JoyThreshold2Upper%
; {
; Analog2HasChanges2 := true
; DeltaR2 := JoyR - JoyThreshold2Upper
; }
;
;
; if JoyR < %JoyThreshold2Lower%
; {
; Analog2HasChanges2 := true
; DeltaR2 := JoyR - JoyThreshold2Lower
; }
;
;
; DeltaR2 = 0
;
;
; if Analog2HasChanges2
; {
; if DeltaZ2 < 0
; {
; Send {a down}
; }
; if DeltaZ2 > 0
; {
; Send {d down}
; }
; if DeltaR2 < 0
; {
; Send {w down}
; }
; if DeltaR2 > 0
; {
; Send {s down}
; }
;
; Sleep 10
; Send {q}
; Sleep 10
;
; if DeltaZ2 < 0
; {
; Send {a up}
; }
; if DeltaZ2 > 0
; {
; Send {d up}
; }
; if DeltaR2 < 0
; {
; Send {w up}
; }
; if DeltaR2 > 0
; {
; Send {s up}
; }
; }
!F1::Reload
!F2::Pause
![]() |
Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 14 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team