def newMacrButtonPressed():
print("pressedButNMac")#############
waitButn(controlButtonNewMacr)
print("releasedButNMac")################
timeStart = time()
while True:
for i in range(len(buttons)):
if is_pressed(buttons[i]):
waitButn(buttons[i])
print("butn2Reksgmf")############
#temp = pyperclip.paste()
keyboard.press("ctrl")
keyboard.press("C")
keyboard.release("ctrl")
keyboard.release("C")
#buffer[i] = pyperclip.paste()
#pyperclip.copy(temp)
break
if time() - timeStart > 10: break
sleep(0.1)