Searching for a small script

Ask gaming related questions (AHK v1.1 and older)
Edmund
Posts: 4
Joined: 07 Apr 2017, 14:54

Searching for a small script

12 Jun 2021, 04:41

Hi folks, i searching for a small script for WoW, it's for rebind the left mouse key when the right mouse key is press (and hold) and return to a normal state when the right button is release,

I use this small one actually ;

Code: Select all

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

#IfWinActive World of Warcraft

NumpadDot::Click Down Right ;Press . to hold the right mouse button down
NumpadEnter::Click Up Right ;Press Enter to release the right mouse button
LButton::b
PrintScreen::Esc
Pause::i
ScrollLock::n
Del::k
Rctrl::x
RShift::z
RWin::y
APPSKEY::w

#IfWinActive
[Mod edit: [code][/code] tags added.]

but it's not very effective.
User avatar
mikeyww
Posts: 26882
Joined: 09 Sep 2014, 18:38

Re: Searching for a small script

12 Jun 2021, 05:44

Perhaps the following.

Code: Select all

#If WinActive("World of Warcraft") && GetKeyState("RButton", "P")
LButton::b

#IfWinActive World of Warcraft
NumpadDot::Click Down Right ;Press . to hold the right mouse button down
NumpadEnter::Click Up Right ;Press Enter to release the right mouse button
PrintScreen::Esc
Pause::i
ScrollLock::n
Del::k
RCtrl::x
RShift::z
RWin::y
AppsKey::w
#IfWinActive
Edmund
Posts: 4
Joined: 07 Apr 2017, 14:54

Re: Searching for a small script

12 Jun 2021, 06:18

Hi Mikey, that's work perfectly, you know for WoW you need a lot of keys so one more is always welcome, thank you for your time and for your script.
Bye.

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 106 guests