Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SetKeyDelay 75
- SetTitleMatchMode 2
- cols := []
- indx := -1
- last := ""
- loop 4 ; 3=BZ, 4=CZ, 5=DZ...
- {
- loop % 26
- l := Chr(64 + A_Index)
- , cols[last l] := indx++
- last := Chr(64 + A_Index)
- }
- #IfWinActive Google Sheets
- F12::
- KeyWait F12
- Clipboard := ""
- Send {Esc}^j
- Sleep 10
- Send ^c
- ClipWait
- Send {Esc}
- RegExMatch(Clipboard, "(?<COL>\D+)(?<ROW>\d+)", curr)
- Clipboard := ""
- vertical := currRow - 1
- horizontal := cols[currCol]
- Send % "{Left " horizontal "}^c"
- ClipWait
- txt := Clipboard
- Clipboard := ""
- Send % "{Right " horizontal "}{Up " vertical "}^c"
- ClipWait
- ; Send % "{Down" vertical "}" ; Optional
- Run % Clipboard
- Clipboard := txt
- return
- #IfWinActive
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement