Results 1 to 3 of 3
  1. #1
    Senior Member
    Join Date
    Sep 2011
    Posts
    0

    Default Autohotkey macro

    Greetings

    Here is the Autohotkey macro I am using with my FvS. Notice that it does nothing at all without me being at the keyboard and active. It merely streamlines spamming more keys into spamming fewer keys.

    Any comments and ideas for improvements are most welcome.

    Code:
    #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.
    
    ; start DDO for me
    #IfWinNotExist Dungeons and Dragons Online
      Run C:\ddo
    
    ; the hotkeys are only active within DDO not when I tab out.
    #IfWinActive ahk_class Turbine Device Class
    
    ; I use this to suspend Autohotkey when entering text in chat, search fields etc.
    $½::Suspend
    
    ; **** Description ***
    ; This macro will swap weaponsets based on which spell I am casting
    ; It will also attempt to cast the first spell which is ready from a list of similar spells (e.g. Heal, CSW, SLA Heal, SLA Hot in that order)
    ; I have spells setup on the keys 1 through 0
    ; and the weaponsets set up on alt-1 through alt-4 (this is setup in game)
    ; The variable weaponset tracks which weaponset I am currently wearing
    ; If I press say key 1 = Heal and I am already wearing the devotion set already it will simply cast the spell. 
    ; If I am wearing something else it will first equip the weaponset then wait a short while and then cast the spell
    ; The code could definitely be trimmed alot but I am too lazy to do so
    ; *** Hopefully there isnt an issue with the bug concerning spellpower not working too well after an item swap. That would really mess things up
    ; **** End description ***
    
    weaponset:="unknown"
    
    1::					
     if (weaponset <> "devotion")
     {
       Send !1 	
       Sleep 200
       weaponset:="devotion"
     }
     Send 1		; heal
     Send !8	; csw
     Send 2		; SLA heal
     Send !6	; SLA hot
     return
    
    2::						
     if (weaponset != "devotion")
     {
       Send !1
       Sleep 200
       weaponset:="devotion"
     }
     Send 2		; SLA heal
     Send !6	; SLA hot
     return
    
    3::
     if (weaponset!="kinetic")
     {
       Send !3
       Sleep 200
       weaponset:="kinetic"
     }
     Send 3		; BB
     return
    
    4::
     if (weaponset != "kinetic")
     {
       Send !3
       Sleep 200
       weaponset := "kinetic"
     }	
     Send 4		; Destruction
     return
    
    5::
     if (weaponset != "light")
     {
       Send !4
       Sleep 200
       weaponset := "light"
     }
     Send 5		; DP
     Send 8		; Divine Wrath
     Send !7	; Avening Light
     return
    
    6::
     if (weaponset != "kinetic")
     {
       Send !3
       Sleep 200
       weaponset := "kinetic"
     }
     Send 6		; Implosion
     return
    
    7::
     if (weaponset != "kinetic")
     {
       Send !3
       Sleep 200
       weaponset := "kinetic"
     }
     Send 7		; MM from Wiz PL
     return
    
    8::
     if (weaponset != "light")
     {
       Send !4
       Sleep 200
       weaponset := "light"
     }
     Send !7	; Divine Wrath
     Send 8		; Avenging Light
     return
    
    
    9::
     if (weaponset != "devotion")
     {
       Send !1
       Sleep 200
       weaponset := "devotion"
     }
     Send 9		; Mass Heal
     Send !9	; Mass Cure
     return
    
    0::
     if (weaponset != "healscroll")
     {
       Send !2
       Sleep 200
       weaponset := "healscroll"
     }
     Send 0		; Heal scroll
     return

  2. #2
    Community Member K_0tiC's Avatar
    Join Date
    Aug 2009
    Posts
    565

    Default

    nvm after reviewing it seems to be ok as long as you dont take it too far and respond to a gm if they try to send you tells etc to make sure you are not botting.
    Last edited by K_0tiC; 10-11-2012 at 04:02 AM.
    Officer of Renowned

    Thelanis


    (Click here too check us out)

    Polverizing The Wise, Dotting The Cleanser, Polarities The Undying, Sosage The Killer, Shootin The piercer & many more holders of items.

  3. #3
    Community Member donfilibuster's Avatar
    Join Date
    Nov 2009
    Posts
    4,063

    Default

    Interesting approach to weapon sets.

    The idea somehow reminds me of the old capcom d&d arcade games where a single button let you rotate on the not-so-hot hotbar.
    Something like that could really unclutter the hotbars on screen, no matter your screen size.

    I find it unfortunate that so many MMOs need have the same point and click approach without any alternatives.
    (won't go on arguing ddo's ui and hotbars isn't too original, you can just go to google image search)
    Closest thing on DDO to rotate actions is the key to rotate weapon sets, and that's fairly recent.

    Furthermore, the keymap funcionality is a bit limited in some ways, for example it only allows one modifier key.
    Figures that was intended for keyboards but if on a game pad i want three modifier keys then need to remap them or set them on autohotkey.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

This form's session has expired. You need to reload the page.

Reload