Positional Click and KeyPress Sequences

Please consider donating here if this script was useful to you. pm me on discord if you need help.

setdefaultmousespeed 1

f6:: ;f12 hotkey; you might want to use a different hotkey
    mousegetpos originalx, originaly
    send {f1}
    click 1405, 925
    click originalx, originaly
    send {f5}
    click 1509, 875
    click 1509, 875
    click originalx, originaly
return

or

setdefaultmousespeed 1

f6:: ;f12 hotkey; you might want to use a different hotkey
    MouseGetPos, StartX, StartY
    send {f1}
    click 1405, 925
    click, StartX, StartY
    send {f5}
    click 1509, 875
    click 1509, 875
    MouseMove, StartX, StartY
    click, StartX, StartY
return

F-key Relocation and Mouse Click Anti-Drag

  d::f2    ;
  return   ;
  f::f3    ;
  return   ;
  h::f5    ;
  return   ;this rebind blocks make you click the key 'ex. f5' by pressing the key 'h'
  g::f4    ;
  return   ;
  s::F1    ;
  return   ;

  Lbutton::    ;This removes the ability to drag objects with the mouse
  Send {Click}
  KeyWait, Lbutton
  return


  *Lbutton::Click
  KeyWait, Lbutton
  return

  ~Shift::Suspend, On   ;this temporarily disables the script when Shift key is DOWN
  ~Shift up::Suspend, OFF

  XButton2::Suspend   ;this suspends the script by activating XButton2 (side mouse button)
  `::Suspend          ;this suspends the script by activating the ' ' ' key

  XButton1::Suspend   ;this suspends the script by activating XButton1 (side mouse button)