Blue Eye Logo

Blue Eye Macro

Automation is freedom
It is currently Fri Jan 20, 2017 10:03 pm

All times are UTC




Post new topic Reply to topic  [ 34 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
 Post subject: Re: txt & E-mail plugin
Thanked: 0 time(s)  Unread post Posted: Wed Aug 29, 2012 11:59 am 
Contributor
Contributor



Joined: Tue Jul 17, 2012 8:11 am
Posts: 58
Been thanked: 15 time(s)
Has thanked: 5 time(s)
Contribution Points: 125
thanks to you, 'cause I can't go further without your help and your plugins ^^.


Top
 Profile  
Reply with quote  
 Post subject: Re: txt & E-mail plugin
Thanked: 0 time(s)  Unread post Posted: Sun Sep 16, 2012 2:39 am 
Contributor
Contributor



Joined: Tue Jul 17, 2012 8:11 am
Posts: 58
Been thanked: 15 time(s)
Has thanked: 5 time(s)
Contribution Points: 125
Hmmm,

Trying to do something with taking an action when the mail is send but I have an error :

(short time to test purpose, and username/password are well set up)
Quote:
Started
Executing: Variable.Set(Variable name: stop, Value: 0)
Executing: Function.Execute(Name: test txt)
Checking if: Color.At coordinate is (RGB)(R: 9, G: 23, B: 69, X coordinate: 1834, Y coordinate: 972)
Result: Yes
Executing: Plugins.Screenshot(Folder path: C:\Tmp, Image name: endofbot, Image type: jpg, Resize factor: 1, X Coordinate: 0, Y Coordinate: 0, X Coordinate: 1920, Y Coordinate: 1200, Store path to variable: screenshot)
Executing: Plugins.txtmsg (Gmail)(E-mail username: , E-mail password: , Phone number: , Carrier txt suffix: gmail.com, Subject: waiting for response, Message: #attach Stop Start, Path: C:\Tmp\endofbot.jpeg, Receive: response timout: 6000, Receive: default value: continue, Receive: reply variable: stop)
Checking if: Variable.Is equal to(Variable name: stop, Value: stop)
Result: No
Checking if: Variable.Is equal to(Variable name: stop, Value: Start)
Result: No
Checking if: Variable.Is equal to(Variable name: stop, Value: continue)
Result: Yes
Executing: Plugins.txtmsg (Gmail)(E-mail username: , E-mail password: , Phone number: , Carrier txt suffix: gmail.com, Subject: No mail, Message: #attach Bot don't stop, Path: C:\Tmp\endofbot.jpeg, Receive: response timout: 1000, Receive: default value: empty, Receive: reply variable: empty2)
Error: Unknown
System.NullReferenceException: Object reference not set to an instance of an object
at ClassLibrary1.txtmsg_Plugin_gmail.Execute()
at BlueEye.Macros.Instructions.Plugins.Actions.Plugin.Execute(List`1 variables)
at BlueEye.Macros.BaseClasses.BaseInstruction.Execute(List`1 variables)
at BlueEye.Macros.MacroStep.ExecuteInstructions(Macro owner, List`1 variables, Function[]& functions)Object reference not set to an instance of an object
Executing: Macro.Pause(Duration: 18000)


My code for test :

Code:
 begin loop()
     Variable.Set("stop", "0")
     Function.Execute("test txt")
     Macro.Pause("18000")
 end

function("test txt")
     if  Color.At coordinate is (RGB)("9", "23", "69", "1834", "972")
          begin
               Plugins.Screenshot("C:\Tmp", "endofbot", "jpg", "1", "0", "0", "1920", "1200", "screenshot")
               Plugins.txtmsg (Gmail)("", "", "", "gmail.com", "waiting for response", "#attach Stop Start", "{screenshot}", "6000", "continue", "stop")
               if  Variable.Is equal to("stop", "stop")
                    begin
                         Macro.Abort all other macros()
                         Plugins.txtmsg (Gmail)("", "", "", "gmail.com", "Stop", "Stopping bot", "{screenshot}", "1000", "empty", "empty2")
                    end
               if  Variable.Is equal to("stop", "Start")
                    begin
                         Macro.Execute new("", "", "no")
                         Plugins.txtmsg (Gmail)("", "", "", "gmail.com", "Start", "Starting Bot", "{screenshot}", "1000", "empty", "empty2")
                    end
               if  Variable.Is equal to("stop", "continue")
                    begin
                         Plugins.txtmsg (Gmail)("", "", "", "gmail.com", "No mail", ""attach Bot don't stop", "{screenshot}", "1000", "empty", "empty2")
                    end
          end
function


I'm not sure, but it seems to me that the Screenshot is "stuck" in the first Plugins.txtmsg, so the second can't open it.

Any Idea ?


Top
 Profile  
Reply with quote  
 Post subject: Re: txt & E-mail plugin
Thanked: 0 time(s)  Unread post Posted: Sun Sep 16, 2012 3:57 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
it looks like you have
Code:
""attach
in the last txtmsg call instead of
Code:
"#attach
could that be it?


Top
 Profile  
Reply with quote  
 Post subject: Re: txt & E-mail plugin
Thanked: 0 time(s)  Unread post Posted: Sun Sep 16, 2012 9:59 am 
Contributor
Contributor



Joined: Tue Jul 17, 2012 8:11 am
Posts: 58
Been thanked: 15 time(s)
Has thanked: 5 time(s)
Contribution Points: 125
Sadly not, that was just a mistake when I copy past it here but in the code in bem it's ok.


Top
 Profile  
Reply with quote  
 Post subject: Re: txt & E-mail plugin
Thanked: 0 time(s)  Unread post Posted: Sun Sep 16, 2012 8:44 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
give this one a try please


Attachments:
File comment: be sure to OVERWRITE the old plugin file
txtmsg_Plugin.dll [14.5 KiB]
Downloaded 118 times
Top
 Profile  
Reply with quote  
 Post subject: Re: txt & E-mail plugin
Thanked: 0 time(s)  Unread post Posted: Sun Sep 16, 2012 9:21 pm 
Contributor
Contributor



Joined: Tue Jul 17, 2012 8:11 am
Posts: 58
Been thanked: 15 time(s)
Has thanked: 5 time(s)
Contribution Points: 125
Got the same error :(.


Top
 Profile  
Reply with quote  
 Post subject: Re: txt & E-mail plugin
Thanked: 0 time(s)  Unread post Posted: Sun Sep 16, 2012 10:02 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
i haven't been able to get the error at all, but i made some changes anyway that may help

if this one doesn't work you may have to take two screenshots.

this is my test function that has worked all along:
Code:
function("test txt")
     begin
          Plugins.Screenshot("C:\Users\xxxxxx\Documents\My Pictures", "name", "jpg", "1", "100", "100", "200", "200", "name")
          Plugins.txtmsg (Gmail)("xxxx", "xxxxxx", "xxxxx", "vzwpix.com", "waiting for response", "#attach test", "{name}", "60000", "continue", "stop")
          if  Variable.Is equal to("stop", "Text")
               begin
                    Plugins.txtmsg (Gmail)("xxxxxx", "xxxxxx", "xxxxxxx", "vzwpix.com", "waiting for response", "#attach test", "{name}", "300", "continue", "stop")
                    Window.Display message box("{stop}", "yes")
               end
     end
function
the error doesn't go away when you make the timeouts longer does it?

btw you aren't sending the emails from and to the same account are you? i don't think it would cause your error but it could mess up your replying


Attachments:
File comment: be sure to overwrite
txtmsg_Plugin.dll [15 KiB]
Downloaded 113 times
Top
 Profile  
Reply with quote  
 Post subject: Re: txt & E-mail plugin
Thanked: 0 time(s)  Unread post Posted: Sun Sep 16, 2012 10:57 pm 
Contributor
Contributor



Joined: Tue Jul 17, 2012 8:11 am
Posts: 58
Been thanked: 15 time(s)
Has thanked: 5 time(s)
Contribution Points: 125
Dunno why but it "don't" work.

Message is well send, and the response is ok too but still have the same error will try it like that, hope that it won't send too much error in the log (because BEM crash when the error log is too big (nearly 800mb)


Top
 Profile  
Reply with quote  
 Post subject: Re: txt & E-mail plugin
Thanked: 0 time(s)  Unread post Posted: Sun Sep 16, 2012 11:29 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
i'd like to eliminate errors, but i don't understand why you want to send the same image twice - wouldn't a plain message work, or an updated screenshot? or two screenshots? or copying the image? or making the image smaller than 1920x1200 since that probably takes 10-100+ seconds to send depending on your connection speed? that's a large file you're uploading

if you're worried about a limit to the log size can't you disable logging in settings when it's going to run for hours?

fyi Email services have a limitation built in and usually cut it off if you do more than 5 emails in 10 minutes since they assume you're running a spambot, so you probably don't want it sending super fast anyway unless you're using your own domain


Top
 Profile  
Reply with quote  
 Post subject: Re: txt & E-mail plugin
Thanked: 1 time(s)  Unread post Posted: Sun Sep 16, 2012 11:41 pm 
Contributor
Contributor



Joined: Tue Jul 17, 2012 8:11 am
Posts: 58
Been thanked: 15 time(s)
Has thanked: 5 time(s)
Contribution Points: 125
I have the error even with no screenshot in the second mail (And it's fill but I don't use attach for the others just testing ^^).

I'm using Jpg, the size is at 398kb so it's really fast ^^.

The real timer for it is every 30 minutes so it won't be taking for a spambot ;-).


Will try it like that, I'll see ^^.


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

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