Jump to content

Recommended Posts

Posted

Hello,

I'm new to AutoIt and right now I'm writing my second code.

The code already selects a texts and now it should read the marked text and check if the text contains the word "yes". If the text contains "yes" the word should be changed into "no".

My question: is there a way to get the text into the code and check it?

Thank you.

Wozn

Posted
; copy and check

Send ("^c")
$Str = Clipget ()
; To do some modifications to the $Str :
; use StringInStr() to search
; use StringReplace () to change 
ClipPut ($Str)

; there you go

as it was already stated, there is more reliable ways to do what you want but this will give an early start.

Happy scripting !

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...