Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Auto Clickers
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Raz0rEdge" data-source="post: 1758584" data-attributes="member: 110816"><p>Assuming that going to the top of the page with CMD+UP is always going to put the focus back where it needs to be, you can modify the script in the following way:</p><p>[CODE]</p><p>on idle</p><p> delay (random number from 20 to 25)</p><p> tell application "System Events"</p><p> key code 87</p><p>[B] delay 1</p><p> key code 55 using { command down }[/B]</p><p> end tell</p><p> return 20</p><p>end idle</p><p>[/CODE]</p><p></p><p>This will key in the number 5, wait for one second and then do the CMD+UP to take you back to the top of the page..</p><p></p><p>Don't worry about the usefulness or not of your script, it obviously serves a purpose to you and we are glad to help you along the way.</p></blockquote><p></p>
[QUOTE="Raz0rEdge, post: 1758584, member: 110816"] Assuming that going to the top of the page with CMD+UP is always going to put the focus back where it needs to be, you can modify the script in the following way: [CODE] on idle delay (random number from 20 to 25) tell application "System Events" key code 87 [B] delay 1 key code 55 using { command down }[/B] end tell return 20 end idle [/CODE] This will key in the number 5, wait for one second and then do the CMD+UP to take you back to the top of the page.. Don't worry about the usefulness or not of your script, it obviously serves a purpose to you and we are glad to help you along the way. [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Auto Clickers
Top