Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
- ; #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
- #IfWinActive ahk_class IglooDocumentWindow ; Reason
- {
- BlockInput SendAndMouse
- noteButtonX := ""
- noteButtonY := ""
- ^+Up::
- {
- WinGetActiveStats title, curWinWidth, curWinHeight, topLeft, topRight
- ImageSearch noteButtonX, noteButtonY, 0, 0 ,curWinWidth, curWinHeight, NoteButton.png
- if ErrorLevel = 0
- {
- clickTargX := noteButtonX + 15
- clickTargY := noteButtonY + 25
- ; MsgBox Found button at: %noteButtonX% , %noteButtonY%
- ; MsgBox Calculated Coordinates: %clickTargX% , %clickTargY%
- MouseGetPos startX, startY
- Click %clickTargX%, %clickTargY%
- MouseMove startX, startY
- Send {Raw}+12
- Send {Enter}
- }
- }
- return
- ^+Down::
- {
- WinGetActiveStats title, curWinWidth, curWinHeight, topLeft, topRight
- ImageSearch noteButtonX, noteButtonY, 0, 0 ,curWinWidth, curWinHeight, NoteButton.png
- if ErrorLevel = 0
- {
- clickTargX := noteButtonX + 15
- clickTargY := noteButtonY + 25
- ; MsgBox Found button at: %noteButtonX% , %noteButtonY%
- ; MsgBox Calculated Coordinates: %clickTargX% , %clickTargY%
- MouseGetPos startX, startY
- Click %clickTargX%, %clickTargY%
- MouseMove startX, startY
- Send {Raw}-12
- Send {Enter}
- }
- }
- return
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement