StrokesPlus Forum
                       
StrokesPlus Forum
Home | Profile | Register | Active Topics
Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General Discussion
 General Discussion
 Mouse moves/clicks to relative position of ...
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

AxJ

24 Posts

Posted - 06/07/2019 :  01:53:56  Show Profile  Reply with Quote
I want mouse moves/clicks to the relative position of the current window.
In AutoHotkey, I can get the position(Left/Top x,y) and the size(Right/Bottom x,y) of the window I'm using. Thus, the mouse cursor can go to the relative position I want.
(How)Can I do that in S+?

Scenario: I want to close the download file message in the right/bottom corner of Google Chrome by clicking the "x" icon. But the size and position of Chrome may change sometimes.

Rob

USA
2573 Posts

Posted - 06/07/2019 :  06:12:49  Show Profile  Visit Rob's Homepage  Reply with Quote
You can get the locations of each window edge using these:

acGetWindowLeft
acGetWindowTop
acGetWindowRight
acGetWindowBottom
Go to Top of Page

AxJ

24 Posts

Posted - 06/07/2019 :  12:25:59  Show Profile  Reply with Quote
Ok, I'll try to figure it out how to use them to achieve my goal.
Thanks!
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
StrokesPlus Forum © 2011-2018 Rob Yapchanyk Go To Top Of Page
Snitz Forums 2000