Advertisement
anonymous1184

https://redd.it/ov4a7j

Jul 31st, 2021
556
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SetKeyDelay 75
  2. SetTitleMatchMode 2
  3.  
  4. cols := []
  5. indx := -1
  6. last := ""
  7. loop 4 ; 3=BZ, 4=CZ, 5=DZ...
  8. {
  9.     loop % 26
  10.         l := Chr(64 + A_Index)
  11.         , cols[last l] := indx++
  12.     last := Chr(64 + A_Index)
  13. }
  14.  
  15. #IfWinActive Google Sheets
  16.     F12::
  17.         KeyWait F12
  18.         Clipboard := ""
  19.         Send {Esc}^j
  20.         Sleep 10
  21.         Send ^c
  22.         ClipWait
  23.         Send {Esc}
  24.         RegExMatch(Clipboard, "(?<COL>\D+)(?<ROW>\d+)", curr)
  25.         Clipboard := ""
  26.         vertical := currRow - 1
  27.         horizontal := cols[currCol]
  28.         Send % "{Left " horizontal "}^c"
  29.         ClipWait
  30.         txt := Clipboard
  31.         Clipboard := ""
  32.         Send % "{Right " horizontal "}{Up " vertical "}^c"
  33.         ClipWait
  34.         ; Send % "{Down" vertical "}" ; Optional
  35.         Run % Clipboard
  36.         Clipboard := txt
  37.     return
  38. #IfWinActive
  39.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement