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="Bantymom" data-source="post: 1758593" data-attributes="member: 392446"><p>*grins*</p><p>Thanks. </p><p></p><p>Yes, doing it by hand has worked perfectly.</p><p>However, sometimes it takes several seconds to finish loading the page after the click (keying in the number 5) which is why return is so long. Would it be ok coding-wise to do it like this?</p><p></p><p>on idle</p><p> delay (random number from 20 to 25)</p><p> tell application "System Events"</p><p> key code 55 using { command down }</p><p> delay 1</p><p> key code 87</p><p> end tell</p><p> return 20</p><p>end idle</p><p></p><p>That way it would be back in place just before the click happens.</p><p></p><p>Of course, I could just go try it both ways, couldn't I?</p><p></p><p>Edit: I have tried it both ways and it still goes to the foot of the page and sits there. I am going to leave it as you wrote it, but try to play with the timing.</p><p></p><p>Edit: Still not working. Hmmmmm.</p></blockquote><p></p>
[QUOTE="Bantymom, post: 1758593, member: 392446"] *grins* Thanks. Yes, doing it by hand has worked perfectly. However, sometimes it takes several seconds to finish loading the page after the click (keying in the number 5) which is why return is so long. Would it be ok coding-wise to do it like this? on idle delay (random number from 20 to 25) tell application "System Events" key code 55 using { command down } delay 1 key code 87 end tell return 20 end idle That way it would be back in place just before the click happens. Of course, I could just go try it both ways, couldn't I? Edit: I have tried it both ways and it still goes to the foot of the page and sits there. I am going to leave it as you wrote it, but try to play with the timing. Edit: Still not working. Hmmmmm. [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Auto Clickers
Top