Jump to content
Macro Express Forums

Keystroke + Increment by 1, every time script is looped.


carbon-fiber-hoods

Recommended Posts

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!

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...