Page 1 of 1

DFO Macro - Shield Equip / Block / Return to first hotbar

Posted: June 23rd, 2009, 5:17 pm
by lunkan
Hey Ragsta9.
Ok, I read through your PM, and as I explained, I am unable to get in game at the moment, which means the macro is untested, but sound in Theory.
The only thing I am not sure about, is the pause function that I tried setting to '
I am not sure if AHK uses some special format for that sign or if its just enough to press the button, but try it out, and if it doesn't work, think of another button to use to pause the macro.

Other then that, a quick description:
The macro, when E is pressed, will shift to Hotbar2 (using F2) and equipping your sword, and then your shield, and then it will parry for 1 second before it switches back to Hotbar 1.

Remember to have your game setup as you described it to me in the PM, and send me feedback on the macro and I will fine tune it for you.

Copy the Quoted text into a notepad and save as yournamehere.ahk
Run the script by double clicking the .ahk file. It will Not be active until the current active window is Darkfall.

;
;Custom Macro for Premium Member Ragsta9
;
;
; AutoHotkey Version: 1.x
; Language: English
; Platform: Win9x/NT
; Author: Lunkan
;
;the DELETE closes the macro down
;completely.


#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%

^:
IfWinActive, Darkfall Online
{
Send {Alt down}
Sleep, 50
Send 2
Sleep, 20
Send {Alt up}
Sleep 200
Send 1
Sleep, 700
Send 2
Sleep, 700
Send {v down}
Sleep, 1000
Send {v up}
Sleep, 200
Send {Alt down}
Sleep, 50
Send 1
Sleep, 50
Send {Alt up}
Sleep, 200
}
return

Delete::ExitApp
Edit: Had it tested and edited it to work more smoothly. The pause button didnt work, so it was changed to ALT+E to activate the macro, otherwise it would be impossible to type the letter E in game since that would start the macro (even if it is paused). It also removed the need for a pause button.

Posted: June 24th, 2009, 9:24 am
by lunkan
Updated After Testing.

Posted: June 25th, 2009, 5:54 am
by ragsta9
great job!

yay of course =D

Posted: June 25th, 2009, 6:00 pm
by Tault_admin
What is the macro doing for you ragsta so i can give it a proper title.

Posted: June 25th, 2009, 10:43 pm
by ragsta9
It's autoequipping my shield and blocking briefly before returning to my first hotbar!

Posted: June 25th, 2009, 10:43 pm
by ragsta9
one thing i ask, i made some changes and now want to use Alt+1 for hotbar 1, Alt+2 for hotbar 2. etc.

how do i change the script to support this new change?

Posted: June 26th, 2009, 1:42 am
by lunkan
Ragsta9, using Alt+1 for hotbar isnt recommended with this setup, since if the macro activates, and you are not quick enough to release the ALT button after activating it, the macro wont fire of properly.

If you want to use ALT to switch hotbars, I would recommend CTRL as the trigger so CTRL+E to activate the macro, since that wont conflict with the macro itself. I will edit my above post with those changes.

and next time your friend wants a macro, tell him to come to the site :)

Posted: June 28th, 2009, 12:35 pm
by Tault_admin
nice one lunkan 300 to you and moved to confirmed.

Posted: July 19th, 2010, 7:16 am
by lorddread
hi just wondered why you wouldn't just use pause key to pause/unpause the script? ie add a hotkey
; uses pause to pause unpause script
Pause::Pause

that way can pause unpause without having to actually exit the script

Or to stop hotkeys instead use
Pause::Suspend

Which pauses hotkeys from working as apposed to script which actually is what you want for this since its a hotkey you have in it not an actually script.