Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Finding a word?

$
0
0
Hey I need help trying to carry out the following.


N.B. Problem is if I change the $para1 = 0 it will display the error message but the +5V might be there in the document.

So I think its with the global $para1 statement.

I want to ctrl+f +5V if found do something.

else display msgbox error.



[ autoit ]      
Func row1() ;+5V Global $para1 = Send("{CTRLDOWN}f{CTRLUP}{+}5V") if $para1 = 1 Then MouseClickDrag ( "LEFT", MouseGetPos(0), MouseGetPos(1), MouseGetPos(0) + $xdist , MouseGetPos(1) + $ydist) Send("{CTRLDOWN}c{CTRLUP}") Send("{CTRLDOWN}c{CTRLUP}") Global $sContent1 = ClipGet() ClipPut($sContent1) ClipPut("") Else MsgBox(0,"Error", "No +5V parameter found!", 3) Endif EndFunc

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>