Locked Home » Forums » Legacy & Archived » Archived Content » Darkfall Online » DFO - Premium - Discussions

Assign spells to hotkeys AutoHotkey macro : DFO - Premium - Discussions

Posted: March 30th, 2009
Total Posts:45 Joined:2009
This isn't really a big deal, but I thought it might be usefull to some other players aswell. Especially since always changing hotbars to get to those spells is annoying. This way you can assign a spell to a hotkey. It's for AutoHotkey.

I modified an existing script so I could set up hotkeys to spells without having to change hotbars. What this does is go to a hotbar where you want, select the hotbar item/spell you want and then switch back to the other hotbar where you were at. It does this fast, half a second, so this way you don't have to keep changing hotbars in pvp and just press a key to select a spell. You do however need to tweak it for your use. As it is right now it's ctrl-1 to ctrl-0, going from hotbar number 2's item nr 1 to item nr 10 without switching from hotbar number one.

Add whatever key you want to the "^*insert your own hotkey here*::" line. You can also edit it for each hotkey you want, and make it go to whatever hotbar&slot you want. If you want, you can use + for shift, ^for ctrl, and * for alt, before the key to make key combinations. You can also have as many hotkeys as you want, not just 10. That said it's piss easy to edit/tweak.

Code: Register to unlock hidden link

; Script Function: Ctrl-# will change the Hotkey bar to # and then press # you want. Modify to your liking.
; This allows you to quick swap to a bar and quickly equip w/e you want without changing hotbars


#NoEnv  
SendMode Input  
SetWorkingDir %A_ScriptDir% 

^1::                              ; If Ctrl-1 is pressed... 
IfWinActive, Darkfall Online ; Check to see if darkfall is active
{
	Send +2          ;Send Shift-2 to change bars
	Sleep, 200       ;Sleep so the command can go through
	Send 1           ;Send # of hotbar slot to equip/set
	Sleep, 200       ;Sleep for a bit
	Send +1          ;Send Shift-1 and goes back to first hotbar
}
return

^2::
IfWinActive, Darkfall Online
{
	Send +2          
	Sleep, 200       
	Send 2           
	Sleep, 200       
	Send +1          
}
return

^3::
IfWinActive, Darkfall Online
{
	Send +2          
	Sleep, 200       
	Send 3           
	Sleep, 200       
	Send +1          
}
return

^4::
IfWinActive, Darkfall Online
{
	Send +2          
	Sleep, 200       
	Send 4           
	Sleep, 200       
	Send +1          
}
return

^5::
IfWinActive, Darkfall Online
{
	Send +2          
	Sleep, 200       
	Send 5           
	Sleep, 200       
	Send +1          
}
return

^6::
IfWinActive, Darkfall Online
{
	Send +2          
	Sleep, 200       
	Send 6           
	Sleep, 200       
	Send +1          
}
return

^7::
IfWinActive, Darkfall Online
{
	Send +2          
	Sleep, 200       
	Send 7           
	Sleep, 200       
	Send +1          
}
return

^8::
IfWinActive, Darkfall Online
{
	Send +2          
	Sleep, 200       
	Send 8           
	Sleep, 200       
	Send +1          
}
return

^9::
IfWinActive, Darkfall Online
{
	Send +2          
	Sleep, 200       
	Send 9         
	Sleep, 200       
	Send +1  
}
return

^0::
IfWinActive, Darkfall Online
{
	Send +2          
	Sleep, 200       
	Send 0          
	Sleep, 200       
	Send +1  
}
return
Posted: April 1st, 2009
User avatar
administrator
Total Posts:29891 Joined:2002
Can members say yay or nay to this so we may give tu bucks and/or premium. If you nay the submission remember to include as to why.
Posted: April 1st, 2009
drizuid
it works... but i wouldnt use it.. run out of hotkeys :p

giving tubucks or premium for ahk scripts is lame... they're easy to rip-off and just add some !@#$%^* in.
Posted: April 2nd, 2009
Total Posts:45 Joined:2009
drizuid wrote:it works... but i wouldnt use it.. run out of hotkeys :p

giving tubucks or premium for ahk scripts is lame... they're easy to rip-off and just add some !@#$%^&* in.
I've been using this for a while now but I didn't want to post it because I don't think it's worth much also. But then I saw alot of people asking if you could assign spells to hotkeys.

Truth is I use it only for the essential pvp spells so that I don't have to change hotbars in order to change weapons again, this way I can switch between weapons fast without having to change the hotbars aswell.
Posted: April 2nd, 2009
User avatar
administrator
Total Posts:29891 Joined:2002
Waiting on those yays and nays now :)
Posted: April 12th, 2009
Premium
Total Posts:14 Joined:2008
Does this not work while sprinting for anyone else?
Posted: April 12th, 2009
Total Posts:45 Joined:2009
taultuser wrote:Does this not work while sprinting for anyone else?
What key you use for sprinting ?
Posted: April 12th, 2009
Total Posts:4 Joined:2009
no it shouldn't work while sprinting because the trigger for the HK is ^1-0 which is Ctrl1-10 while shift is a command for scripting as the + symbol so while sprinting you are actually not giving the right command to activate the script.

+^1 would be the command you're giving if you try to trigger the script while sprinting.
Posted: April 13th, 2009
Premium
Total Posts:14 Joined:2008
I am currently using shift.

I will give this a try when I get home, but I suspect the "F" keys will not work in conjunction with sprint. /sigh
Ready to join the community? Click here and see all of the benefits!
blue large dotWho is online
Users browsing this forum: No registered users and 2 guests
Locked