<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Generating Mouse Click Events through source code. (For Automated GUI Testing)</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/13e07e45ce/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Visualization/thread/13e07e45ce/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Visualization/thread/13e07e45ce/</id><updated>2020-02-27T18:10:50.581000Z</updated><subtitle>Recent posts to Generating Mouse Click Events through source code. (For Automated GUI Testing)</subtitle><entry><title>Generating Mouse Click Events through source code. (For Automated GUI Testing)</title><link href="https://forge.codesys.com/forge/talk/Visualization/thread/13e07e45ce/?limit=25#446a" rel="alternate"/><published>2020-02-27T18:10:50.581000Z</published><updated>2020-02-27T18:10:50.581000Z</updated><author><name>jking22</name><uri>https://forge.codesys.com/u/jking22/</uri></author><id>https://forge.codesys.combd60f858eb00b76e4e35799821fac59556465eb5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Does anyone know how to throw mouse click events in Codesys Runtime code?&lt;br/&gt;
e.g.&lt;br/&gt;
     resp = SomeLib.MouseClick(300,200);&lt;/p&gt;
&lt;p&gt;Basically the general thought would be...&lt;br/&gt;
1. Codesys Controller with Video Out.&lt;br/&gt;
2. Video to USB Capture Device... &lt;br/&gt;
           * &lt;a class="" href="https://www.amazon.com/AV-io-HD-video-capture-1080p/dp/B00ZH7HRKW/" rel="nofollow"&gt;https://www.amazon.com/AV-io-HD-video-c ... 00ZH7HRKW/&lt;/a&gt;&lt;br/&gt;
           * This one is plug and play and act's like a web-cam.&lt;br/&gt;
           * It's really easy to write code to create an application to display the video stream and Mouse  events.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Sikuli&lt;br/&gt;
           * &lt;a class="" href="http://www.sikuli.org/" rel="nofollow"&gt;http://www.sikuli.org/&lt;/a&gt;&lt;br/&gt;
           * GUI Unit testing framework that uses image recognition for object detection...&lt;/li&gt;
&lt;li&gt;Write some Codesys Code receive click events (RS232, Sockets etc) or change screen commands from sikuli or applications.. process click events and return current visu information.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;If you could integrate this together, you could create a pretty powerful VISU Testing framework...&lt;br/&gt;
e.g. something like...  (Just pseudocode for sikuli or test framework)&lt;br/&gt;
       changeScreen('Main_Visu')&lt;br/&gt;
       assert.exists('ChangeScreen.jpg')&lt;br/&gt;
       framework.click('ChangeScreen.jpg')&lt;br/&gt;
       sleep_ms(2000)&lt;br/&gt;
       Assert(current_Visu = 'NextString')&lt;/p&gt;
&lt;p&gt;Thoughts?  Anyone doing anything similar.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>