Trying to convert small script v1 to v2

Ask gaming related questions
relizera
Posts: 1
Joined: 28 Feb 2024, 09:47

Trying to convert small script v1 to v2

28 Feb 2024, 09:55

I have this small script for Dark Souls 2 that was working before but after a fresh windows install the AutoKey says that this is a v1 script even tho I always used the v2 version of the program.

Code: Select all

#SingleInstance Force
#MaxHotkeysPerInterval 99999
#IfWinActive ahk_class DarkSouls2

;Attack Right Hand
~LButton::H

; Default is Target Lock
MMB_CLICK	= q

;Strong Attack Right Hand
~+LButton::
{
Send {G down}
Sleep 20
Send {G up}
return
}

;Attack Left Hand
~RButton::U

;Strong Attack Left Hand
~+RButton::
{
Send {Y down}
Sleep 20
Send {Y up}
return
}
I have no idea how to convert this to the new version, tried to read the docs but I also don't understand English so well. Can anyone help me here ?


[Mod action: Topic moved to "Gaming"]
niCode
Posts: 317
Joined: 17 Oct 2022, 22:09

Re: Trying to convert small script v1 to v2

28 Feb 2024, 17:04

Does this work?

Code: Select all

#SingleInstance Force
A_MaxHotkeysPerInterval := 99999
#HotIf WinActive('ahk_class DarkSouls2')

;Attack Right Hand
~LButton::H
; Default is Target Lock
MMB_CLICK := 'q'

;Strong Attack Right Hand
~+LButton::
{
    Send('{G down}')
    Sleep(20)
    Send('{G up}')
}

;Attack Left Hand
~RButton::U

;Strong Attack Left Hand
~+RButton::
{
    Send('{Y down}')
    Sleep(20)
    Send('{Y up}')
}

#HotIf
Though you weren't using the variable MMB_CLICK.

Return to “Gaming”

Who is online

Users browsing this forum: No registered users and 12 guests