carbon-fiber-hoods Posted October 10, 2010 Report Share Posted October 10, 2010 I have a fairly simple script that runs in my web browser. I've encountered a road bump. I need to hit the 'down arrow' key one additional time every time the scipt is looped. I made a short youtube video screencast of what I'm trying to accomplish so it's easier to understand. http://www.youtube.com/watch?v=EyP2vHdL5FY How would I go about this? Thanks! Quote Link to comment Share on other sites More sharing options...
paul Posted October 10, 2010 Report Share Posted October 10, 2010 In pseudocode (I leave the detailed code to you): Your Main Repeat Loop Your processing code -- Here's the logic to hit the Down key one additional time at the end of each loop Increment variable N1 (i.e. Set N1 = N1 + 1) Repeat N1 times Text Type DOWN End Repeat End of your Main Repeat Loop In the first repeat execution you'll get one DOWN arrow. In the second, you'll get two DOWN arrows, etc. Quote Link to comment Share on other sites More sharing options...
carbon-fiber-hoods Posted October 11, 2010 Author Report Share Posted October 11, 2010 In pseudocode (I leave the detailed code to you): Your Main Repeat Loop Your processing code -- Here's the logic to hit the Down key one additional time at the end of each loop Increment variable N1 (i.e. Set N1 = N1 + 1) Repeat N1 times Text Type DOWN End Repeat End of your Main Repeat Loop In the first repeat execution you'll get one DOWN arrow. In the second, you'll get two DOWN arrows, etc. thanks for the prompt reply. I'm not quite sure how to implement the pseudocode, there is a "Repeat with Variable using %N1%" with a counter option, but I'm not sure how to use that, also since the entire script has to repeat will this throw it off? Can you tell me how I would do this in the scripting editor? click down key 1 time hit enter repeat click down key counter+1 times hit enter repeat ...etc etc I'm just not sure how to being to input this with the scripting editor, thanks for your help Quote Link to comment Share on other sites More sharing options...
paul Posted October 11, 2010 Report Share Posted October 11, 2010 I'm not quite sure how to implement the pseudocode, there is a "Repeat with Variable using %N1%" with a counter option, but I'm not sure how to use that, also since the entire script has to repeat will this throw it off? Can you tell me how I would do this in the scripting editor? I think you need to read the online help and study the many examples provided. I believe that I've provided an outline of the logic required to answer your question, but the task of learning how to write macros lies outside the scope of this forum. Quote Link to comment Share on other sites More sharing options...
carbon-fiber-hoods Posted October 11, 2010 Author Report Share Posted October 11, 2010 I think you need to read the online help and study the many examples provided. I believe that I've provided an outline of the logic required to answer your question, but the task of learning how to write macros lies outside the scope of this forum. I will check that out, incase I can't figure it out what would you charge to make that macro? Thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.