script only works when window spy is open Topic is solved

Ask gaming related questions (AHK v1.1 and older)
crappey

script only works when window spy is open  Topic is solved

31 Aug 2018, 19:10

Hey I am trying to set up my first script on Monster Hunter World that uses the send click function. The cursor is being moved properly but the click only happens when window spy is open. Anyone know why this is the case?

Code: Select all

#IfWinActive ahk_exe MonsterHunterWorld.exe
^e::
	Send {Click, 1693, 350, 3}
	sleep 100
	Send {Click, 1690, 468, 9}
	sleep 100
	Send {Click, 1690, 591}
	sleep 100
	Send {Click, 1200, 1150}
Return
mlehman6
Posts: 1
Joined: 07 Sep 2018, 08:54

Re: script only works when window spy is open

07 Sep 2018, 10:13

I'm having a very similar problem. I have a script running in conjunction with intercept to change my second keyboard to a DVORAK keyboard layout, but I can only do one keystroke on it before it stops working unless Window Spy is open.

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


#if (getKeyState("F23", "P"))
F23::return

-::[
=::]

q::'
w::,
e::.
r::p
t::y
y::f
u::g
i::c
o::r
p::l
[::/
]::=

s::o
d::e
f::u
g::i
h::d
j::h
k::t
l::n
`;::s
'::-

z::;
x::q
c::j
v::k
b::x
n::b
,::w
.::v
/::z

return
#if
;END of F23 based keyboard
This script is based off of Taran's found here: https://github.com/TaranVH/2nd-keyboard

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: Shoobis and 115 guests