mardi 17 juillet 2018

Searching for a string in VBA reflection

I am trying to create a VBA macro that searches the text current displayed on the screen for a certain word and performs a function if the word is present.

For instance, if the word is present the script would then simulate a pressing of the enter key.

My issue is I cannot find a workable way to do this.

In my specific instance I am trying to use

check = osCurrentScreen.SearchText("test",1,1,FindOptions_Forward)

But I am getting the object/variable not defined error. Is there a better way to do this or to fix what I am doing?





Aucun commentaire:

Enregistrer un commentaire