stupidlazykid5 Posted March 5, 2011 Posted March 5, 2011 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
martin Posted March 6, 2011 Posted March 6, 2011 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 detectCan 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 endFund stop() and so onI 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.
stupidlazykid5 Posted March 7, 2011 Author Posted March 7, 2011 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 comandsnow,When detect text "Dear" it will automatically run script.
somdcomputerguy Posted March 7, 2011 Posted March 7, 2011 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.
stupidlazykid5 Posted March 7, 2011 Author Posted March 7, 2011 (edited) 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 endFunc 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 March 7, 2011 by stupidlazykid5
bltcool Posted March 14, 2011 Posted March 14, 2011 bump, hope someone can help im also looking for this , i still remember back then wingettext was so easy....now it is soo confusing
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now