uwe_baker

Mousemove

Mar 25th, 2016
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. ov_moneyMove := 0
  2.  
  3. :?:/movemoney::
  4. Suspend Permit
  5. KMSG("Du kannst die Money-Anzeige nun mit der Maus verschieben - Bestätigen: L-Mausklick")
  6. SetTimer, timer_Move, 100
  7. ov_moneyMove := 1
  8. return
  9.  
  10. timer_Move:
  11. {
  12. if(ov_moneyMove == 1)
  13. {
  14. MouseGetPos, x, y
  15. TextSetPos(ov_Money, x, y)
  16. If GetKeyState("LButton", "P") ;RButton?!
  17. {
  18. iniwrite, %x%, %A_MyDocuments%\RGN-Overlay+Keybinder\settings.txt, Money, money_X
  19. iniwrite, %y%, %A_MyDocuments%\RGN-Overlay+Keybinder\settings.txt, Money, money_Y
  20.  
  21. ov_moneyMove := 0
  22. KMSG("Money-Anzeige wurde erfolgreich verschoben! (X: " x " - Y: " y ")")
  23. SetTimer, timer_Move, off
  24. }
  25. }
  26. }
  27. return
  28.  
  29. ;Message
  30. KMSG(message)
  31. {
  32. AddChatMessage("{00FF00}Keybinder: {FFFFFF}" message "")
  33. }
Advertisement
Add Comment
Please, Sign In to add comment