Send Hotkey based on the counts of rows in excel file

I am trying to send Down hotkey based on the counts of rows in excel. i have managed to get the count number (160) times.

Could somebody please help here?

@rahul_gola
have a look below, YourCounter is an Int32 Variable and has been assigned with the count number value retrieved from excel
grafik

2 Likes

If your target control works with Type Into, you can also use Enumerable.Repeat().

String.Join("", Enumerable.Repeat("[k(down)]", 160))

image

3 Likes

Thank you very much for the support. @ppr

Thank you @ptrobot but in this case the number of times it sends hotkey is hardcoded.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.