ControlSend

Ask gaming related questions
gudarks
Posts: 2
Joined: 11 Jun 2018, 21:07

ControlSend

Post by gudarks » 13 Jun 2018, 07:08

Hello i'm trying to make ControlSend to work in the game name tibia just to move my character, using arrow or wasd keys press alt same time, but every command i use or setkeydelay it not seem to work and ONLYYY SOMETIMES the code on line 46 :

Code: Select all

ControlSend, ,{LAlt Down}d{LAlt Up}, ahk_exe client.exe
works :\. Here is the rest of the code if someone could help me

Code: Select all

; This script was created using Pulover's Macro Creator
; www.macrocreator.com

#NoEnv
SetWorkingDir %A_ScriptDir%
CoordMode, Mouse, Window
SendMode Play
#SingleInstance Force
SetTitleMatchMode 2
#WinActivateForce
SetControlDelay 1000
SetWinDelay 0
SetKeyDelay 100
SetMouseDelay 50
SetBatchLines -1


End::
Macro1:
WinActivate, ahk_exe client.exe
Sleep, 333
Loop
{
    ControlClick, , ahk_exe client.exe,, Right, 5,  x1597 y36 NA
    Sleep, 78000
    ControlSend, {LAlt Down}a{LAlt Up}, ahk_exe client.exe
    Sleep, 500
    ControlSend, {LAlt Down}, ahk_exe client.exe
    Sleep, 500
    ControlSend,{Up Down}, ahk_exe client.exe
    Sleep, 500
    ControlSend,{LAlt Up}, ahk_exe client.exe
    Sleep, 500
    ControlSend,{Up Up}, ahk_exe client.exe
    Sleep, 500
    ControlClick, , ahk_exe client.exe,, Left, 3,  x572 y842 NA
    Sleep, 78000
    ControlSend,{LAlt Down}, ahk_exe client.exe
    Sleep, 500
    ControlSend,{Left Down}, ahk_exe client.exe
    Sleep, 500
    ControlSend,{LAlt Up}, ahk_exe client.exe
    Sleep, 500
    ControlSend,{Left Up}, ahk_exe client.exe
    Sleep, 500
    ControlSend, ,{LAlt Down}d{LAlt Up}, ahk_exe client.exe
    Sleep, 5000
}
Return


F12::Pause

Return to “Gaming”