Help setting up an automated clicking task

Get help with using AutoHotkey and its commands and hotkeys
Maval
Posts: 1
Joined: 28 Feb 2019, 18:37

Help setting up an automated clicking task

28 Feb 2019, 18:54

So im trying to make a script that automatically runs certain program and then just do some clicks in the same window, im doing all these on a windows 2008 server while on remote desktop, its really straight forward and easy but the script only works when i have the remote desktop open, if i close the rd window the script keeps running but the clicks are not doing their job, i dont know what is going on, i don't even logout of the session, still clicks aint working if remote desktop is minimized or closed, i will leave you my code here, i don't know if maybe im missing something, im really new to autohotkey.
Thank you for your help!

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.
CoordMode, Mouse, Screen

; Run, C:\Users\manuel\Documents\paginas\Release\Checador.exe
; Sleep, 5000
;Send, {Enter}
;Sleep, 8000
;Send, {Enter}
;Sleep, 8000
;Send, {Enter}
;Sleep, 600
;Click 1060, 590
;Sleep, 400
;Click 1110, 510
;Sleep, 1000000

Click 785, 431 ; Inicia creacion de pdf
Sleep, 1000
Click 785, 431
Sleep, 500
Click 785, 431
Sleep, 500
Click 840, 500
Sleep, 500
Click 1015, 520
Sleep, 500
Click 1300, 240
Sleep, 500
Click 860, 260
Sleep, 500
Send, C:\Users\manuel\Documents\GTCheck
Send, {Enter}
Sleep, 240
Click 850, 660
Send, CaidasTerceros
Sleep, 500
Click 1380, 730
Sleep, 500
Click 1325, 210
Sleep, 500	
Click 780, 432
Sleep, 500
Click 840, 500
Sleep, 500
Click 1120, 550
Sleep, 500
Click 1300, 240
Sleep, 500
Click 860, 260
Sleep, 500
Send, C:\Users\manuel\Documents\GTCheck
Send, {Enter}
Sleep, 500
Click 850, 660
Send, CaidasClientes
Sleep, 500
Click 1380, 730
Sleep, 500
Click 1325, 210
Sleep, 500 ; Termina creacion de pdf

Filecopy, C:\Users\manuel\Documents\paginas\Release\archivos\clientes.xlsx, C:\Users\manuel\Documents\GTCheck
Sleep, 500
Filecopy, C:\Users\manuel\Documents\paginas\Release\archivos\terceros.xlsx, C:\Users\manuel\Documents\GTCheck
Msgbox, Proceso terminado
return


Return to “Ask For Help”

Who is online

Users browsing this forum: agrout, dadidoo, Google [Bot] and 220 guests