jdumont Posted March 18, 2006 Posted March 18, 2006 My script scrolls through the Windows Address Book contacts and goes to the "Other" tab for each contact and does a !G to highlight the Group Membership box. This box cannot be edited here but just highlights whatever is in there so I can focus on it as the script goes by quite quickly. Rather than sit there for an hour... what command can I give the script to abort if "My Group Name" is not highlighted or the box is empty? Thanks in advance.
flyingboz Posted March 25, 2006 Posted March 25, 2006 (edited) .. what command can I give the script to abort if "My Group Name" is not highlighted or the box is empty?uh... Exit() ?BTW, Why on earth would you start out learning on an obsolete version of AutoIT? Edited March 25, 2006 by flyingboz Reading the help file before you post... Not only will it make you look smarter, it will make you smarter.
jdumont Posted April 2, 2006 Author Posted April 2, 2006 uh... Exit() ?BTW, Why on earth would you start out learning on an obsolete version of AutoIT?Thanks. I think my question should have been, (if possible) "how does autoit know if the Group Membership box is empty"? Or if ^a highlighted anything at all? Can autoit know if ^a has highlighted anything (true/false)?Guess I still use v2 because my needs are very basic and support dos pointofsale programs. Same reason why I still use msdos, win98 and w2k; they just work. I wouldn't call it obsolete as v2 does work, but I will have a peek at v3.MS can kiss my a$$ and so can (hasta la)Vista.Hello DesktopBSD!Regards.
flyingboz Posted April 5, 2006 Posted April 5, 2006 Thanks. I think my question should have been, (if possible) "how does autoit know if the Group Membership box is empty"? Or if ^a highlighted anything at all? Can autoit know if ^a has highlighted anything (true/false)?you have to read the control - and then test the value. if you can simulate copy/paste, then you could use ClipGet() and StringLen() to test and branch accordingly. If StringLen(ClipGet()) = 0 Then Skip BTW, Obsolete does not mean nonfunctional. A slide rule still works... Most of us use other computing devices, however. A horse will still take you across the country. Most of us choose to fly or drive. WRT older O/S and applications, if they work great for you, great. But very few people (comparatively speaking) could help you learn how to use a slide rule, while many, many people can use a calculator or computer. So, if you have questions and need help, your chances of getting a response quickly improves when you are using current technologies. Reading the help file before you post... Not only will it make you look smarter, it will make you smarter.
Zedna Posted June 18, 2006 Posted June 18, 2006 In V2 you can manipulate only windows, in V3 you can manipulate windows or directly controls like treeview/listview/... So for your problem is really better to use Autoit V3. Resources UDF ResourcesEx UDF AutoIt Forum Search
Moderators SmOke_N Posted June 18, 2006 Moderators Posted June 18, 2006 In V2 you can manipulate only windows,in V3 you can manipulate windows or directly controls like treeview/listview/...So for your problem is really better to use Autoit V3.Got your coffee yet Zedna , nevermind the fact that the post is 4 months old, if you searched his name you would see, he made the switch http://www.autoitscript.com/forum/index.ph...02entry169002 Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
Zedna Posted June 18, 2006 Posted June 18, 2006 Got your coffee yet Zedna , nevermind the fact that the post is 4 months old, if you searched his name you would see, he made the switch http://www.autoitscript.com/forum/index.ph...533;entry169002@SmOke_NI know it's very old but you never know ...Because I'm still sometimes using also V2 along with main V3 Autoit,I was looking for some "V2 exercise" in this V2 support forum,where I could help somebody with something in V2... Resources UDF ResourcesEx UDF AutoIt Forum Search
Moderators SmOke_N Posted June 19, 2006 Moderators Posted June 19, 2006 @SmOke_NI know it's very old but you never know ...Because I'm still sometimes using also V2 along with main V3 Autoit,I was looking for some "V2 exercise" in this V2 support forum,where I could help somebody with something in V2...Really?I'm curious on why you would do that, is there functionality in V2 that V3 doesn't have that can't be recreated in V3?I've never played with V2 so this is a serious question. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
Zedna Posted June 19, 2006 Posted June 19, 2006 Really?I'm curious on why you would do that, is there functionality in V2 that V3 doesn't have that can't be recreated in V3?I've never played with V2 so this is a serious question.Reasons for use V2 sometimes:1) EXE size is about 45 KB (instead of 200 KB in V3)2) in trivial scripts like Run, WinWait, Send is syntax very similar3) some of my friends knows only V2Have fun with Autoit V2 and V3 Resources UDF ResourcesEx UDF AutoIt Forum Search
i542 Posted June 20, 2006 Posted June 20, 2006 What a... Someone is still on that forum? I thinked evryone switched to AutoIt3. Switch now if you don't to now! i542 I can do signature me.
Zedna Posted June 20, 2006 Posted June 20, 2006 What a... Someone is still on that forum? I thinked evryone switched to AutoIt3.Switch now if you don't to now!i542I aqree.Only rarely is preferable to use V2, V3 is mainstream and very good Resources UDF ResourcesEx UDF AutoIt Forum Search
i542 Posted June 21, 2006 Posted June 21, 2006 I don't think someone still using V2! i542 I can do signature me.
Recommended Posts