Var = 1 MButton:: if Var = 1 ; Right clicks the door and hits build { MouseGetPos, x1, y1 Click, right Sleep, 20 Click, left, 0, 40, Relative Var++ return } if Var = 2 ; builds the door { Click, 198, 358 Var++ return } if Var = 3 ; removes the door { Click, right, %x1%, %y1% Random, Sleep, 80, 100 Sleep, %sleep% Click, left, 0, 100, Relative Var++ return } if Var = 4 ; says yes { SendInput, 1 Var = 1 return } F1:: ; resets the script in case you mess up Var = 1 return