Blue Eye Logo

Blue Eye Macro

Automation is freedom
It is currently Mon May 01, 2017 4:14 am

All times are UTC




Post new topic Reply to topic  [ 19 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Save a screenshot Plugin
Thanked: 0 time(s)  Unread post Posted: Fri Jun 29, 2012 1:37 pm 
Contributor
Contributor



Joined: Sun May 06, 2012 1:25 am
Posts: 57
Been thanked: 1 time(s)
Has thanked: 0 time(s)
Contribution Points: 9
thx guy i will use it on my script *-*


Top
 Profile  
Reply with quote  
 Post subject: Re: Save a screenshot Plugin
Thanked: 0 time(s)  Unread post Posted: Wed Aug 01, 2012 11:59 am 
New User
New User



Joined: Wed Aug 01, 2012 11:20 am
Posts: 4
Been thanked: 0 time(s)
Has thanked: 0 time(s)
Contribution Points: 19
Great feature!
I'll have to try this!


Top
 Profile  
Reply with quote  
 Post subject: Re: Save a screenshot Plugin
Thanked: 0 time(s)  Unread post Posted: Fri Apr 11, 2014 8:51 am 
Silver Contributor
Silver Contributor
User avatar



Joined: Tue Apr 08, 2014 2:28 pm
Posts: 180
Been thanked: 34 time(s)
Has thanked: 10 time(s)
Contribution Points: 24
thank you

_________________
click thank you @_@


Top
 Profile  
Reply with quote  
 Post subject: Re: Save a screenshot Plugin
Thanked: 0 time(s)  Unread post Posted: Sun Mar 08, 2015 5:08 pm 
New User
New User



Joined: Wed Mar 04, 2015 9:49 am
Posts: 24
Been thanked: 2 time(s)
Has thanked: 7 time(s)
Contribution Points: 63
Hi, how do you save screenshot without replacing the last one? for example this is my code

Code:
function("Captcha")
     if  Image.Can be located on screen near coordinate("C:\Users\Pictures\B1.png", "100", "555", "252", "100")
          and
          Macro.Stopwatch counter is greater than("timer5", "10000")
          begin
               Macro.Restart stopwatch("timer5")
               Plugins.Screenshot("C:\Users\Pictures\Botz", "bot", "png", "1", "229", "229", "103", "259", "path")
               Speech.Say("Warning", "yes")
               Speech.Say("Captcha", "yes")
               Speech.Say("Detected", "yes")
          end
function

It always replace bot.npg, how do save multiple screenshots without replacing one another and name it in sequence?

Thank you.


Top
 Profile  
Reply with quote  
 Post subject: Re: Save a screenshot Plugin
Thanked: 0 time(s)  Unread post Posted: Sun Mar 08, 2015 5:18 pm 
Lifetime VIP Contributor
Lifetime VIP Contributor
User avatar



Joined: Tue Nov 23, 2010 10:51 am
Posts: 211
Location: Pandora
Been thanked: 96 time(s)
Has thanked: 66 time(s)
Contribution Points: 8639
you would use a variable to hold the filename

i dont have BEM on this pc but youd have a fixed variable and an incrementing one that you concatenate to a third variable.
pseudocode:
Code:
new variable first = "bot"
new variable second = "1"
new variable combined
string.evaluate({first}+{second}, combined)
then in your plugin line use "{combined}" instead of "bot"

to increment it, you'd just math.increment({second}) and string.evaluate again.

sorry i dont have exact code, but i hope you get idea


Top
 Profile  
Reply with quote  
 Post subject: Re: Save a screenshot Plugin
Thanked: 2 time(s)  Unread post Posted: Sun Mar 08, 2015 8:29 pm 
Partner / License admin
Partner / License admin
User avatar



Joined: Sun Oct 10, 2010 5:16 pm
Posts: 1612
Location: USA
Been thanked: 344 time(s)
Has thanked: 25 time(s)
Contribution Points: 15673
Here's an example of how to increment the file name:
Code:
 begin
     if  Variable.Does not exist("number")
          begin
               Variable.Set("number", "0")
          end
     Variable.Increment (Math)("number")
     Variable.Evaluate (Text)("Bot{number}", "name")
     Window.Display message box("{name}", "yes")
     Speech.Say("Warning, warning, warning........ Captcha Detected", "yes")
 end
Try this by itself first so you can see how it works. When your ready to add it to your code, change the line "window.display" to your "plugins.screenshot". You could use an existing variable instead of setting "number" from the example above.

Also, unless you just want it that way...you don't need "speech.say" multiple times; you can just write it all in one line like in my example.

_________________
----------------------------------------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  
 Post subject: Re: Save a screenshot Plugin
Thanked: 0 time(s)  Unread post Posted: Mon Mar 09, 2015 2:27 am 
New User
New User



Joined: Wed Mar 04, 2015 9:49 am
Posts: 24
Been thanked: 2 time(s)
Has thanked: 7 time(s)
Contribution Points: 63
OMG Thankyou I will try!!!


Top
 Profile  
Reply with quote  
 Post subject: Re: Save a screenshot Plugin
Thanked: 0 time(s)  Unread post Posted: Mon Mar 09, 2015 2:44 am 
Lifetime VIP Contributor
Lifetime VIP Contributor
User avatar



Joined: Tue Nov 23, 2010 10:51 am
Posts: 211
Location: Pandora
Been thanked: 96 time(s)
Has thanked: 66 time(s)
Contribution Points: 8639
Very helpful example Syrifina, that's even simpler that what I described!

I honestly haven't used BEM in forever and haven't even touched a game in months - I've forgotten a lot unfortunately


Top
 Profile  
Reply with quote  
 Post subject: Re: Save a screenshot Plugin
Thanked: 0 time(s)  Unread post Posted: Tue Sep 15, 2015 3:05 pm 
Contributor
Contributor
User avatar



Joined: Sun Aug 02, 2015 12:18 pm
Posts: 95
Been thanked: 3 time(s)
Has thanked: 3 time(s)
Contribution Points: 74
i should try this out


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 19 posts ]  Go to page Previous  1, 2

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