Blue Eye Logo

Blue Eye Macro

Automation is freedom
It is currently Tue Dec 07, 2021 8:52 am

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Tooltips?
Thanked: 0 time(s)  Unread post Posted: Sun Oct 17, 2021 9:12 pm 
Active User
Active User



Joined: Sun Oct 17, 2021 9:07 pm
Posts: 32
Been thanked: 0 time(s)
Has thanked: 6 time(s)
Contribution Points: 67
Im wondering if there is any way to get tooltips to display at the cursor to assist with debugging where things aren't working correctly?
I have tried using window.displaymessage("my debug message","no") but as its continuing the box just gets hidden behind the window until I stop the script making it useless.


Top
 Profile  
Reply with quote  
 Post subject: Re: Tooltips?
Thanked: 0 time(s)  Unread post Posted: Mon Oct 18, 2021 11:39 am 
Partner / License admin
Partner / License admin
User avatar



Joined: Sun Oct 10, 2010 5:16 pm
Posts: 2218
Location: USA
Been thanked: 520 time(s)
Has thanked: 38 time(s)
Contribution Points: 17606
Depends on your script; I'll give you some tips though.

First there are logs you can check to see what happened and what went wrong, error and execution.

If you want it to display something along the way, I'd suggest using display html rather than message box. I think that's closer to what you're describing.

If the problem has to do with looking for something on the screen you can script in visual indicators; same for if you're looking at the error log but can't find where it's going wrong. For example anywhere you have look for or find a color, image, or pixel pattern - replace it (or add before) with "mouse.move" to that location. same for "click at color, image, pixel pattern, etc. That way if the mouse doesn't move to that location when it's supposed to, then you know that is the part of the script you need to look at.

_________________
----------------------------------------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: Tooltips?
Thanked: 0 time(s)  Unread post Posted: Mon Oct 18, 2021 9:27 pm 
Active User
Active User



Joined: Sun Oct 17, 2021 9:07 pm
Posts: 32
Been thanked: 0 time(s)
Has thanked: 6 time(s)
Contribution Points: 67
Thank you.
I've seen the log, but it only comes up when there has been execution issues, and havent worked out how to view it manually?
The idea of using the mouse as an indicator may work though, I'm normally a c# coder, so typically have access to debug console etc.


Top
 Profile  
Reply with quote  
 Post subject: Re: Tooltips?
Thanked: 1 time(s)  Unread post Posted: Tue Oct 19, 2021 3:51 pm 
Partner / License admin
Partner / License admin
User avatar



Joined: Sun Oct 10, 2010 5:16 pm
Posts: 2218
Location: USA
Been thanked: 520 time(s)
Has thanked: 38 time(s)
Contribution Points: 17606
You will only get a prompt to view the error log if it recognizes that there was an error.

I look at it this way: An error means that I made a mistake in coding it like missing info, nonexistent variables, wrong syntax, etc and BEM will give you an error warning (and log) to view the problem. An execution mistake means that I wanted a certain behavior to happen but it's doing something else. BEM is basically saying, "I'm doing what you told me; It may not be what you want, but this is what you told me to do" therefore there's no "error". Stuff like clicking at the wrong spot, doing stuff at the wrong time, not doing something because the "trigger" isn't there, etc. It just means you need to go back and take a look at the log and see how you can clarify what you are trying to do so that man and machine can be on the same page.

You can view them manually on the main screen; not the "pop-up" edit/create mode. On the right side you can see information about macros like what is running, which line it's executing in real-time, what triggers are active, and links you can click on to view the error and execution logs. Again, you can only view the error log if it actually recognizes an error...so use the execution log if there isn't an error (log) available.

That's why I generally script in visual elements where I can. If something isn't working I'll already have a good idea of where it is in the script and can refer to the execution log to tell me "why" it's doing what it's doing.

_________________
----------------------------------------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: Tooltips?
Thanked: 0 time(s)  Unread post Posted: Wed Oct 20, 2021 3:30 am 
Active User
Active User



Joined: Sun Oct 17, 2021 9:07 pm
Posts: 32
Been thanked: 0 time(s)
Has thanked: 6 time(s)
Contribution Points: 67
Thank you for that.
The HTML window has worked perfectly for my debugging, allowing me to set up a HUD updating with variable changes. :)
Appreciate the advice there


Top
 Profile  
Reply with quote  
 Post subject: Re: Tooltips?
Thanked: 0 time(s)  Unread post Posted: Wed Oct 20, 2021 9:33 am 
Partner / License admin
Partner / License admin
User avatar



Joined: Sun Oct 10, 2010 5:16 pm
Posts: 2218
Location: USA
Been thanked: 520 time(s)
Has thanked: 38 time(s)
Contribution Points: 17606
Awesome!

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