Jump to content

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Find out more here. X
X


Photo

What Command Do I Use To See If The Highlighted Text Is True Or False?


  • Please log in to reply
11 replies to this topic

#1 jdumont

jdumont

    Seeker

  • Active Members
  • 20 posts

Posted 18 March 2006 - 11:15 PM

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.







#2 flyingboz

flyingboz

    The Network Is All

  • Active Members
  • PipPipPipPipPipPip
  • 768 posts

Posted 25 March 2006 - 02:59 AM

.. 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 by flyingboz, 25 March 2006 - 03:00 AM.

Reading the help file before you post... Not only will it make you look smarter, it will make you smarter.

#3 jdumont

jdumont

    Seeker

  • Active Members
  • 20 posts

Posted 02 April 2006 - 07:58 PM

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.

#4 flyingboz

flyingboz

    The Network Is All

  • Active Members
  • PipPipPipPipPipPip
  • 768 posts

Posted 05 April 2006 - 06:01 PM

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.

#5 Zedna

Zedna

    AutoIt rulez!

  • MVPs
  • 8,758 posts

Posted 18 June 2006 - 10:24 AM

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.

#6 SmOke_N

SmOke_N

    It's not what you know ... It's what you can prove!

  • Moderators
  • 15,730 posts

Posted 18 June 2006 - 10:35 AM

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 :D , nevermind the fact that the post is 4 months old, if you searched his name you would see, he made the switch :D http://www.autoitscript.com/forum/index.ph...02&#entry169002

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.


#7 Zedna

Zedna

    AutoIt rulez!

  • MVPs
  • 8,758 posts

Posted 18 June 2006 - 10:42 AM

Got your coffee yet Zedna :D , nevermind the fact that the post is 4 months old, if you searched his name you would see, he made the switch :P http://www.autoitscript.com/forum/index.ph...533;entry169002


@SmOke_N

I know it's very old :D 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...

#8 SmOke_N

SmOke_N

    It's not what you know ... It's what you can prove!

  • Moderators
  • 15,730 posts

Posted 19 June 2006 - 10:01 AM

@SmOke_N

I know it's very old :D 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.


#9 Zedna

Zedna

    AutoIt rulez!

  • MVPs
  • 8,758 posts

Posted 19 June 2006 - 10:08 AM

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 similar
3) some of my friends knows only V2

Have fun with Autoit V2 and V3 :D

#10 i542

i542

    Captain on the Bridge.

  • Active Members
  • PipPipPipPipPipPip
  • 1,821 posts

Posted 20 June 2006 - 05:31 PM

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.

#11 Zedna

Zedna

    AutoIt rulez!

  • MVPs
  • 8,758 posts

Posted 20 June 2006 - 07:38 PM

What a... Someone is still on that forum? I thinked evryone switched to AutoIt3.
Switch now if you don't to now!
i542


I aqree.
Only rarely is preferable to use V2, V3 is mainstream and very good :D

#12 i542

i542

    Captain on the Bridge.

  • Active Members
  • PipPipPipPipPipPip
  • 1,821 posts

Posted 21 June 2006 - 05:11 PM

:D I don't think someone still using V2!
i542
I can do signature me.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users