Hi there,
I'm new to the macro business, I'm not sure if I'm in the right forum here, I'm sure someone will tell me if I'm not,
Im trying to record a macro that will make my life infinitly easier and more efficient.
I have recorded the macro below, does anybody know how to create a macro that will repeat a command as simple as <Enter, PF2, PF2, Enter> as many times as you request?
It would be great if I could reply to the MsgBox with a number like "10" and the <Enter, PF2, PF2, Enter> sequence would be repeated automatically 10 times..
MsgBox"How many reversals would you like to perform?"
Sess1.Screen.Sendkeys("<Enter>")
Sess1.Screen.WaitHostQuiet(g_HostSettleTime)
Sess1.Screen.Sendkeys("<Pf2>")
Sess1.Screen.WaitHostQuiet(g_HostSettleTime)
Sess1.Screen.Sendkeys("<Pf2>")
Sess1.Screen.WaitHostQuiet(g_HostSettleTime)
Sess1.Screen.Sendkeys("<Enter>")
Sess1.Screen.WaitHostQuiet(g_HostSettleTime)
System.TimeoutValue = OldSystemTimeout
End Sub
It would be great if someone could even point me in the right direction,
Cf
MACRO Recorder; Attachment - EXTRA! X-treme 8.0
-
- Similar Topics
- Replies
- Views
- Last post
-
-
Sending o/p file's content to spool withot adding extra step
by Misha786 » Tue Jan 12, 2021 6:51 pm » in JCL - 4
- 2030
-
by sergeyken
View the latest post
Tue Jan 12, 2021 11:28 pm
-
-
- 9
- 2150
-
by futohomok
View the latest post
Wed Jun 21, 2023 1:26 pm
-
- 4
- 1347
-
by Jeff R
View the latest post
Fri Dec 30, 2022 8:51 pm
-
-
I can't get the LINK macro working properly
by chong_zhou » Fri Aug 21, 2020 10:53 pm » in Assembler - 13
- 7129
-
by steve-myers
View the latest post
Thu Aug 27, 2020 1:06 am
-
-
-
PCOMM 64-bit Automation Macro failing to update WindowsTitle
by suriPCOMM » Tue Aug 31, 2021 5:33 am » in Simulators & Emulators - 0
- 7973
-
by suriPCOMM
View the latest post
Tue Aug 31, 2021 5:33 am
-