<p class="MsoNormal">Hi all,</p><p class="MsoNormal">Some 
controls such as toolbar on WS haven’t enabled accessibility. In this 
situation, Sikuli may be the only choice to operate them. So I wrote a 
simple Sikuli function to handle toolbar on WS, and call it from LDTP 
scripts. </p><p class="MsoNormal"> </p><p class="MsoNormal"><b>Prerequisites:</b></p><p><span>1.<span style="font:7.0pt &quot;Times New Roman&quot;">       </span></span>Install LDTP/Cobra and Sikuli</p><p><span>2.<span style="font:7.0pt &quot;Times New Roman&quot;">       </span></span>Open WS, take at least one snapshot for VM</p>

<p class="MsoNormal"> </p><p class="MsoNormal">Place LDTP-Sikuli.py and handleToolbar.sikuli.zip on Desktop, extract the zip file, then run LDTP-Sikuli.py.</p><p class="MsoNormal">LDTP-Sikuli.py
 will open dialogs of taking snapshot, reverting snapshot and managing 
snapshot one by one from toolbar on WS and close them accordingly. 
handleToolbar.sikuli.zip is the underlying Sikuli library which has 
function to handle toolbar.</p><p class="MsoNormal"> </p><p class="MsoNormal"><b>Notes:</b></p><p><span>1.<span style="font:7.0pt &quot;Times New Roman&quot;">       </span></span>Toolbar on WS haven’t enabled accessibility, but windows/dialogs opened from the icons on toolbar have enabled accessibility. <span style="color:rgb(51,51,255)">So write Sikuli library to handle the controls which haven’t enabled accessibility, then call the library from LDTP scripts.</span> This is easy to maintain, just update icon files in handleToolbar.sikuli.zip if they are changed in future(WS 10). </p>

<p><span>2.<span style="font:7.0pt &quot;Times New Roman&quot;">       </span></span>We
 can even get original icon files from developers, no need to capture 
them from Sikuli anymore. This may be helpful to improve accuracy of 
Sikuli library.</p><p><span>3.<span style="font:7.0pt &quot;Times New Roman&quot;">      <span style="color:rgb(51,51,255)"> </span></span></span><span style="color:rgb(51,51,255)">In LDTP-Sikuli.py, I get a smaller searching scope by LDTP API and pass it to Sikuli library.</span> So Sikuli library will run robustly and fast in this way.</p>

<p><span>4.<span style="font:7.0pt &quot;Times New Roman&quot;">       </span></span>I tested on Windows 7 and XP, it works well. </p><p class="MsoNormal"> </p><p class="MsoNormal">
Thanks,</p><p class="MsoNormal">Yingjun<br></p>