Xoutput se cierra con mi código

Post a reply


In an effort to prevent automatic submissions, we require that you complete the following challenge.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Xoutput se cierra con mi código

Xoutput se cierra con mi código

Post by zeoboromir » 12 Apr 2024, 19:40

Hola a todos, necesito de su vasta sabiduría...

En una recreativa arcade uso este código siempre para cerrar Xpadder, abrir xoutput, correr el juego y luego al cerrar el juego que se cierre también Xoutput y vuelva a abrir xpadder.
En esta situación particular al ejecutar el ahk, xoutput se cierra inmediatamente, haciendo pruebas si elimino "sleep y Settimer" el programa se ejecuta pero con la consecuencia que no se cierra al salir del juego y no abre xpadder.

Será posible que puedan ayudarme porfavor a corregir el código?, estoy colgadísimo. :crazy:

Code: Select all

;-
run "c:\windows\system32\taskkill.exe" /IM xpadder.exe /T /F,,hide  
run,D:\xoutput\XOutput.exe
run,D:\Juegos\GRID Autosport\GRIDAutosport.exe
sleep,2000
settimer,a1,1000
return

;-----------
A1:
Process, Exist, GRIDAutosport.exe
if (ErrorLevel <> 0)
 return
if (ErrorLevel = 0)
 {
 Process, Close, XOutput.exe
run,D:\Xpadder\Xpadder.exe
 exitapp
 }
return
;-----------
esc::exitapp
;================================
De antemano, muchisimas gracias!

Top