MekMilan

Range box gui

May 19th, 2023
1,699
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CoordMode, Mouse, Screen
  2.  
  3. gui() {
  4.     gui, -Caption +AlwaysOnTop
  5.     gui, show, w100 h100, test
  6.     mv()
  7. }
  8.  
  9. mv() {
  10.     MouseGetPos, mouse_x, mouse_y
  11.     mouse_x := (mouse_x + 5)
  12.     mouse_y := (mouse_y + 5)
  13.     WinMove, test,, %mouse_x%, %mouse_y%
  14.     ToolTip, X: %mouse_x% Y: %mouse_y%
  15. }
  16.  
  17. b::gui()
Advertisement
Comments
Add Comment
Please, Sign In to add comment