foolove Posted October 7, 2011 Posted October 7, 2011 Pretty simple question here can I regex on a WinWaitActive below would be my regex statement \d{4}-\d{2}-\w{2}\d{5}-.*
foolove Posted October 7, 2011 Author Posted October 7, 2011 also sorry for teh double post how would I add this if I could also i know the regex can be somewhat different from language to language as far as implementing syntax to add teh logic
Developers Jos Posted October 7, 2011 Developers Posted October 7, 2011 Loop retrieving the title of the active window and do a StringRegExp() on the found title. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
foolove Posted October 7, 2011 Author Posted October 7, 2011 could you provide an example thanks for the prompt response thanks
Developers Jos Posted October 7, 2011 Developers Posted October 7, 2011 Not going to code it for you, the given idea should get you started. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
foolove Posted October 7, 2011 Author Posted October 7, 2011 I am very new to the coding language and I am sure it would take me many hours to figure out the one thing coudl someone please help on this thanks
Developers Jos Posted October 7, 2011 Developers Posted October 7, 2011 I am very new to the coding language and I am sure it would take me many hours to figure outWill be a good learning experience... SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
foolove Posted October 7, 2011 Author Posted October 7, 2011 Ultimately I think instead of a regex approach that I was tackling earlier I have two questions. 1) How can I combine WinClose and WinActive together to close the current active window? It be nice to have an example of thise combo. 2) I need to hold the ctrl key then hit a then hold ctrl key then hit c to do a copy of the content im opening Trying to accomplish the two above things go easy I am very new to all this also it would be extremely nice if users would join irc.freenode.net ##autoitscript a guy on the forum is trying to form an irc chat channel on there. I do like having the forum but I will say when I was learning perl and now would consider myself pretty solid with perl the irc perl channel on freenode was very optimal for doing so and I would not have been able to learn as quickly or efficiently without it. Also every major coding language there is has a presence of a support channel on freenode just my two cents on that thanks to anyone that can help on the above though. The guy posted about the IRC channel and was immediately flamed just saying I totaly disagree I think users should support the idea.
Developers Jos Posted October 7, 2011 Developers Posted October 7, 2011 (edited) Listen my friend, you need to stick to one topic and stop firing questions here which do not show much effort from your side.I will merge this thread with the previous one and expect from you to make a start and come back when you get stuck.You then show what you have and what the issue is. clear? Also every major coding language there is has a presence of a support channel on freenode just my two cents on that thanks to anyone that can help on the above though. The guy posted about the IRC channel and was immediately flamed just saying I totaly disagree I think users should support the idea.Just get experienced enough to start it yourself.... have fun. Jos Edited October 7, 2011 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Bowmore Posted October 9, 2011 Posted October 9, 2011 In reply to your original question, it is possible to use a regex to match a windows title using this syntax as shown in the help file. WinWaitActive( "[REGEXPTITLE:\d{4}-\d{2}-\w{2}\d{5}-.*]" , "") "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning."- Rick Cook
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