Jump to content

wingettext scripting


Recommended Posts

Hello, I need help understanding wingettext scripting. Or even a better example than the help content.

How would do I start/name my script start function for wingettext? It doesn't work when it detect

Can I do a more specific wingettext such as. A specific size or font detection?

What I know right now:

wingettext("Homework","Dear")

hotkeyset("{End}","Stop"}

Fund start()

Send("{enter}")

sleep(200)

Send("{tab}")

Fund end

Fund stop() and so on

Link to comment
Share on other sites

Hello, I need help understanding wingettext scripting. Or even a better example than the help content.

How would do I start/name my script start function for wingettext? It doesn't work when it detect

Can I do a more specific wingettext such as. A specific size or font detection?

What I know right now:

wingettext("Homework","Dear")

hotkeyset("{End}","Stop"}

Fund start()

Send("{enter}")

sleep(200)

Send("{tab}")

Fund end

Fund stop() and so on

I assume Fund should be Func ?

What do you not like about the example for WinGetText?

Can you try to explain what you want to do in a different way?

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
Link to comment
Share on other sites

I assume Fund should be Func ?

What do you not like about the example for WinGetText?

Can you try to explain what you want to do in a different way?

I would like to convert my script to run when it see's a text instead of using function keys.

Example:

I would press "Home Key" to run my prompt comands

now,

When detect text "Dear" it will automatically run script.

Link to comment
Share on other sites

Well you know 'what' you want to get, but you also have to tell the function (WinGetText in this case) 'where' to get it from.. The title of the window (which WinGetText needs to know) is usually easy to obtain. The AutoIt Window Info Tool (AU3Info) can be used to get more info (for you to use in your code), such as Control ID's, as well as window titles.

- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Link to comment
Share on other sites

Well you know 'what' you want to get, but you also have to tell the function (WinGetText in this case) 'where' to get it from.. The title of the window (which WinGetText needs to know) is usually easy to obtain. The AutoIt Window Info Tool (AU3Info) can be used to get more info (for you to use in your code), such as Control ID's, as well as window titles.

So I have to put a title? So it should be like this? :

wingettext("Microsoft Word","Dear")

hotkeyset("{End}","Stop"}

Func start()

Send("{enter}")

sleep(200)

Send("{tab}")

Func end

Func stop() and so on

///

I understand the title for wingettext.

But it just doesn't run the script when it see's the text, "Dear"

can you help me? thank you

Edited by stupidlazykid5
Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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