evilScooby
Technical User
Could someone help me with a simple while statement.
I need a while statement that would depending on how many pages there are on the switch push f7 a certain amount of times instead of me doing the following code.
Could it be something like
while
something = something push f7
until waitfor "^[[KCommand: "
is that how it works?
im lost.
(
This is what I have just now for the procedure.
proc configall
;gets list of config all
;you need to change how many times f7 is pushed dependin on how
;many pages you have in your list config all
waitfor "^[[KCommand: "
transmit "list config all^M"
capture on
pause 3
capture off
pause 5
capture off
pause 3
capture on
sendvkey VK_F7
capture on
pause 3
capture off
pause 3
capture on
sendvkey VK_F7
capture on
pause 3
capture off
waitfor "^[[KCommand: "
I need a while statement that would depending on how many pages there are on the switch push f7 a certain amount of times instead of me doing the following code.
Could it be something like
while
something = something push f7
until waitfor "^[[KCommand: "
is that how it works?
im lost.
This is what I have just now for the procedure.
proc configall
;gets list of config all
;you need to change how many times f7 is pushed dependin on how
;many pages you have in your list config all
waitfor "^[[KCommand: "
transmit "list config all^M"
capture on
pause 3
capture off
pause 5
capture off
pause 3
capture on
sendvkey VK_F7
capture on
pause 3
capture off
pause 3
capture on
sendvkey VK_F7
capture on
pause 3
capture off
waitfor "^[[KCommand: "