myth war 2 online script

Ask gaming related questions (AHK v1.1 and older)
User avatar
yawikflame
Posts: 21
Joined: 02 Jan 2017, 06:19
Contact:

myth war 2 online script

16 Sep 2017, 17:21

i'm trying to create a simple bot for myth war 2 online that sends keystrokes (specifically Alt+Q) when inside a battle which will enter into auto-battle mode.
https://photos.app.goo.gl/gi9Bhi6Qo42VlBRl1

i tried using ControlSend and Send but it didn't work for some reason...

my attemps:

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
IfWinExist Myth War II Online
{
	WinActivate Myth War II Online
	sleep, 1000
	send, {AltDown}
	sleep, 1000
	send, q
	sleep, 1000
	send, {AltUp}
}
Return

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
IfWinExist Myth War II Online
{
	ControlSend,, !q, Myth War II Online
}
Return
any help is greatly apprecieted !

Cheers ;)

yawik
User avatar
Reloaded
Posts: 283
Joined: 25 Aug 2017, 08:48

Re: myth war 2 online script

17 Sep 2017, 07:36

So ?

#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
IfWinExist Myth War II Online
{
WinActivate Myth War II Online
sleep, 1000
send, {AltDown}
sleep, 1000
send, q
sleep, 1000
send, {AltUp}
}
Reload

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 47 guests