Blue Eye Logo

Blue Eye Macro

Automation is freedom
It is currently Fri Dec 14, 2018 4:07 am

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Handy Tool - Window\Mouse Position
Thanked: 1 time(s)  Unread post Posted: Tue Dec 16, 2014 8:46 am 
Active User
Active User



Joined: Sat Jul 14, 2012 7:12 am
Posts: 33
Been thanked: 1 time(s)
Has thanked: 0 time(s)
Contribution Points: 160
I wrote this quick script that returns window, or mouse positions. I bind it to a trigger so I can quickly run this to get the info I need when I need it.

Code:
 begin
     Window.Request user multiple buttons choice("You would like to know the coordinates of...", "Window;Mouse", "user_select")
 end
 if  Variable.Is equal to("user_select", "Window")
     begin
          Function.Execute("Window Location")
     end
 if  Variable.Is equal to("user_select", "Mouse")
     begin
          Function.Execute("Mouse Location")
     end
 begin
     Window.Display message box("{output}", "yes")
 end

function("Window Location")
     begin
          Window.Request user text input("Enter the exact window title bar name...", "name")
          Window.Get location("{name}", "Yes", "no", "windowX", "windowY")
          Variable.Evaluate (Text)("Window {name} is located at X Coordinate: {windowX} and Y Coordinate: {windowY}", "output")
     end
function

function("Mouse Location")
     begin
          Window.Display message box("Move mouse to location and press enter", "Yes")
          Mouse.Save coordinate to variable("mouseX", "mouseY")
          Variable.Evaluate (Text)("Mouse pointer is located at X Coordinate: {mouseX} and Y Coordinate: {mouseY}", "output")
     end
function
 


**I will revise this to account for errors.


Top
 Profile  
Reply with quote  
 Post subject: Re: Handy Tool - Window\Mouse Position
Thanked: 0 time(s)  Unread post Posted: Tue Dec 16, 2014 5:00 pm 
VIP Contributor
VIP Contributor
User avatar



Joined: Sat Nov 15, 2014 12:48 am
Posts: 848
Been thanked: 214 time(s)
Has thanked: 22 time(s)
Contribution Points: 388
So basically this macro moves the window in to the place you put it right?

_________________
Image

Gotsumon 5/5 Guide: http://blueeye-macro.com/viewtopic.php?f=301&t=21492
Aqua data Farming: http://blueeye-macro.com/viewtopic.php?f=302&t=21199

SKINS

http://blueeye-macro.com/viewtopic.php?f=301&t=22514

and more!!


Top
 Profile  
Reply with quote  
 Post subject: Re: Handy Tool - Window\Mouse Position
Thanked: 0 time(s)  Unread post Posted: Sat May 02, 2015 2:02 am 
New User
New User
User avatar



Joined: Sat May 02, 2015 12:12 am
Posts: 15
Been thanked: 0 time(s)
Has thanked: 1 time(s)
Contribution Points: 41
Not to gravedig, but this actually could be useful to some folks on here. It's similar to an API spy.

It doesn't move the window where you just had it; it returns the coordinates of either the window or mouse.


Top
 Profile  
Reply with quote  
 Post subject: Re: Handy Tool - Window\Mouse Position
Thanked: 0 time(s)  Unread post Posted: Tue Oct 06, 2015 9:36 am 
New User
New User



Joined: Tue Oct 06, 2015 9:20 am
Posts: 2
Been thanked: 0 time(s)
Has thanked: 0 time(s)
Contribution Points: 13
I did not know before me that this would be very useful for this. I have to turn some of it I'm not.

_________________
บาคาร่าออนไลน์


Top
 Profile  
Reply with quote  
 Post subject: Re: Handy Tool - Window\Mouse Position
Thanked: 0 time(s)  Unread post Posted: Wed Feb 03, 2016 7:25 am 
New User
New User



Joined: Wed Feb 03, 2016 5:13 am
Posts: 2
Been thanked: 0 time(s)
Has thanked: 0 time(s)
Contribution Points: 13
If you have trouble finding the information I can share.

_________________
maxbet


Top
 Profile  
Reply with quote  
 Post subject: Re: Handy Tool - Window\Mouse Position
Thanked: 0 time(s)  Unread post Posted: Fri Feb 26, 2016 12:34 pm 
New User
New User



Joined: Wed Feb 24, 2016 2:53 pm
Posts: 5
Been thanked: 2 time(s)
Has thanked: 1 time(s)
Contribution Points: 22
gpellas wrote:
So basically this macro moves the window in to the place you put it right?


ty dude so much <3


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