Blue Eye Logo

Blue Eye Macro

Automation is freedom
It is currently Sat Sep 22, 2018 9:39 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: how to..
Thanked: 0 time(s)  Unread post Posted: Tue Aug 15, 2017 6:36 pm 
New User
New User



Joined: Tue Aug 01, 2017 6:40 pm
Posts: 9
Been thanked: 0 time(s)
Has thanked: 0 time(s)
Contribution Points: 19
i have this....

Code:
    begin
          Window.Request user multiple choice input("title", "A;B;C;D", "result")
    end


i want a criteria that count my choice

example: if i choose A and B or C and A .....
i want a criteria that save the count of choice as variable in this case 2

if i choose A and B and D ... .....
i want a criteria that save the count of choice as variable in this case 3

thank you


Top
 Profile  
Reply with quote  
 Post subject: Re: how to..
Thanked: 0 time(s)  Unread post Posted: Tue Aug 15, 2017 9:58 pm 
Partner / License admin
Partner / License admin
User avatar



Joined: Sun Oct 10, 2010 5:16 pm
Posts: 1818
Location: USA
Been thanked: 389 time(s)
Has thanked: 30 time(s)
Contribution Points: 16313
I don't why you would want to do this, but...since your ignoring the actual responses, you could just change the question to something like, "how many of these apply to you" then list your responses, and then have numbers for the user to select. Then the numbers would match the response. But anyway...

It's not as easy as it sounds to do what you requested because BEM separates the responses with a ";". In order to not count the semicolons you would need to do something like this:
Quote:
begin
Window.Request user multiple choice input("title", "A;B;C;D", "result")
Variable.Get text length("result", "x")
if Variable.Is equal to("x", "3")
begin
Variable.Set("x", "2")
end
if Variable.Is equal to("x", "5")
begin
Variable.Set("x", "3")
end
if Variable.Is equal to("x", "7")
begin
Variable.Set("x", "4")
end
Window.Display message box("{x}", "yes")
end
Anyway, this should do what you requested.

_________________
----------------------------------------Syrifina---------------------------------------------------
PM me for licenses and/or licensing information: Click Here
[Be sure to include and update your profile with your BE ID]

Forum Rules
Reminder of rules regarding Contribution points
Getting started in 1, 2, 3
Virtual Drivers; Manual Installers


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


You cannot post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group