Angepinnt Macros and stuff :)

      Macros and stuff :)

      A simple sword and board macro. Here in this macro F1 is the key to be pressed to activate the macro. - is what the sword is bound to and . is what the shield is bound to.

      Quellcode

      1. ;Equipt sword and board:
      2. F1::
      3. Send, {-}
      4. KeyWait F1
      5. Sleep, 400
      6. Send {.}
      7. return



      Moving on to a sprint toggle! This macro is activated by pressing Numpad Enter. Sprint is bound to ,. It's really good to have a sprint toggle macro actually even though it can be a bit annoying in the beginning but it really opens up a lot of more keys to be bound ex. Shift+e, Shift+q and so on.

      Quellcode

      1. ; Sprint toggle
      2. toggle = 0
      3. ~Esc::
      4. If toggle = 1
      5. {
      6. Keywait, Esc
      7. Send, {, down}
      8. }
      9. else
      10. {
      11. toggle = 0
      12. }
      13. return
      14. ~Enter::
      15. If toggle = 1
      16. {
      17. Keywait, Enter
      18. Send, {, down}
      19. }
      20. else
      21. {
      22. toggle = 0
      23. }
      24. return
      25. NumpadEnter::
      26. if toggle := !toggle
      27. Send, {, down}
      28. else
      29. Send, {, up}
      30. return
      31. +NumpadEnter::
      32. Send, {, down}
      33. return



      These macros are for autohotkey.

      Thanks to Jiron for the Sword and board macro!

      Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von „Ynrendin“ ()

      My Ray cycle macro:

      Quellcode

      1. ;Stays at the very top of the script file
      2. ;Global VARs
      3. CaseNumber = 1
      4. ;End Global Vars
      5. ;Darkfall hotkeyes:
      6. ;Angrep/spells etc
      7. ;Shift+a Key Ray Cycle
      8. +a::
      9. if (CaseNumber = 1)
      10. {
      11. Send, {LCtrl down}
      12. Send, {y}
      13. Sleep, 200
      14. Send, {LCtrl up}
      15. CaseNumber := 2
      16. }
      17. else if(CaseNumber = 2)
      18. {
      19. Send, {LCtrl down}
      20. Send, {a}
      21. Sleep, 200
      22. Send, {LCtrl up}
      23. CaseNumber := 3
      24. }
      25. else if(CaseNumber = 3)
      26. {
      27. Send, {LCtrl down}
      28. Send, {o}
      29. Sleep, 200
      30. Send, {LCtrl up}
      31. CaseNumber := 4
      32. }
      33. else if(CaseNumber = 4)
      34. {
      35. Send, {LCtrl down}
      36. Send, {p}
      37. Sleep, 200
      38. Send, {LCtrl up}
      39. CaseNumber := 5
      40. }
      41. else if(CaseNumber = 5)
      42. {
      43. Send, {LCtrl down}
      44. Send, {t}
      45. Sleep, 200
      46. Send, {LCtrl up}
      47. CaseNumber := 1
      48. }
      49. return


      Also use this to make a Nuke button(r90/100 Spells) and some othere Debuff and AOE spells.

      All you have to do is make a new "CaseNumber" variable at the Top(Global), call it ex: Firemagic or aoe etc.

      Ex:

      Quellcode

      1. ;Global VARs
      2. CaseNumber = 1
      3. aoe = 1
      4. ;End Global Vars
      5. ;Shift+a Key Ray Cycle
      6. +a::
      7. if (aoe= 1)
      8. {
      9. Send, {LCtrl down}
      10. Send, {g}
      11. Sleep, 200
      12. Send, {LCtrl up}
      13. aoe:= 2
      14. }
      15. else if(aoe= 2)
      16. {
      17. Send, {LCtrl down}
      18. Send, {r}
      19. Sleep, 200
      20. Send, {LCtrl up}
      21. aoe:= 1
      22. }
      23. return


      Am using ctrl+"key" in darkfall so I have lots of keys to bind stuff to...

      Enjoy
      IT IS LIKELY THAT SOMETHING UNLIKELY WILL HAPPEN


      [expander]Click me for info[/expander]

      Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von „Jiron“ ()

      Time for more autohotkey macro CODES.

      This macro will send multiple commands to darkfall and depending on what weapon you have out it will choose a type of ability that fits that weapon.

      It will be activated when pressing F9 (it's what my MB4 is bound to) then it will send 3 commands. o, F11 and F8. o can be bound to fireball for an example, F11 to power attack and F8 to disabling shot. Just change the keys so it fits you :).

      Quellcode

      1. ;RENAME THIS TO WHATEVER YOU WANT!
      2. F9::
      3. Send, {o}
      4. Send, {F11}
      5. Send, {F8}
      6. return


      Note that this macro won't work if you're holding down shift ^^. Combine this one with the sprint toggle to get even more abilities bound to the same key.



      This one is basically the same just that it's shift+ the activation key to access even more abilities. Note that this one doesn't work so good with sprint bound to shift as it will make your character interrupt your sprint everytime you trigger the macro which results in heavy stamina drain if used too much.

      Quellcode

      1. ;RENAME THIS TO WHATEVER YOU WANT!
      2. +F9::
      3. Send, {o}
      4. Send, {F11}
      5. Send, {F8}
      6. return
      Just copying over some codes from the other forum.

      Originally posted by Jiron :D



      It's a macro I've been using for all my afk macroing. Activate the damn thing by pressing shift+g. Edit the send and sleep so it suits you.

      Quellcode

      1. #MaxThreadsPerHotkey 3
      2. +g:: ; alt+o hotkey (change this hotkey to suit your preferences).
      3. #MaxThreadsPerHotkey 1
      4. if KeepWinZRunning ; This means an underlying thread is already running the loop below.
      5. {
      6. KeepWinZRunning := false ; Signal that thread's loop to stop.
      7. return ; End this thread so that the one underneath will resume and see the change made by the line above.
      8. }
      9. ; Otherwise:
      10. KeepWinZRunning := true
      11. Loop
      12. {
      13. Send, {1}
      14. Sleep 12000
      15. Send, {b}
      16. Sleep 12000
      17. Send, {LButton}
      18. Sleep 12000
      19. Send, {LButton}
      20. Sleep 12000
      21. Send, {LButton}
      22. if not KeepWinZRunning ; The user signaled the loop to stop by pressing Win-Z again.
      23. break ; Break out of this loop.
      24. }
      25. KeepWinZRunning := false ; Reset in preparation for the next press of this hotkey.
      26. return

      Dieser Beitrag wurde bereits 3 mal editiert, zuletzt von „Ynrendin“ ()

      Slot 1: MM
      Slot 2: Staff 1
      Slot 3: Staff 2
      Slot 0: Starter weapon


      #MaxThreadsPerHotkey 15
      !p:: ;alt+p to start/stop
      #MaxThreadsPerHotkey 15
      if KeepLoopRunning
      {
      KeepLoopRunning := false
      return
      }

      item = 0

      KeepLoopRunning := true
      Loop
      {

      %item%++
      if %item% < 8
      {
      Send, {2}
      Sleep, 200
      Send, {r}
      Sleep, 1000
      Send, {1}
      Sleep, 100
      MouseClick, Left
      Sleep, 1800
      Send, {1}
      Sleep, 200
      MouseClick, Left
      Sleep, 1800
      Send, {3}
      Sleep, 500
      Send, {1}
      Sleep, 100
      MouseClick, Left
      Sleep, 1800
      Send, {1}
      Sleep, 100
      MouseClick, Left
      Sleep,1800
      Send, {1}
      Sleep, 100
      MouseClick, Left
      Sleep, 1800
      Send, {1}
      Sleep, 100
      MouseClick, Left
      sleep,1800
      Send, {r}
      Sleep, 1200
      Send, {0}
      Sleep, 1000
      }
      else
      {
      %item% = 0
      }


      if not KeepLoopRunning
      break ; Break out of this loop.
      }
      KeepLoopRunning := false
      return
      IT IS LIKELY THAT SOMETHING UNLIKELY WILL HAPPEN


      [expander]Click me for info[/expander]
      ;
      ; AutoHotkey Version: 1.x
      ; Language: English
      ; Platform: Win9x/NT
      ; Author: A.N.Other <myemail@nowhere.com>
      ;
      ; Script Function:
      ; Template script (you can customize this template by editing "ShellNew\Template.ahk" in your Windows folder)
      ;

      #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
      SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
      SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
      ; IMPORTANT INFO ABOUT GETTING STARTED: Lines that start with a
      ; semicolon, such as this one, are comments. They are not executed.

      ; This script has a special filename and path because it is automatically
      ; launched when you run the program directly. Also, any text file whose
      ; name ends in .ahk is associated with the program, which means that it
      ; can be launched simply by double-clicking it. You can have as many .ahk
      ; files as you want, located in any folder. You can also run more than
      ; one ahk file simultaneously and each will get its own tray icon.

      ; SAMPLE HOTKEYS: Below are two sample hotkeys. The first is Win+Z and it
      ; launches a web site in the default browser. The second is Control+Alt+N
      ; and it launches a new Notepad window (or activates an existing one). To
      ; try out these hotkeys, run AutoHotkey again, which will load this file.


      CaseNumber=1
      HealSelf=1
      fireMagic=1
      debuff = 1
      fieldaoe = 1

      ;Darkfall hotkeyes:

      ;Angrep/spells etc

      +a::
      Send, {F9}
      ;Send, {F7}
      Send, {j}

      if (CaseNumber = 1)
      {
      Send, {LCtrl down}
      Send, {y}
      Sleep, 200
      Send, {LCtrl up}
      CaseNumber := 2
      }
      else if(CaseNumber = 2)
      {
      Send, {LCtrl down}
      Send, {a}
      Sleep, 200
      Send, {LCtrl up}
      CaseNumber := 3
      }

      else if(CaseNumber = 3)
      {
      Send, {LCtrl down}
      Send, {o}
      Sleep, 200
      Send, {LCtrl up}
      CaseNumber := 4
      }
      else if(CaseNumber = 4)
      {
      Send, {LCtrl down}
      Send, {p}
      Sleep, 200
      Send, {LCtrl up}
      CaseNumber := 5
      }
      else if(CaseNumber = 5)
      {
      Send, {LCtrl down}
      Send, {t}
      Sleep, 200
      Send, {LCtrl up}
      CaseNumber := 1
      }

      return


      ;Angrep/spells etc

      +!q::

      if(debuff = 1)
      {
      Send, {LCtrl down}
      Send, {u}
      Sleep, 200
      Send, {LCtrl up}
      debuff := 2
      }
      else if(debuff = 2)
      {
      Send, {LCtrl down}
      Send, {i}
      Sleep, 200
      Send, {LCtrl up}
      debuff := 1
      }

      return

      !a::

      if(fieldaoe = 1)
      {
      Send, {LCtrl down}
      Send, {m}
      Sleep, 200
      Send, {LCtrl up}
      fieldaoe := 2
      }
      else if(fieldaoe = 2)
      {
      Send, {LCtrl down}
      Send, {n}
      Sleep, 200
      Send, {LCtrl up}
      fieldaoe := 1
      }

      return



      ;Angrep/spells
      +d::
      Send, {F8}
      Send, {LAlt down}
      Send, {l}
      Send, {LAlt up}
      ;Send, {F6}
      if (fireMagic= 1){
      Send, {f6}
      fireMagic:= 2
      }
      else if(fireMagic = 2){
      Send, {o}
      fireMagic:= 3
      }
      else if (fireMagic= 3){
      Send, {f6}
      fireMagic:= 4
      }
      else if(fireMagic = 4){
      Send, {LCtrl down}
      Send, {h}
      Sleep, 200
      Send, {LCtrl up}
      fireMagic:= 1
      }


      return

      ;Unequipt Whirlwind/nuke em
      ;r::
      ;Send, {Delete}
      ;Sleep, 50
      ;Send, {F12}
      ;Sleep, 50
      ;Send, {F7}
      ;return

      ;+r::
      ;Send, {Delete}
      ;Sleep, 50
      ;Send, {F12}
      ;Sleep, 50
      ;Send, {F7}
      ;return

      ;Rage skill
      F2::
      Send, {o}
      Sleep, 100
      Send, {u}
      return

      +F2::
      Send, {u}
      return

      ;Equipt sword and bord:
      F1::
      Send, {F11}
      KeyWait F1
      Sleep, 500
      Send {HOME}
      return



      ;Whirlwind
      *F12::
      Send, {y}
      Send, {k}
      if (HealSelf = 1){
      Send, {n}
      HealSelf := 2
      }
      else if(HealSelf = 2){
      Send, {i}
      HealSelf:= 1
      }
      Send, {END}

      return


      ;Explosion/KB on GS
      tab::
      Send, {,}
      Send, {0}
      return

      ;Explosion/KB on GS
      +tab::
      Send, {,}
      Send, {0}
      return

      #MaxThreadsPerHotkey 15
      !o:: ;alt+o to start/stop
      #MaxThreadsPerHotkey 15
      if KeepLoopRunning
      {
      KeepLoopRunning := false
      return
      }

      item = 0
      bae = 0

      KeepLoopRunning := true
      Loop
      {

      %item%++
      %bae%++
      if %item% < 8
      {
      Send, {6}
      Sleep, 500
      Send, {r}
      Sleep, 1000
      Send, {1}
      Sleep, 100
      MouseClick, Left
      Sleep, 1800
      Send, {2}
      Sleep, 200
      MouseClick, Left
      Sleep, 2500
      Send, {7}
      Sleep, 500
      Send, {3}
      Sleep, 100
      MouseClick, Left
      Sleep, 2000
      Send, {4}
      Sleep, 100
      MouseClick, Left
      Sleep,3200
      Send, {F1}
      Sleep, 100
      MouseClick, Left
      Sleep, 2100
      Send, {5}
      Sleep, 100
      MouseClick, Left
      Send, {2}
      Sleep, 100
      MouseClick, Left
      sleep,100
      MouseClick, Left
      Sleep, 3500
      Send, {r}
      Sleep, 1200
      Send, {0}
      Sleep, 1000
      }
      else
      {
      %item% = 0
      Sleep, 3000
      Send, {6}
      Sleep, 1000
      Send, {r}
      Sleep, 1500
      Send, {8}
      Sleep, 100
      MouseClick, Left
      Sleep, 2000
      Send, {6}
      Sleep,1500
      Send, {F5}
      Sleep, 100
      MouseClick, Left
      Sleep, 2500
      Send, {9}
      MouseClick, Left
      Sleep, 2800
      Send, {8}
      Sleep, 100
      MouseClick, Left
      Sleep, 100
      MouseClick, Left
      Sleep, 3500
      Send, {r}
      Sleep, 2500
      Send, {0}
      Sleep, 2500

      }




      if not KeepLoopRunning
      break ; Break out of this loop.
      }
      KeepLoopRunning := false
      return



      #MaxThreadsPerHotkey 10
      !i:: ; siegehammer, F1 is the trigger for this macro
      #MaxThreadsPerHotkey 10
      if KeepLoopRunning
      {
      KeepLoopRunning := false
      return
      }

      item = 0
      bae = 0

      KeepLoopRunning := true
      Loop 50000000
      {

      Sleep, 200
      MouseClick, Left






      if not KeepLoopRunning
      break ; Break out of this loop.
      }
      KeepLoopRunning := false
      return

      ;Stops hotkeys
      !enter::Suspend


      #MaxThreadsPerHotkey 15
      !p:: ;alt+o to start/stop
      #MaxThreadsPerHotkey 15
      if KeepLoopRunning
      {
      KeepLoopRunning := false
      return
      }

      item = 0
      bae = 0

      KeepLoopRunning := true
      Loop
      {

      %item%++
      %bae%++
      if %item% < 8
      {
      Send, {2}
      Sleep, 200
      Send, {r}
      Sleep, 1000
      Send, {1}
      Sleep, 100
      MouseClick, Left
      Sleep, 1800
      Send, {1}
      Sleep, 200
      MouseClick, Left
      Sleep, 1800
      Send, {3}
      Sleep, 500
      Send, {1}
      Sleep, 100
      MouseClick, Left
      Sleep, 1800
      Send, {1}
      Sleep, 100
      MouseClick, Left
      Sleep,1800
      Send, {1}
      Sleep, 100
      MouseClick, Left
      Sleep, 1800
      Send, {1}
      Sleep, 100
      MouseClick, Left
      Sleep, 1800
      Send, {2}
      Sleep, 400
      Send, {1}
      Sleep, 100
      MouseClick, Left
      Sleep, 1800
      Send, {1}
      Sleep, 100
      MouseClick, Left
      sleep,1800
      Send, {r}
      Sleep, 1200
      Send, {0}
      Sleep, 1000
      }
      else
      {
      %item% = 0
      Sleep, 1000
      Send, {2}
      Sleep, 1000
      Send, {r}
      Sleep, 1500
      Random, rand, 7 8
      Send, {rand}
      Sleep, 100
      MouseClick, Left
      Sleep, 2000
      Send, {2}
      Sleep,1500
      Send, {1}
      Sleep, 100
      MouseClick, Left
      Sleep, 1800
      Send, {8}
      Sleep, 200
      MouseClick, Left
      Sleep, 2100
      Send, {1}
      Sleep, 100
      MouseClick, Left
      Sleep, 2000
      Send, {r}
      Sleep, 2500
      Send, {0}
      Sleep, 2500

      }




      if not KeepLoopRunning
      break ; Break out of this loop.
      }
      KeepLoopRunning := false
      return


      #MaxThreadsPerHotkey 15
      !u:: ;alt+o to start/stop
      #MaxThreadsPerHotkey 15
      if KeepLoopRunning
      {
      KeepLoopRunning := false
      return
      }

      item = 0
      bae = 0

      KeepLoopRunning := true
      Loop
      {

      Sleep, 1000
      Send,{w down}
      Sleep,3000
      Send,{w up}
      Sleep,1000
      Send,{w down}
      Sleep, 500
      Send,{Shift down}
      Sleep,42000
      Send,{Shift down}
      Sleep,500
      Send, {w up}
      Sleep,1000
      Send,{0}
      Sleep, 500
      MouseClick, Left
      Sleep,20000






      if not KeepLoopRunning
      break ; Break out of this loop.
      }
      KeepLoopRunning := false
      return

      #MaxThreadsPerHotkey 15
      !f:: ;alt+f to start/stop
      #MaxThreadsPerHotkey 15
      if KeepLoopRunning
      {
      KeepLoopRunning := false
      return
      }

      item = 0

      KeepLoopRunning := true
      Loop
      {


      if %item% < 30
      {
      %item%++
      Send, {2}
      Sleep, 200
      Send, {r}
      Sleep, 1600
      Send, {1}
      Sleep, 100
      MouseClick, Left
      Sleep, 1800
      Send, {1}
      Sleep, 200
      MouseClick, Left
      Sleep, 1800
      Send, {3}
      Sleep, 500
      Send, {4}
      Sleep, 200
      MouseClick, Left
      Sleep, 1800
      Send, {1}
      Sleep, 100
      MouseClick, Left
      Sleep,1800
      Send, {4}
      Sleep, 100
      MouseClick, Left
      Sleep, 1800
      Send, {1}
      Sleep, 100
      MouseClick, Left
      sleep,2500
      Send, {r}
      Sleep, 1000
      Send, {0}
      Sleep, 2000
      }
      else
      {

      Send, {LAlt down}
      Send, {j}
      sleep, 200
      Send, {LAlt up}
      sleep, 40000
      Send, {space}
      sleep, 2000
      %item% = 0
      }


      if not KeepLoopRunning
      break ; Break out of this loop.
      }
      KeepLoopRunning := false
      return
      IT IS LIKELY THAT SOMETHING UNLIKELY WILL HAPPEN


      [expander]Click me for info[/expander]