Blue Eye Logo

Blue Eye Macro

Automation is freedom
It is currently Wed Nov 21, 2018 7:33 am

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Updated - how to use loops and windows.send
Thanked: 0 time(s)  Unread post Posted: Tue Nov 06, 2018 11:37 am 
New User
New User



Joined: Tue Nov 06, 2018 9:38 am
Posts: 3
Been thanked: 0 time(s)
Has thanked: 0 time(s)
Contribution Points: 16
So.. i'm still struggling to get the BE basic use :D
i need a macro to loop 150 times, call a second macro and then start again. how should i write it?
this is what i managed to do at the moment:
MAIN MACRO (need this to repeat 150 times and then call MACRO B)
begin
Macro.Pause("1000")
Mouse.Set coordinate("1152", "626")
Mouse.Hold button("left")
Macro.Pause("17000")
Mouse.Set coordinate("1140", "606")
Mouse.Release button("left")
Macro.Pause("1783")
Mouse.Click at coordinate("204", "683", "left")
Macro.Pause("800")
Mouse.Click at coordinate("1024", "187", "left")
Macro.Pause("800")
Mouse.Click at coordinate("197", "517", "left")
Macro.Pause("800")
Mouse.Click at coordinate("1158", "631", "left")
Macro.Pause("800")
Mouse.Click at coordinate("1219", "108", "right")
Macro.Pause("800")
Mouse.Click at coordinate("1026", "190", "left")
end


MACRO B:
begin
Macro.Pause("1500")
Mouse.Click at coordinate("1123", "126", "right")
Macro.Pause("800")
Keyboard.Press key("4")
Macro.Pause("800")
Mouse.Click at coordinate("220", "678", "left")
Macro.Pause("800")
Mouse.Click at coordinate("220", "678", "left")
Macro.Pause("800")
Mouse.Click at coordinate("214", "524", "left")
Macro.Pause("800")
Mouse.Set coordinate("1118", "643")
Mouse.Hold button("left")
Macro.Pause("6000")
Mouse.Release button("left")
Macro.Pause("800")
Mouse.Click at coordinate("217", "503", "left")
Macro.Pause("800")
Mouse.Click at coordinate("1305", "568", "left")
Macro.Pause("500")
Keyboard.Press key("1")
Macro.Pause("500")
Mouse.Click at coordinate("1117", "122", "left")
end

I managed to call MACRO B with Macro.Execute new("Helper Macros", "MACRO B", "yes") but then i need the main macro to start over.
any tip? thanks


Last edited by unforgiven on Tue Nov 06, 2018 12:11 pm, edited 2 times in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: how to loop a macro, call a second one and begin again?
Thanked: 0 time(s)  Unread post Posted: Tue Nov 06, 2018 11:51 am 
New User
New User



Joined: Tue Nov 06, 2018 9:38 am
Posts: 3
Been thanked: 0 time(s)
Has thanked: 0 time(s)
Contribution Points: 16
uh! i managed to to this on my own! thanks anyway XD
begin
begin loop("150")
Macro.Pause("1000")
Mouse.Set coordinate("1152", "626")
Mouse.Hold button("left")
Macro.Pause("17000")
Mouse.Set coordinate("1140", "606")
Mouse.Release button("left")
Macro.Pause("1783")
Mouse.Click at coordinate("204", "683", "left")
Macro.Pause("800")
Mouse.Click at coordinate("1024", "187", "left")
Macro.Pause("800")
Mouse.Click at coordinate("197", "517", "left")
Macro.Pause("800")
Mouse.Click at coordinate("1158", "631", "left")
Macro.Pause("800")
Mouse.Click at coordinate("1219", "108", "right")
Macro.Pause("800")
Mouse.Click at coordinate("1026", "190", "left")
end
Macro.Pause("1000")
Macro.Execute new("Helper Macros", "Repair", "yes")
Macro.Pause("1000")
end

Next question : how to convert all this using windows.send? Would it still work while having another active window, without messing my mouse movements?


Top
 Profile  
Reply with quote  
 Post subject: Re: Updated - how to use loops and windows.send
Thanked: 0 time(s)  Unread post Posted: Tue Nov 06, 2018 3:36 pm 
Partner / License admin
Partner / License admin
User avatar



Joined: Sun Oct 10, 2010 5:16 pm
Posts: 1839
Location: USA
Been thanked: 393 time(s)
Has thanked: 33 time(s)
Contribution Points: 16376
The "send" instructions are under "window" in the BEM documentation; here's the link for sending a mouse click to a window: viewtopic.php?f=172&t=588.

You'll need to replace your mouse.click instructions with something like the above. If you browse the "window" instructions, there are more options available also.

Using "send" instructions should not mess with your other mouse movements.

_________________
----------------------------------------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  [ 3 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