Advertisement
axpen

Final Fantasy XIV: Quick Blacklist

Sep 8th, 2013
642
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 2.08 KB | None | 0 0
  1. #cs ----------------------------------------------------------------------------
  2.  
  3.  AutoIt Version: 3.3.8.1
  4.  Author:         axpen
  5.  
  6.  Script Function:
  7.     Quickly add last shout or tell to blacklist.
  8.     Key combos are as follows;
  9.     Add last shout: Control+Alt+Shift+DELETE
  10.     Add last tell: Control+Alt+Shift+INSERT
  11.     Terminate: Control+Alt+Shift+END
  12.  
  13.     MAKE SURE you are at your base UI, meaning no windows up or cursors up
  14.     anywhere using numpad previously.
  15.     Obviously key shortcuts can be changed, just use the AutoIt reference for
  16.     "send".
  17.  
  18.     And as always I take no responsibility for account deletion for hacking if
  19.     Square Enix deems this software "automation".
  20.  
  21. #ce ----------------------------------------------------------------------------
  22.  
  23. #include <Misc.au3>
  24.  
  25. ; ------------------USER CONFIGURABLE OPTIONS------------------
  26. ; -----Hotkeys-----
  27. HotKeySet("+^!{INSERT}", "BlistTell")
  28. HotKeySet("+^!{DEL}", "BlistShout")
  29. HotKeySet("+^!{END}", "Term")
  30. ; -----Delays-----
  31. ; Users of slower computers may need to increase this number it sets the delay
  32. ; (in milliseconds) in between key presses.
  33. AutoItSetOption("SendKeyDelay", "200")
  34. ; Number of milliseconds to wait before sending confirmation button presses.
  35. ; Again slower computers may really want to up this number.
  36. Global $confirmDelay = 500
  37.  
  38. Global $running = 1
  39. Main()
  40.  
  41. Func Main()
  42.     While $running = 1
  43.         Sleep(100)
  44.     WEnd
  45. EndFunc
  46.  
  47. Func BlistShout()
  48.     If WinActive("FINAL FANTASY XIV") Then
  49.         _SendEx('{NUMPAD1}{NUMPAD8}{NUMPAD0}{NUMPAD0}{BS}"{HOME}{DEL}{DEL}{DEL}{DEL}{DEL}{DEL}')
  50.         _SendEx('/blist add "{ENTER}')
  51.         Sleep($confirmDelay)
  52.         _SendEx('{NUMPAD0}')
  53.     EndIf
  54. EndFunc
  55.  
  56. Func BlistTell()
  57.     If WinActive("FINAL FANTASY XIV") Then
  58.         _SendEx('/blist add <r>{ENTER}')
  59.         Sleep($confirmDelay)
  60.         _SendEx('{NUMPAD0}{NUMPAD0}')
  61.     EndIf
  62. EndFunc
  63.  
  64. Func _SendEx($ss)
  65.     While _IsPressed("10") Or _IsPressed("11") Or _IsPressed("12")
  66.         Sleep(50)
  67.     WEnd
  68.     Send($ss)
  69. EndFunc
  70.  
  71. Func Term()
  72.     $running = 0
  73. EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement