<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Problem: Run Call Of Duty Warzone]]></title><description><![CDATA[<p dir="auto">Hi<br />
First, excuse my English.</p>
<p dir="auto">I'm trying to open Call Of Duty Warzone, but before it opens, Launcher <a href="http://Battle.net" rel="nofollow ugc">Battle.net</a> will open first. For the game to start I need to click on "Play" in the Launcher. Is there any way around this situation?</p>
]]></description><link>https://www.triggercmd.com/forum/topic/1303/problem-run-call-of-duty-warzone</link><generator>RSS for Node</generator><lastBuildDate>Tue, 10 Mar 2026 05:57:49 GMT</lastBuildDate><atom:link href="https://www.triggercmd.com/forum/topic/1303.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 11 Apr 2021 00:15:18 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem: Run Call Of Duty Warzone on Wed, 10 Jul 2024 17:00:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/20274">@Arthur-Oscar</a> could you share the files again, thanks!</p>
]]></description><link>https://www.triggercmd.com/forum/post/8051</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/8051</guid><dc:creator><![CDATA[Marcos Barquet]]></dc:creator><pubDate>Wed, 10 Jul 2024 17:00:59 GMT</pubDate></item><item><title><![CDATA[Reply to Problem: Run Call Of Duty Warzone on Sun, 28 May 2023 01:24:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/20274">@Arthur-Oscar</a>, awesome.  I'm glad you got it working!  Thanks for sharing your method and your files too.</p>
]]></description><link>https://www.triggercmd.com/forum/post/7066</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/7066</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Sun, 28 May 2023 01:24:16 GMT</pubDate></item><item><title><![CDATA[Reply to Problem: Run Call Of Duty Warzone on Sun, 28 May 2023 00:44:59 GMT]]></title><description><![CDATA[<p dir="auto">Forgot to add all the files used</p>
<p dir="auto"><a href="https://we.tl/t-4w8WHZAPBv" rel="nofollow ugc">https://we.tl/t-4w8WHZAPBv</a></p>
]]></description><link>https://www.triggercmd.com/forum/post/7065</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/7065</guid><dc:creator><![CDATA[Arthur Oscar]]></dc:creator><pubDate>Sun, 28 May 2023 00:44:59 GMT</pubDate></item><item><title><![CDATA[Reply to Problem: Run Call Of Duty Warzone on Sat, 27 May 2023 23:19:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/1">@Russ</a><br />
I Finally Solve the problem...</p>
<p dir="auto">first of all... no .bat is needed. thanks god! hahaha</p>
<p dir="auto">1st step:<br />
configurates to open a link to execute cod.exe (compiled)<br />
<img src="/forum/assets/uploads/files/1685228983117-237c9825-f30f-4f48-ba76-679bc05e520e-image.png" alt="237c9825-f30f-4f48-ba76-679bc05e520e-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">2nd step:<br />
edit a link icon came from cmd (inside SysWOW64 folder) and put this link inside your folder<br />
<img src="/forum/assets/uploads/files/1685229048682-22446163-ce05-40f8-9f84-5e67655a0f2d-image.png" alt="22446163-ce05-40f8-9f84-5e67655a0f2d-image.png" class=" img-fluid img-markdown" /><br />
3rd step:<br />
put the infos as following:<br />
<img src="/forum/assets/uploads/files/1685229121155-f8430959-df5e-474e-80da-6472534f7381-image.png" alt="f8430959-df5e-474e-80da-6472534f7381-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Files needed:<br />
cmd.lnk (icon to run by triggercmd)<br />
cod.au3 (script)<br />
cod.exe(au3 compiled in 64bits)<br />
imagesearch.au3<br />
imagesearchDLL.dll<br />
botao.png (image from button to press)<br />
<img src="/forum/assets/uploads/files/1685229374094-515d56b1-d489-4795-8ec9-51c7dbdd0d78-image.png" alt="515d56b1-d489-4795-8ec9-51c7dbdd0d78-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">that's it...<br />
Thanks <a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/1">@Russ</a> to the help...<br />
hope you enjoy <a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/7727">@Luiz-Henrique-Dela-Giustina</a> and all the others!</p>
]]></description><link>https://www.triggercmd.com/forum/post/7064</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/7064</guid><dc:creator><![CDATA[Arthur Oscar]]></dc:creator><pubDate>Sat, 27 May 2023 23:19:59 GMT</pubDate></item><item><title><![CDATA[Reply to Problem: Run Call Of Duty Warzone on Sat, 27 May 2023 22:35:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/1">@Russ</a> this way its opening in system32 mode...<br />
<img src="/forum/assets/uploads/files/1685226778561-0d4e45f2-b356-4734-b155-1838f7a9faee-image.png" alt="0d4e45f2-b356-4734-b155-1838f7a9faee-image.png" class=" img-fluid img-markdown" /><br />
i need to execute those comands in cmd from syswow64.. like this other image<br />
<img src="/forum/assets/uploads/files/1685226936877-bd8505b2-583a-4129-8abe-56e2fb97bc38-image.png" alt="bd8505b2-583a-4129-8abe-56e2fb97bc38-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://www.triggercmd.com/forum/post/7063</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/7063</guid><dc:creator><![CDATA[Arthur Oscar]]></dc:creator><pubDate>Sat, 27 May 2023 22:35:56 GMT</pubDate></item><item><title><![CDATA[Reply to Problem: Run Call Of Duty Warzone on Sat, 27 May 2023 19:42:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/20274">@Arthur-Oscar</a> please try this in your cod.bat:</p>
<pre><code>echo program running &gt;&gt; D:\alexa\cod\cod.log
c:\Windows\SysWOW64\cmd.exe /c D:\alexa\cod\cod.exe
</code></pre>
<p dir="auto">That will run your cod.exe in the 32bit cmd.exe in the SysWOW64 folder.</p>
]]></description><link>https://www.triggercmd.com/forum/post/7061</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/7061</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Sat, 27 May 2023 19:42:30 GMT</pubDate></item><item><title><![CDATA[Reply to Problem: Run Call Of Duty Warzone on Sat, 27 May 2023 18:47:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/1">@Russ</a><br />
Important information!!!!<br />
allmost solved problem!!!</p>
<p dir="auto">just need to run cod.exe inside SysWOW64 cmd prompt</p>
<p dir="auto">but to do this... i need edit cod.bat file</p>
<p dir="auto">cod.bat says:</p>
<p dir="auto">echo program running &gt;&gt; D:\alexa\cod\cod.log</p>
<p dir="auto">start "" c:\Windows\SysWOW64\cmd.exe &gt;&gt; D:\alexa\cod\cod.exe</p>
<p dir="auto">exit</p>
<p dir="auto">but ofc its not working yet... path is incorrect... there is any way to type the path inside the new cmd window? or... execute cmd from 64bit path directly?</p>
]]></description><link>https://www.triggercmd.com/forum/post/7060</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/7060</guid><dc:creator><![CDATA[Arthur Oscar]]></dc:creator><pubDate>Sat, 27 May 2023 18:47:11 GMT</pubDate></item><item><title><![CDATA[Reply to Problem: Run Call Of Duty Warzone on Fri, 26 May 2023 14:31:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/1">@Russ</a> ill do it... btw i discovered why your result was returning 0 executing manually to you. try right click on au3 file and execute script as 64bits... after that... even .exe compiled 64bits runs okay.</p>
]]></description><link>https://www.triggercmd.com/forum/post/7041</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/7041</guid><dc:creator><![CDATA[Arthur Oscar]]></dc:creator><pubDate>Fri, 26 May 2023 14:31:15 GMT</pubDate></item><item><title><![CDATA[Reply to Problem: Run Call Of Duty Warzone on Thu, 25 May 2023 14:09:47 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/20274">@Arthur-Oscar</a>, you should add a line to your cod.bat that shows something on the screen or writes something to a log like this, so you know it's running.</p>
<pre><code>echo it ran &gt;&gt; c:\scripts\cod.log
</code></pre>
<p dir="auto">Also, make sure Ground = foreground.</p>
]]></description><link>https://www.triggercmd.com/forum/post/7036</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/7036</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Thu, 25 May 2023 14:09:47 GMT</pubDate></item><item><title><![CDATA[Reply to Problem: Run Call Of Duty Warzone on Wed, 24 May 2023 15:05:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/1">@Russ</a> i noticed when i tell to triggercmd to execute cod.bat file... it doesnt blink at the screen, it executes on background or something?</p>
]]></description><link>https://www.triggercmd.com/forum/post/7034</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/7034</guid><dc:creator><![CDATA[Arthur Oscar]]></dc:creator><pubDate>Wed, 24 May 2023 15:05:41 GMT</pubDate></item><item><title><![CDATA[Reply to Problem: Run Call Of Duty Warzone on Tue, 23 May 2023 00:11:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/20274">@Arthur-Oscar</a>, I understand, but I can't make it work with or without TRIGGERcmd.  I've tried everything.  It won't click Play.</p>
]]></description><link>https://www.triggercmd.com/forum/post/7028</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/7028</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Tue, 23 May 2023 00:11:07 GMT</pubDate></item><item><title><![CDATA[Reply to Problem: Run Call Of Duty Warzone on Sat, 20 May 2023 05:55:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/1">@Russ</a> as i told before, executing the script by myself, it works fine, but when i order to trigger result scan is 0.</p>
]]></description><link>https://www.triggercmd.com/forum/post/7025</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/7025</guid><dc:creator><![CDATA[Arthur Oscar]]></dc:creator><pubDate>Sat, 20 May 2023 05:55:38 GMT</pubDate></item><item><title><![CDATA[Reply to Problem: Run Call Of Duty Warzone on Sat, 20 May 2023 04:15:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/1">@Russ</a> sometimes you have to put a wait after movemouse... it click and move at same time</p>
]]></description><link>https://www.triggercmd.com/forum/post/7024</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/7024</guid><dc:creator><![CDATA[Arthur Oscar]]></dc:creator><pubDate>Sat, 20 May 2023 04:15:30 GMT</pubDate></item><item><title><![CDATA[Reply to Problem: Run Call Of Duty Warzone on Fri, 19 May 2023 22:29:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/20274">@Arthur-Oscar</a>, the TRIGGERcmd agent is 64bit.</p>
<p dir="auto">Also yes, I have imagesearchdll.dll in the same folder with the cod.au3 script and the compiled cod.exe.</p>
<p dir="auto"><img src="/forum/assets/uploads/files/1684534534424-4649f284-2b12-4bdb-987e-0f0092b15682-image.png" alt="4649f284-2b12-4bdb-987e-0f0092b15682-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">I have seen it detect and move to the Play button, but it usually doesn't, and when it did move to the Play button it didn't click it.</p>
<p dir="auto"><a href="http://Battle.net" rel="nofollow ugc">Battle.net</a> made it very difficult to automatically start a game.</p>
]]></description><link>https://www.triggercmd.com/forum/post/7018</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/7018</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Fri, 19 May 2023 22:29:32 GMT</pubDate></item><item><title><![CDATA[Reply to Problem: Run Call Of Duty Warzone on Wed, 17 May 2023 07:42:58 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/1">@Russ</a> wich system triggercmd is runing? 32 or 64bit? i noticed if i compile script to 32bits script never works... maybe this influence? if trigger is runing as 32bits... idk</p>
]]></description><link>https://www.triggercmd.com/forum/post/7012</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/7012</guid><dc:creator><![CDATA[Arthur Oscar]]></dc:creator><pubDate>Wed, 17 May 2023 07:42:58 GMT</pubDate></item><item><title><![CDATA[Reply to Problem: Run Call Of Duty Warzone on Wed, 17 May 2023 05:50:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/1">@Russ</a> you can change the PNG file into a piece of your desktop printscreen to try.<br />
This way you dont need <a href="http://battle.net" rel="nofollow ugc">battle.net</a> app.<br />
BTW, i forgot to ask.. you have imagesearchdll.dll file?<br />
if you havent, here the link.<br />
<a href="https://www.autoitscript.com/forum/topic/148005-imagesearch-usage-explanation/" rel="nofollow ugc">https://www.autoitscript.com/forum/topic/148005-imagesearch-usage-explanation/</a><br />
its needed to work.. i tried to send to your email, but gmail doesnt allow me to send.<br />
<img src="/forum/assets/uploads/files/1684302318862-b08221f0-a161-4ebb-85b5-e3a7521f647a-image.png" alt="b08221f0-a161-4ebb-85b5-e3a7521f647a-image.png" class=" img-fluid img-markdown" /> like this one of mine desktop</p>
]]></description><link>https://www.triggercmd.com/forum/post/7011</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/7011</guid><dc:creator><![CDATA[Arthur Oscar]]></dc:creator><pubDate>Wed, 17 May 2023 05:50:19 GMT</pubDate></item><item><title><![CDATA[Reply to Problem: Run Call Of Duty Warzone on Tue, 16 May 2023 23:39:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/20274">@Arthur-Oscar</a>, I don’t know why, but I can’t get it to work at all – with or without TRIGGERcmd.  If I could make it work without TRIGGERcmd I could try to troubleshoot it with TRIGGERcmd.</p>
]]></description><link>https://www.triggercmd.com/forum/post/7010</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/7010</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Tue, 16 May 2023 23:39:52 GMT</pubDate></item><item><title><![CDATA[Reply to Problem: Run Call Of Duty Warzone on Tue, 16 May 2023 22:38:59 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/1">@Russ</a> but works when i click manually.. just when triggercmd try it... it doesnt works...  maybe some argument not passing maybe? idk like tell to triggercmd to execute script as operator<br />
thats <a href="http://battle.net" rel="nofollow ugc">battle.net</a> app</p>
<p dir="auto"><img src="/forum/assets/uploads/files/1684276712039-3b546995-0df9-4710-af01-4ab4134b5485-image.png" alt="3b546995-0df9-4710-af01-4ab4134b5485-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://www.triggercmd.com/forum/post/7009</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/7009</guid><dc:creator><![CDATA[Arthur Oscar]]></dc:creator><pubDate>Tue, 16 May 2023 22:38:59 GMT</pubDate></item><item><title><![CDATA[Reply to Problem: Run Call Of Duty Warzone on Tue, 16 May 2023 21:51:16 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/20274">@Arthur-Oscar</a>, I tried for a couple hours and I couldn't make it work.</p>
<p dir="auto">That <a href="http://battle.net" rel="nofollow ugc">battle.net</a> app not a normal Windows app, so the normal AutoIt tricks aren't working.</p>
]]></description><link>https://www.triggercmd.com/forum/post/7008</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/7008</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Tue, 16 May 2023 21:51:16 GMT</pubDate></item><item><title><![CDATA[Reply to Problem: Run Call Of Duty Warzone on Tue, 16 May 2023 09:54:32 GMT]]></title><description><![CDATA[<p dir="auto">reducing to 1 file...</p>
<p dir="auto">still same problem...</p>
<p dir="auto">#include-once<br />
; ------------------------------------------------------------------------------<br />
;<br />
; AutoIt Version: 3.0<br />
; Language: English<br />
; Description: Functions that assist with Image Search<br />
; Require that the ImageSearchDLL.dll be loadable<br />
;<br />
; ------------------------------------------------------------------------------</p>
<p dir="auto">;===============================================================================<br />
;<br />
; Description: Find the position of an image on the desktop<br />
; Syntax: _ImageSearchArea, _ImageSearch<br />
; Parameter(s):<br />
; $findImage - the image to locate on the desktop<br />
; $tolerance - 0 for no tolerance (0-255). Needed when colors of<br />
; image differ from desktop. e.g GIF<br />
; $resultPosition - Set where the returned x,y location of the image is.<br />
; 1 for centre of image, 0 for top left of image<br />
; $x $y - Return the x and y location of the image<br />
;<br />
; Return Value(s): On Success - Returns 1<br />
; On Failure - Returns 0<br />
;<br />
; Note: Use _ImageSearch to search the entire desktop, _ImageSearchArea to specify<br />
; a desktop region to search<br />
;<br />
;===============================================================================<br />
Func _ImageSearch($findImage,$resultPosition,ByRef $x, ByRef $y,$tolerance)<br />
return _ImageSearchArea($findImage,$resultPosition,0,0,@DesktopWidth,@DesktopHeight,$x,$y,$tolerance)<br />
EndFunc</p>
<p dir="auto">Func _ImageSearchArea($findImage,$resultPosition,$x1,$y1,$right,$bottom,ByRef $x, ByRef $y, $tolerance)<br />
$x1=-1920<br />
$y1=-1080<br />
$right=3840<br />
$bottom=1080<br />
;MsgBox(0,"asd","" &amp; $x1 &amp; " " &amp; $y1 &amp; " " &amp; $right &amp; " " &amp; $bottom)<br />
if $tolerance&gt;0 then $findImage = "*" &amp; $tolerance &amp; " " &amp; $findImage<br />
$result = DllCall("ImageSearchDLL.dll","str","ImageSearch","Int",$x1,"Int",$y1,"Int",$right,"Int",$bottom,"str",$findImage)<br />
; Error checking goes here<br />
If (IsArray($result) = False) Then Return 0<br />
; If error exit<br />
if $result[0]="0" then return 0<br />
; Otherwise get the x,y location of the match and the size of the image to<br />
; compute the centre of search<br />
$array = StringSplit($result[0],"|")</p>
<p dir="auto">$x=Abs(Number($array[2]))<br />
$y=Abs(Number($array[3]))<br />
if $resultPosition=1 then<br />
$x=$x + Abs(Number($array[4])/2)<br />
$y=$y + Abs(Number($array[5])/2)<br />
endif<br />
return 1<br />
EndFunc</p>
<p dir="auto">;===============================================================================<br />
;<br />
; Description: Wait for a specified number of seconds for an image to appear<br />
;<br />
; Syntax: _WaitForImageSearch, _WaitForImagesSearch<br />
; Parameter(s):<br />
; $waitSecs - seconds to try and find the image<br />
; $findImage - the image to locate on the desktop<br />
; $tolerance - 0 for no tolerance (0-255). Needed when colors of<br />
; image differ from desktop. e.g GIF<br />
; $resultPosition - Set where the returned x,y location of the image is.<br />
; 1 for centre of image, 0 for top left of image<br />
; $x $y - Return the x and y location of the image<br />
;<br />
; Return Value(s): On Success - Returns 1<br />
; On Failure - Returns 0<br />
;<br />
;<br />
;===============================================================================<br />
Func _WaitForImageSearch($findImage,$waitSecs,$resultPosition,ByRef $x, ByRef $y,$tolerance)<br />
$waitSecs = $waitSecs * 1000<br />
$startTime=TimerInit()<br />
While TimerDiff($startTime) &lt; $waitSecs<br />
sleep(100)<br />
$result=_ImageSearch($findImage,$resultPosition,$x, $y,$tolerance)<br />
if $result &gt; 0 Then<br />
return 1<br />
EndIf<br />
WEnd<br />
return 0<br />
EndFunc</p>
<p dir="auto">;===============================================================================<br />
;<br />
; Description: Wait for a specified number of seconds for any of a set of<br />
; images to appear<br />
;<br />
; Syntax: _WaitForImagesSearch<br />
; Parameter(s):<br />
; $waitSecs - seconds to try and find the image<br />
; $findImage - the ARRAY of images to locate on the desktop<br />
; - ARRAY[0] is set to the number of images to loop through<br />
; ARRAY[1] is the first image<br />
; $tolerance - 0 for no tolerance (0-255). Needed when colors of<br />
; image differ from desktop. e.g GIF<br />
; $resultPosition - Set where the returned x,y location of the image is.<br />
; 1 for centre of image, 0 for top left of image<br />
; $x $y - Return the x and y location of the image<br />
;<br />
; Return Value(s): On Success - Returns the index of the successful find<br />
; On Failure - Returns 0<br />
;<br />
;<br />
;===============================================================================<br />
Func _WaitForImagesSearch($findImage,$waitSecs,$resultPosition,ByRef $x, ByRef $y,$tolerance)<br />
$waitSecs = $waitSecs * 1000<br />
$startTime=TimerInit()<br />
While TimerDiff($startTime) &lt; $waitSecs<br />
for $i = 1 to $findImage[0]<br />
sleep(100)<br />
$result=_ImageSearch($findImage[$i],$resultPosition,$x, $y,$tolerance)<br />
if $result &gt; 0 Then<br />
return $i<br />
EndIf<br />
Next<br />
WEnd<br />
return 0<br />
EndFunc</p>
<p dir="auto">;#include &lt;ImageSearch.au3&gt;</p>
<p dir="auto">Run ("E:\<a href="http://Battle.net" rel="nofollow ugc">Battle.net</a>\<a href="http://Battle.net" rel="nofollow ugc">Battle.net</a> Launcher.exe")<br />
Sleep(20000)<br />
WinActivate("<a href="http://Battle.net" rel="nofollow ugc">Battle.net</a>")<br />
WinActive("<a href="http://Battle.net" rel="nofollow ugc">Battle.net</a>")<br />
;while(1)<br />
WinActivate("<a href="http://Battle.net" rel="nofollow ugc">Battle.net</a>")<br />
;Run("ImageSearch.au3")<br />
$x = 1<br />
$y = 1<br />
$Search = _ImageSearch("botao.png", 0, $x, $y,0)<br />
if $Search = 1 Then<br />
startapp()<br />
Else<br />
WinActivate("<a href="http://Battle.net" rel="nofollow ugc">Battle.net</a>")<br />
MsgBox("resultado", $Search, "A Busca pela Imagem esta retornando 0")<br />
EndIf<br />
;WEnd<br />
Func startapp()<br />
WinActivate("<a href="http://Battle.net" rel="nofollow ugc">Battle.net</a>")<br />
Sleep(200)<br />
MouseMove($x,$y+0,0)<br />
Sleep(200)<br />
MouseClick("primary")<br />
endapp()<br />
EndFunc</p>
<p dir="auto">Func endapp()<br />
Exit<br />
EndFunc</p>
]]></description><link>https://www.triggercmd.com/forum/post/7007</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/7007</guid><dc:creator><![CDATA[Arthur Oscar]]></dc:creator><pubDate>Tue, 16 May 2023 09:54:32 GMT</pubDate></item><item><title><![CDATA[Reply to Problem: Run Call Of Duty Warzone on Mon, 15 May 2023 06:19:25 GMT]]></title><description><![CDATA[<p dir="auto">ive been working on code...<br />
to not remove posts.. im just going to add again... but modified...<br />
my case now... error stop shows. but still not working when triggercmd start it. even by a .bat file</p>
<p dir="auto">i have 3 monitors... so i changed $x $y $right $bottom values on ImageSearch.au3 (this part still missing negative position. suposing center monitor is the main one with 0-1920px and 0-1080px</p>
<p dir="auto">well... the problem stills on triggercmd not runing the scripts as a normal person  click.</p>
<h2>cod.au3</h2>
<p dir="auto">#include  &lt;ImageSearch.au3&gt;</p>
<p dir="auto">$x = FileReadLine("ImageSearch.au3")<br />
$y = FileReadLine("ImageSearch.au3")</p>
<p dir="auto">Sleep(500)<br />
Run ("E:\<a href="http://Battle.net" rel="nofollow ugc">Battle.net</a>\<a href="http://Battle.net" rel="nofollow ugc">Battle.net</a> Launcher.exe")<br />
WinActivate("<a href="http://Battle.net" rel="nofollow ugc">Battle.net</a>")<br />
WinActive("<a href="http://Battle.net" rel="nofollow ugc">Battle.net</a>")<br />
;while(1)<br />
WinActivate("<a href="http://Battle.net" rel="nofollow ugc">Battle.net</a>")<br />
Run("ImageSearch.au3")<br />
$Search = _ImageSearch("botao.png", 0, $x, $y,0)<br />
if $Search = 1 Then<br />
startapp()<br />
Else<br />
WinActivate("<a href="http://Battle.net" rel="nofollow ugc">Battle.net</a>")<br />
EndIf<br />
;WEnd</p>
<p dir="auto">Func startapp()<br />
WinActivate("<a href="http://Battle.net" rel="nofollow ugc">Battle.net</a>")<br />
Sleep(200)<br />
MouseMove($x,$y+0,0)<br />
Sleep(200)<br />
MouseClick("primary")<br />
endapp()<br />
EndFunc</p>
<h2>Func endapp()<br />
Exit<br />
EndFunc</h2>
<h2>ImageSearch.au3</h2>
<p dir="auto">#include-once<br />
; ------------------------------------------------------------------------------<br />
;<br />
; AutoIt Version: 3.0<br />
; Language:       English<br />
; Description:    Functions that assist with Image Search<br />
;                 Require that the ImageSearchDLL.dll be loadable<br />
;<br />
; ------------------------------------------------------------------------------</p>
<p dir="auto">;===============================================================================<br />
;<br />
; Description:      Find the position of an image on the desktop<br />
; Syntax:           _ImageSearchArea, _ImageSearch<br />
; Parameter(s):<br />
;                   $findImage - the image to locate on the desktop<br />
;                   $tolerance - 0 for no tolerance (0-255). Needed when colors of<br />
;                                image differ from desktop. e.g GIF<br />
;                   $resultPosition - Set where the returned x,y location of the image is.<br />
;                                     1 for centre of image, 0 for top left of image<br />
;                   $x $y - Return the x and y location of the image<br />
;<br />
; Return Value(s):  On Success - Returns 1<br />
;                   On Failure - Returns 0<br />
;<br />
; Note: Use _ImageSearch to search the entire desktop, _ImageSearchArea to specify<br />
;       a desktop region to search<br />
;<br />
;===============================================================================<br />
Func _ImageSearch($findImage,$resultPosition,ByRef $x, ByRef $y,$tolerance)<br />
return _ImageSearchArea($findImage,$resultPosition,0,0,@DesktopWidth,@DesktopHeight,$x,$y,$tolerance)<br />
EndFunc</p>
<p dir="auto">Func _ImageSearchArea($findImage,$resultPosition,$x1,$y1,$right,$bottom,ByRef $x, ByRef $y, $tolerance)<br />
$x1=-1920<br />
$y1=-1080<br />
$right=3840<br />
$bottom=1080<br />
;MsgBox(0,"asd","" &amp; $x1 &amp; " " &amp; $y1 &amp; " " &amp; $right &amp; " " &amp; $bottom)<br />
if $tolerance&gt;0 then $findImage = "*" &amp; $tolerance &amp; " " &amp; $findImage<br />
$result = DllCall("ImageSearchDLL.dll","str","ImageSearch","Int",$x1,"Int",$y1,"Int",$right,"Int",$bottom,"str",$findImage)<br />
; Error checking goes here<br />
If (IsArray($result) = False) Then Return 0<br />
; If error exit<br />
if $result[0]="0" then return 0<br />
; Otherwise get the x,y location of the match and the size of the image to<br />
; compute the centre of search<br />
$array = StringSplit($result[0],"|")</p>
<p dir="auto">$x=Abs(Number($array[2]))<br />
$y=Abs(Number($array[3]))<br />
if $resultPosition=1 then<br />
$x=$x + Abs(Number($array[4])/2)<br />
$y=$y + Abs(Number($array[5])/2)<br />
endif<br />
return 1<br />
EndFunc</p>
<p dir="auto">;===============================================================================<br />
;<br />
; Description:      Wait for a specified number of seconds for an image to appear<br />
;<br />
; Syntax:           _WaitForImageSearch, _WaitForImagesSearch<br />
; Parameter(s):<br />
;					$waitSecs  - seconds to try and find the image<br />
;                   $findImage - the image to locate on the desktop<br />
;                   $tolerance - 0 for no tolerance (0-255). Needed when colors of<br />
;                                image differ from desktop. e.g GIF<br />
;                   $resultPosition - Set where the returned x,y location of the image is.<br />
;                                     1 for centre of image, 0 for top left of image<br />
;                   $x $y - Return the x and y location of the image<br />
;<br />
; Return Value(s):  On Success - Returns 1<br />
;                   On Failure - Returns 0<br />
;<br />
;<br />
;===============================================================================<br />
Func _WaitForImageSearch($findImage,$waitSecs,$resultPosition,ByRef $x, ByRef $y,$tolerance)<br />
$waitSecs = $waitSecs * 1000<br />
$startTime=TimerInit()<br />
While TimerDiff($startTime) &lt; $waitSecs<br />
sleep(100)<br />
$result=_ImageSearch($findImage,$resultPosition,$x, $y,$tolerance)<br />
if $result &gt; 0 Then<br />
return 1<br />
EndIf<br />
WEnd<br />
return 0<br />
EndFunc</p>
<p dir="auto">;===============================================================================<br />
;<br />
; Description:      Wait for a specified number of seconds for any of a set of<br />
;                   images to appear<br />
;<br />
; Syntax:           _WaitForImagesSearch<br />
; Parameter(s):<br />
;					$waitSecs  - seconds to try and find the image<br />
;                   $findImage - the ARRAY of images to locate on the desktop<br />
;                              - ARRAY[0] is set to the number of images to loop through<br />
;								 ARRAY[1] is the first image<br />
;                   $tolerance - 0 for no tolerance (0-255). Needed when colors of<br />
;                                image differ from desktop. e.g GIF<br />
;                   $resultPosition - Set where the returned x,y location of the image is.<br />
;                                     1 for centre of image, 0 for top left of image<br />
;                   $x $y - Return the x and y location of the image<br />
;<br />
; Return Value(s):  On Success - Returns the index of the successful find<br />
;                   On Failure - Returns 0<br />
;<br />
;<br />
;===============================================================================<br />
Func _WaitForImagesSearch($findImage,$waitSecs,$resultPosition,ByRef $x, ByRef $y,$tolerance)<br />
$waitSecs = $waitSecs * 1000<br />
$startTime=TimerInit()<br />
While TimerDiff($startTime) &lt; $waitSecs<br />
for $i = 1 to $findImage[0]<br />
sleep(100)<br />
$result=_ImageSearch($findImage[$i],$resultPosition,$x, $y,$tolerance)<br />
if $result &gt; 0 Then<br />
return $i<br />
EndIf<br />
Next	<br />
WEnd<br />
return 0<br />
EndFunc</p>
]]></description><link>https://www.triggercmd.com/forum/post/7004</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/7004</guid><dc:creator><![CDATA[Arthur Oscar]]></dc:creator><pubDate>Mon, 15 May 2023 06:19:25 GMT</pubDate></item><item><title><![CDATA[Reply to Problem: Run Call Of Duty Warzone on Sun, 14 May 2023 22:43:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/1">@Russ</a> exacly... when we manualy click at file.. it works... but when we tell to triggercmd to do it... it comes null</p>
<p dir="auto">===============================================</p>
<p dir="auto">#include-once<br />
; ------------------------------------------------------------------------------<br />
;<br />
; AutoIt Version: 3.0<br />
; Language:       English<br />
; Description:    Functions that assist with Image Search<br />
;                 Require that the ImageSearchDLL.dll be loadable<br />
;<br />
; ------------------------------------------------------------------------------</p>
<p dir="auto">;===============================================================================<br />
;<br />
; Description:      Find the position of an image on the desktop<br />
; Syntax:           _ImageSearchArea, _ImageSearch<br />
; Parameter(s):<br />
;                   $findImage - the image to locate on the desktop<br />
;                   $tolerance - 0 for no tolerance (0-255). Needed when colors of<br />
;                                image differ from desktop. e.g GIF<br />
;                   $resultPosition - Set where the returned x,y location of the image is.<br />
;                                     1 for centre of image, 0 for top left of image<br />
;                   $x $y - Return the x and y location of the image<br />
;<br />
; Return Value(s):  On Success - Returns 1<br />
;                   On Failure - Returns 0<br />
;<br />
; Note: Use _ImageSearch to search the entire desktop, _ImageSearchArea to specify<br />
;       a desktop region to search<br />
;<br />
;===============================================================================<br />
Func _ImageSearch($findImage,$resultPosition,ByRef $x, ByRef $y,$tolerance)<br />
return _ImageSearchArea($findImage,$resultPosition,0,0,@DesktopWidth,@DesktopHeight,$x,$y,$tolerance)<br />
EndFunc</p>
<p dir="auto">Func _ImageSearchArea($findImage,$resultPosition,$x1,$y1,$right,$bottom,ByRef $x, ByRef $y, $tolerance)<br />
;MsgBox(0,"asd","" &amp; $x1 &amp; " " &amp; $y1 &amp; " " &amp; $right &amp; " " &amp; $bottom)<br />
if $tolerance&gt;0 then $findImage = "*" &amp; $tolerance &amp; " " &amp; $findImage<br />
$result = DllCall("ImageSearchDLL.dll","str","ImageSearch","int",$x1,"int",$y1,"int",$right,"int",$bottom,"str",$findImage)</p>
<pre><code>; If error exit
if $result[0]="0" then return 0

; Otherwise get the x,y location of the match and the size of the image to
; compute the centre of search
$array = StringSplit($result[0],"|")
</code></pre>
<p dir="auto">$x=Int(Number($array[2]))<br />
$y=Int(Number($array[3]))<br />
if $resultPosition=1 then<br />
$x=$x + Int(Number($array[4])/2)<br />
$y=$y + Int(Number($array[5])/2)<br />
endif<br />
return 1<br />
EndFunc</p>
<p dir="auto">;===============================================================================<br />
;<br />
; Description:      Wait for a specified number of seconds for an image to appear<br />
;<br />
; Syntax:           _WaitForImageSearch, _WaitForImagesSearch<br />
; Parameter(s):<br />
;					$waitSecs  - seconds to try and find the image<br />
;                   $findImage - the image to locate on the desktop<br />
;                   $tolerance - 0 for no tolerance (0-255). Needed when colors of<br />
;                                image differ from desktop. e.g GIF<br />
;                   $resultPosition - Set where the returned x,y location of the image is.<br />
;                                     1 for centre of image, 0 for top left of image<br />
;                   $x $y - Return the x and y location of the image<br />
;<br />
; Return Value(s):  On Success - Returns 1<br />
;                   On Failure - Returns 0<br />
;<br />
;<br />
;===============================================================================<br />
Func _WaitForImageSearch($findImage,$waitSecs,$resultPosition,ByRef $x, ByRef $y,$tolerance)<br />
$waitSecs = $waitSecs * 1000<br />
$startTime=TimerInit()<br />
While TimerDiff($startTime) &lt; $waitSecs<br />
sleep(100)<br />
$result=_ImageSearch($findImage,$resultPosition,$x, $y,$tolerance)<br />
if $result &gt; 0 Then<br />
return 1<br />
EndIf<br />
WEnd<br />
return 0<br />
EndFunc</p>
<p dir="auto">;===============================================================================<br />
;<br />
; Description:      Wait for a specified number of seconds for any of a set of<br />
;                   images to appear<br />
;<br />
; Syntax:           _WaitForImagesSearch<br />
; Parameter(s):<br />
;					$waitSecs  - seconds to try and find the image<br />
;                   $findImage - the ARRAY of images to locate on the desktop<br />
;                              - ARRAY[0] is set to the number of images to loop through<br />
;								 ARRAY[1] is the first image<br />
;                   $tolerance - 0 for no tolerance (0-255). Needed when colors of<br />
;                                image differ from desktop. e.g GIF<br />
;                   $resultPosition - Set where the returned x,y location of the image is.<br />
;                                     1 for centre of image, 0 for top left of image<br />
;                   $x $y - Return the x and y location of the image<br />
;<br />
; Return Value(s):  On Success - Returns the index of the successful find<br />
;                   On Failure - Returns 0<br />
;<br />
;<br />
;===============================================================================<br />
Func _WaitForImagesSearch($findImage,$waitSecs,$resultPosition,ByRef $x, ByRef $y,$tolerance)<br />
$waitSecs = $waitSecs * 1000<br />
$startTime=TimerInit()<br />
While TimerDiff($startTime) &lt; $waitSecs<br />
for $i = 1 to $findImage[0]<br />
sleep(100)<br />
$result=_ImageSearch($findImage[$i],$resultPosition,$x, $y,$tolerance)<br />
if $result &gt; 0 Then<br />
return $i<br />
EndIf<br />
Next	<br />
WEnd<br />
return 0<br />
EndFunc</p>
]]></description><link>https://www.triggercmd.com/forum/post/7002</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/7002</guid><dc:creator><![CDATA[Arthur Oscar]]></dc:creator><pubDate>Sun, 14 May 2023 22:43:41 GMT</pubDate></item><item><title><![CDATA[Reply to Problem: Run Call Of Duty Warzone on Sat, 13 May 2023 15:48:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://www.triggercmd.com/forum/uid/20274">@Arthur-Oscar</a>, if you show me your ImageSearch.au3 script, I'll take a look.  It seems that $result variable is null for some reason.</p>
]]></description><link>https://www.triggercmd.com/forum/post/7001</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/7001</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Sat, 13 May 2023 15:48:09 GMT</pubDate></item></channel></rss>