Page 1 of 3 123 LastLast
Results 1 to 20 of 54

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Community Member
    Join Date
    Mar 2010
    Posts
    999

    Default Anyone here know how to write scripts for Auto Hotkey?

    So I had this great idea for a key macro where I can hit one key combination, and my artificer will proceed to cast all of his buffs in succession. I know this will be a pretty straightforward script to write, but after poruing over the AHK documentation for about an hour... all I have is a headache and a script that will only trigger 1 spell. Which is not terribly useful.

    Anyone know?

  2. #2
    Community Member Jingwei's Avatar
    Join Date
    Feb 2011
    Posts
    604

    Default

    Lets say you've mapped the hotbar that holds your buff spells to ctrl + alt + number key (using the DDO ui keymapping)

    Now, let's say that you want to cast the first 6 things on your buff hotbar on the selected party member when you press alt + the appropriate function key.

    From looking at the documentation:

    (Example for F1 function key mapping, you'd need 11 more hotkeys for the F2-F12)

    -----------

    !F1::
    ;! indicates alt key
    ;^ indicates control key
    ;F1 - F24 should be the numbered function keys
    Send F1
    Send ^!1
    Send ^!2
    Send ^!3
    Send ^!4
    Send ^!5
    Send ^!6
    Return

    ----------

    The scripts for the other party members would look like (from F2 to F12)

    ------

    !F2::
    [...]
    Send F2
    [...]
    Return

    -----------

    If you find that this setup goes to fast for the the buffs after the first one to fire, try something like:

    ----------

    !F1::
    Send F1
    Send ^!1
    Sleep 100
    Send ^!2
    Sleep 100
    Send ^!3
    Sleep 100
    Send ^!4
    Sleep 100
    Send ^!5
    Sleep 100
    Send ^!6
    Return

    ----------

    And see if that works. If the later buffs still aren't being fired, try adjusting the sleep amount upward until it works.

  3. #3
    Community Member
    Join Date
    Mar 2010
    Posts
    999

    Default

    So I attempted a slightly simpler script. I have a hotbar bound to Alt+1-0 on which I keep my buffs. I wanted the buff script to run on Ctrl+`.

    In theory, then, the script should look like:

    ^`::
    Send !1
    Sleep 100
    Send !2
    Sleep 100
    Send !3
    Sleep 100
    Send !4
    Sleep 100
    Send !5
    Sleep 100
    Send !6
    Sleep 100
    Send !7
    Sleep 100
    Send !8
    Sleep 100
    Send !9
    Sleep 100
    Send !0


    ...unnnnfortunately my script did not work. Much like every single other script I've ever attempted to write.

    What'd I miss?

    EDIT: DDO doesn't appear to be reading my macros at all. I have a second macro for a different game that on CTRL+Space sends the Enter key, types +atm, then hits Enter again. In DDO I just jump. (Bonus points to anyone who knows what game my other macro is for :P)
    Last edited by HunterjWizzard; 09-09-2012 at 02:58 AM.

  4. #4
    Community Member Jingwei's Avatar
    Join Date
    Feb 2011
    Posts
    604

    Default

    Quote Originally Posted by HunterjWizzard View Post
    What'd I miss?
    Multi-command scripts need 'return' at the end?

  5. #5
    Community Member Robai's Avatar
    Join Date
    Feb 2010
    Posts
    1,462

    Default

    It would be really nice if we could do many things with just one button.

    For example:
    Button 1:
    Cast 5 different buff spells

    Button 2:
    Switch several items at once

    My rogue usually switches 4 items (dps <-> trapmonkey). So, button 2 would really be helpful.

    Quote Originally Posted by Jingwei View Post
    Lets say you've mapped the hotbar that holds your buff spells to ctrl + alt + number key (using the DDO ui keymapping)

    Now, let's say that you want to cast the first 6 things on your buff hotbar on the selected party member when you press alt + the appropriate function key.

    From looking at the documentation:

    (Example for F1 function key mapping, you'd need 11 more hotkeys for the F2-F12)

    ...
    I'd like to write scripts, but how? Should I create some .txt file? That would be awesome if it worked.

  6. #6
    Community Member
    Join Date
    Mar 2010
    Posts
    999

    Default

    Quote Originally Posted by TheRobai View Post
    It would be really nice if we could do many things with just one button.

    For example:
    Button 1:
    Cast 5 different buff spells

    Button 2:
    Switch several items at once

    My rogue usually switches 4 items (dps <-> trapmonkey). So, button 2 would really be helpful.



    I'd like to write scripts, but how? Should I create some .txt file? That would be awesome if it worked.
    Its possible to do with autohotkey. I just happen to be horribly inept at... basically any programing language I have ever tried. When I die the average coding skill of the entire human race will up measurably.

  7. #7
    Community Member Robai's Avatar
    Join Date
    Feb 2010
    Posts
    1,462

    Default

    Quote Originally Posted by HunterjWizzard View Post
    Its possible to do with autohotkey. ...
    Can you tell more? Please.

  8. #8
    Community Member Jingwei's Avatar
    Join Date
    Feb 2011
    Posts
    604

    Default

    Quote Originally Posted by TheRobai View Post
    Can you tell more? Please.
    Auto Hot Key is a small piece of software that allows you to script things like program running, keypresses, and mouse clicks to happen when you give the computer certain input, usually a specific key command.

    It should be able to do things like cast multiple spells with a single key combination, equip multiple pieces of gear, equips and use a piece of gear (like a clicky or scroll) and then re-equip the original piece of gear.

    With enough effort it should even be possible do stuff like automate the sundering of crafting essences, though this would probably take considerable work.

  9. #9
    Hatchery Founder Glenalth's Avatar
    Join Date
    Jan 2006
    Posts
    3,168

    Default

    Quote Originally Posted by Jingwei View Post
    With enough effort it should even be possible do stuff like automate the sundering of crafting essences, though this would probably take considerable work.
    You just need to set a number of clicks+rests or clicks+rests until a break that occur at the current mouse position.

    Here's a simple one that doesn't require any scripting if all you want is a program to click that stupid essence sundering box 1,000 times: http://www.mofiki.com/2011/mofikis-a...mouse-clicker/
    Glenalth Woodwalke ■ Preston the Ranger ■ Brisqoe the Dentist ■ Prescription Liberator
    AoK @ Argonnessen

  10. #10
    Community Member Robai's Avatar
    Join Date
    Feb 2010
    Posts
    1,462

    Default

    Quote Originally Posted by Jingwei View Post
    Auto Hot Key is a small piece of software that allows you to script things like program running, keypresses, and mouse clicks to happen when you give the computer certain input, usually a specific key command.

    It should be able to do things like cast multiple spells with a single key combination, equip multiple pieces of gear, equips and use a piece of gear (like a clicky or scroll) and then re-equip the original piece of gear.

    With enough effort it should even be possible do stuff like automate the sundering of crafting essences, though this would probably take considerable work.
    Thanks, +1
    I'll try that program. Sounds promising.
    I prefer multi-hotkey thing to be inside game though.

  11. #11
    Community Member Darkfury's Avatar
    Join Date
    Oct 2009
    Posts
    77

    Default

    No idea what the stance is regarding using third party software (and hardware like the Logitech keyboards) to write macros here, but some games will ban you for it. I guess that's been covered already and is OK to do or people would not be implicating themselves..!?

  12. #12
    Hatchery Founder Glenalth's Avatar
    Join Date
    Jan 2006
    Posts
    3,168

    Default

    Quote Originally Posted by Darkfury View Post
    No idea what the stance is regarding using third party software (and hardware like the Logitech keyboards) to write macros here, but some games will ban you for it. I guess that's been covered already and is OK to do or people would not be implicating themselves..!?
    The original game came with an advertisement in box for the Logitech G15 keyboard.

    The dev responses in the long long ago were basically, don't build a bot or a complex enough macro that it plays the game for you, but macroing simple functions is OK.
    Glenalth Woodwalke ■ Preston the Ranger ■ Brisqoe the Dentist ■ Prescription Liberator
    AoK @ Argonnessen

  13. #13
    Developer Feather_of_Sun's Avatar
    Join Date
    Feb 2012
    Posts
    266

    Default

    Quote Originally Posted by Glenalth View Post
    The original game came with an advertisement in box for the Logitech G15 keyboard.

    The dev responses in the long long ago were basically, don't build a bot or a complex enough macro that it plays the game for you, but macroing simple functions is OK.
    Here's an official stance:

    As long as -you-, a living, breathing person, are at the keyboard, it's alright.

    No bannings for automation/macro use will happen without a Game Master first trying to communicate with the player in question. That's a fairly rigorous process that includes opening a window on your screen saying to check your tells because a GM has been trying to contact you, and they also wait at least a minute for a response.

  14. #14
    Community Member DaSawks's Avatar
    Join Date
    Sep 2009
    Posts
    401

    Default

    Quote Originally Posted by Feather_of_Sun View Post
    Here's an official stance:

    As long as -you-, a living, breathing person, are at the keyboard, it's alright.

    No bannings for automation/macro use will happen without a Game Master first trying to communicate with the player in question. That's a fairly rigorous process that includes opening a window on your screen saying to check your tells because a GM has been trying to contact you, and they also wait at least a minute for a response.
    Several questions come to mind.

    1. Are there any offical/supported scripts/macros that we can use/download?
    2. 1 minute wait before a ban? Some intense fights last longer that that. So if I get a /tell and do not respond I am S.O.L.?
    3. Will DDO ever allow item sets? Such as DPS gear > trap/lock gear?
    4. How about addons like other games allow? Friend of mine plays #@# and claims there are great addons like, Threat meters, DPS meters, spell chains, cooldown clocks.
    Quote Originally Posted by Cordovan View Post
    No, although VIP players do get free Gold rolls on Daily Dice, so that might fit into your criteria. But when it comes to chest drops, chain rewards, general Daily Dice rolls (what number you get), etc., VIP does not confer additional "luck".

  15. #15
    Community Member
    Join Date
    Apr 2006
    Posts
    0

    Default

    Quote Originally Posted by DaSawks View Post
    Several questions come to mind.

    1. Are there any offical/supported scripts/macros that we can use/download?
    2. 1 minute wait before a ban? Some intense fights last longer that that. So if I get a /tell and do not respond I am S.O.L.?
    3. Will DDO ever allow item sets? Such as DPS gear > trap/lock gear?
    4. How about addons like other games allow? Friend of mine plays #@# and claims there are great addons like, Threat meters, DPS meters, spell chains, cooldown clocks.
    I would expect the 1 minute wait to be for a response to the window they can cause to popup in the middle of your screen telling you that you have failed to respond to the /tell from a GM.

  16. #16
    Community Member Ebondevil's Avatar
    Join Date
    Jul 2009
    Posts
    474

    Default

    Quote Originally Posted by Feather_of_Sun View Post
    Here's an official stance:

    As long as -you-, a living, breathing person, are at the keyboard, it's alright.

    No bannings for automation/macro use will happen without a Game Master first trying to communicate with the player in question. That's a fairly rigorous process that includes opening a window on your screen saying to check your tells because a GM has been trying to contact you, and they also wait at least a minute for a response.
    Last time a GM tried to contact me I saw no screen opening, no notification, no sound indicator, and 1 minute isn't very long at all, probably why I missed them.

  17. #17
    Hatchery Founder Glenalth's Avatar
    Join Date
    Jan 2006
    Posts
    3,168

    Default

    Quote Originally Posted by Feather_of_Sun View Post
    Here's an official stance:

    As long as -you-, a living, breathing person, are at the keyboard, it's alright.

    No bannings for automation/macro use will happen without a Game Master first trying to communicate with the player in question. That's a fairly rigorous process that includes opening a window on your screen saying to check your tells because a GM has been trying to contact you, and they also wait at least a minute for a response.
    Thanks for the info.

    Back to sundering essences while I watch my shows on the other monitor.

    Please, please, please include a multiple essence sundering recipe in the future. This one at a time thing is just stupid.
    Glenalth Woodwalke ■ Preston the Ranger ■ Brisqoe the Dentist ■ Prescription Liberator
    AoK @ Argonnessen

  18. #18
    The Hatchery danotmano1998's Avatar
    Join Date
    Dec 2010
    Posts
    2,928

    Default

    Quote Originally Posted by Feather_of_Sun View Post
    Here's an official stance:

    As long as -you-, a living, breathing person, are at the keyboard, it's alright.

    No bannings for automation/macro use will happen without a Game Master first trying to communicate with the player in question. That's a fairly rigorous process that includes opening a window on your screen saying to check your tells because a GM has been trying to contact you, and they also wait at least a minute for a response.
    Just FYI, One minute is not enough time to get a diaper changed. Or to take care of biological needs in most cases.

    So the process is to send tells, and if they are not answered, a window will pop up from a GM. Does the minute start from the tells or the pop up of the window?
    How many tells?


    Glad you posted, Feather, I appreciate the official reply, thanks.
    <-Curelite Bottling Company->

    Quote Originally Posted by Chilldude
    Dude, did you see they way that guy just pressed button 1? It was amazing! A display of skill unseen since the 1984 World Games where in the men's room, between events, a man washed his hands with such unbridled majesty that people were claiming the faucet he used was OP.

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

    Default

    Quote Originally Posted by Feather_of_Sun View Post
    As long as -you-, a living, breathing person, are at the keyboard, it's alright.
    This means you should not leave the macro run unnattended. (can yeah, but shouldn't)

    So no food break while sundering essences, take the tv and the food near your computer.
    No break for bio or diapers either, just pause the script while away.

    It'd be assumed you will be there to respond, and the pop up window is important enough to stop a fight.
    Unfortunately "puzzle blindness", as it is called when you are too focused in the game, isn't a defense.

    Naturally it rules out raids and critical fights while a continual/repeating macro is running.
    Triggered hotkeys would be fine, which is kind of thing asked in the OP.

    For the record, autohotkey can be used to remap gamepads and joysticks.
    e.g. to move ctrl/shift/alt to the pad buttons.

  20. #20
    Community Member Chette's Avatar
    Join Date
    Mar 2010
    Posts
    1,074

    Default

    Quote Originally Posted by Feather_of_Sun View Post
    Here's an official stance:

    As long as -you-, a living, breathing person, are at the keyboard, it's alright.
    This part seems alright.

    Quote Originally Posted by Feather_of_Sun View Post
    No bannings for automation/macro use will happen without a Game Master first trying to communicate with the player in question. That's a fairly rigorous process that includes opening a window on your screen saying to check your tells because a GM has been trying to contact you, and they also wait at least a minute for a response.
    This part does not, as it does not necessarily confirm a living breathing person is at the keyboard. One minute is not long enough to wait for a response.

    Do you know what I do when I need to do a monotonous task in DDO like sundering essences? I put it on my off monitor and watch a movie or a TV show on my main monitor. My eyes are not on my DDO screen at all, I simply click a button while I do something else. If my eyes shift over to my DDO screen it is simply to make sure my mouse is in the right spot, and I would likely not notice a message unless it took up 50% of my screen and was blinking in fluorescent colours....even then maybe not depending how late it is.
    ~ Cheara : Raizertron : Pozitron : Higgz Bowtron : Illudium : Staphe Infection : Abraa Capocus ~
    Nooby McNoobsalot
    Ghallanda Rerolled

Page 1 of 3 123 LastLast

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