Autohotkey script for melee barbarian

Page 2 of 4 Previous  1, 2, 3, 4  Next

View previous topic View next topic Go down

Re: Autohotkey script for melee barbarian

Post by GregMXL on Sat Nov 08, 2014 3:55 am

Yes I'll move it now.

_____________________
We mortals are but shadows and dust, shadows and dust, Maximus!

GregMXL
Zorun Tzin

Epic Admin
Posts : 13835
TGBest Transferred
Country : United States

View user profile

Back to top Go down

Re: Autohotkey script for melee barbarian

Post by iwansquall on Sat Nov 08, 2014 6:06 am

I got few ideas medianXL autohotkey script, but i still havent figured out to code them.

Some idea are:
1. GUI with user customizable hotkey. (with LMB and RMB toggle)
2. Hotkey with auto LMB or RMB press (to simulate diablo3 keypress -> skill cast)
3. Barbarian LMB spam skill.
4. Shortcut command for multiplayer (basically = press enter, type command to chat).
5. 1-Button all buff skill. It go through several skill shortcut and press appropriate LMB / RMB.
6. Modifier + keys hotkey (without breaking modifier in diablo2 key: shift, ctrl, alt)
7. Disable alt-f4
8. Always show loot (toggle alt key)



BTW, im pretty sure you can compile the script to make it exe so that ppl doesnt need to install AHK first.

iwansquall
Blood Golem

Underpowered Admin
Posts : 2206
Country : Malaysia

View user profile

Back to top Go down

Re: Autohotkey script for melee barbarian

Post by Omesh on Sat Nov 08, 2014 1:02 pm

I've got some rudimentary knowledge of AHK.

First of all, put #IfWinActive at the top of the script to make hotkeys only work in diablo.

1. Some simple GUI with edit, drop down controls would do the trick. I'd make the controls assign variables you'd extract with GuiControlGet and save into an .ini file (which would be read at auto-execute) with IniWrite. Probably would make a subroutine at auto-execute assigning other subroutines to chosen keys.
2. So, like, pressing F2, casting F2 skill and switching back to F1? Just assign variables corresponding to buttons to SendInput. Perhaps PixelGetColor to determine which mouse button skill changed.
3. Something like the OP.
4. A few SendInput.
5. Like 2, but chained.
6. Put a ~ modifier, like ~^F1, when assigning a hotkey.
7. !F4::return
8. SendInput, {Alt Down}. Problem is, that would make any key you press be Alt+key, so I don't think you should do this through AHK.

Here's a script I use to read .ini files.
Link

Omesh
Moon Knight

Posts : 29
Country : ???

View user profile

Back to top Go down

Re: Autohotkey script for melee barbarian

Post by Gekko64 on Sat Nov 08, 2014 2:01 pm

Thanks for the info guys! I'm particularly interested about "always show loot" functionality, I'll look into it as it shouldn't be hard to do with ahk. Actually, it should be even easier with X-Mouse Button Control, but you'll have to use a mouse button for it.


Gekko64
Hopeless

Twinktwat
Posts : 948
Country : Italy

View user profile

Back to top Go down

Re: Autohotkey script for melee barbarian

Post by Gekko64 on Sat Nov 08, 2014 3:15 pm

Ok, as expected it was very easy with X-Mouse:

Spoiler:

This means I press middle mouse button once and it keeps the "show items" pressed until I press the button again ( I'm using Spacebar to show items ) , as you can see you just have to pick Simulated Keys and then 8 ) Sticky Hold.


Unfortunately it's a bit trickier than I thought with autohotkey, maybe AutoIt would be better but I have no experience with it.

Gekko64
Hopeless

Twinktwat
Posts : 948
Country : Italy

View user profile

Back to top Go down

Re: Autohotkey script for melee barbarian

Post by Quirinus on Sat Nov 08, 2014 3:41 pm

AutoIt > AHK

It's like just a few lines of code.

_____________________
"Zu jeder Zeit, an jedem Ort, bleibt das Tun der Menschen das gleiche."

Quirinus
Creature of Flame

Bloody High Five
Posts : 5567
TGGood none
Country : Croatia

View user profile

Back to top Go down

Re: Autohotkey script for melee barbarian

Post by Gekko64 on Sun Nov 09, 2014 5:28 am

I've tried some stuff in AutoIt, nothing useful has come out of it so far Hitting a Wall

Could you help me out Quirinus? What I have in mind is something that keeps spacebar pressed UNLESS middle mouse button is also pressed Smile

Gekko64
Hopeless

Twinktwat
Posts : 948
Country : Italy

View user profile

Back to top Go down

Re: Autohotkey script for melee barbarian

Post by Quirinus on Sun Nov 09, 2014 7:58 am

and what do you want happening when it's pressed/not pressed?

_____________________
"Zu jeder Zeit, an jedem Ort, bleibt das Tun der Menschen das gleiche."

Quirinus
Creature of Flame

Bloody High Five
Posts : 5567
TGGood none
Country : Croatia

View user profile

Back to top Go down

Re: Autohotkey script for melee barbarian

Post by Gekko64 on Sun Nov 09, 2014 2:09 pm

I use spacebar to show items ( to avoid accidents with alt+f4 Very Happy ) so that would mean the game would show items until I use middle mouse button ( which I use instead of LMB when I need to target monsters ) .

Ideally the script would be able to get toggled on/off with another key, so it would work like the "push to toggle on/off" functionality in Diablo 3. I keep my thumb on "V" so I guess "B" would be perfect for that.

Gekko64
Hopeless

Twinktwat
Posts : 948
Country : Italy

View user profile

Back to top Go down

Re: Autohotkey script for melee barbarian

Post by Quirinus on Fri Nov 14, 2014 1:50 pm

I would do it for you (and other people that might find it useful), but currently I'm busy with coding things for Marco, so as soon as I finish those (+probably a quick docs update), I'll help you with that. Should be in a week or so. If I forget, post here or pm me.

My script that I linked has customizable hotkeys tho, dunno if that would work for you until then.

_____________________
"Zu jeder Zeit, an jedem Ort, bleibt das Tun der Menschen das gleiche."

Quirinus
Creature of Flame

Bloody High Five
Posts : 5567
TGGood none
Country : Croatia

View user profile

Back to top Go down

Page 2 of 4 Previous  1, 2, 3, 4  Next

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum