New user, Hotkey Syntax?

Ask gaming related questions (AHK v1.1 and older)
eddiefiv
Posts: 1
Joined: 18 Oct 2017, 13:10

New user, Hotkey Syntax?

18 Oct 2017, 13:13

I'm trying to get this code to run in game. The code is below:

#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.

^f::
Send, MouseClickDrag, L, 912, 650, 770, 149 [, Speed, R]
Return

---
I've never used AHK before so I don't have any idea what I'm doing. If its necessary, the game I'm trying to run the code in is Hearthstone.
Rohwedder
Posts: 7624
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: New user, Hotkey Syntax?

20 Oct 2017, 01:43

Hallo,
try:

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.

^f::
MouseClickDrag, L, 912, 650, 770, 149
Return

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 63 guests