# pywinauto.tests.repeatedhotkey[¶](https://pywinauto.readthedocs.io/en/latest/code/pywinauto.tests.repeatedhotkey.html#pywinauto-tests-repeatedhotkey "Permalink to this headline")
> Repeated Hotkeys Test
>
> **What is checked** This test checks all the controls in a dialog to see if there are controls that use the same hotkey character.
>
> **How is it checked** A list of all the hotkeys (converted to uppercase) used in the dialog is created. Then this list is examined to see if any hotkeys are used more than once. If any are used more than once a list of all the controls that use this hotkey are compiled to be used in the bug report.
>
> **When is a bug reported** If more than one control has the same hotkey then a bug is reported.
>
> **Bug Extra Information** The bug contains the following extra information Name Description RepeatedHotkey This is the hotkey that is repeated between the 2 controls converted to uppercase, String CharsUsedInDialog This is a list of all the hotkeys used in the dialog, String AllCharsInDialog This is a list of all the characters in the dialog for controls that have a hotkeys, String AvailableInControlS A list of the available characters for each control. Any of the characters in this list could be used as the new hotkey without conflicting with any existing hotkey.
>
> **Is Reference dialog needed** The reference dialog does not need to be available. If it is available then for each bug discovered it is checked to see if it is a problem in the reference dialog. NOTE: Checking the reference dialog is not so exact here! Only when the equivalent controls in the reference dialog all have the hotkeys will it be reported as being in the reference also. I.e. if there are 3 controls with the same hotkey in the Localised software then those same controls in the reference dialog must have the same hotkey for it to be reported as existing in the reference also.
>
> **False positive bug reports** There should be very few false positives from this test. Sometimes a control only has one or 2 characters eg “X:” and it is impossible to avoid a hotkey clash. Also for Asian languages hotkeys should be the same as the US software so probably this test should be run on those languages.
>
> **Test Identifier** The identifier for this test/bug is “RepeatedHotkey”
>
> `pywinauto.tests.repeatedhotkey.``GetHotkey`(*text*)[¶](https://pywinauto.readthedocs.io/en/latest/code/pywinauto.tests.repeatedhotkey.html#pywinauto.tests.repeatedhotkey.GetHotkey "Permalink to this definition")
>
> Return the position and character of the hotkey
>
> `pywinauto.tests.repeatedhotkey.``ImplementsHotkey`(*win*)[¶](https://pywinauto.readthedocs.io/en/latest/code/pywinauto.tests.repeatedhotkey.html#pywinauto.tests.repeatedhotkey.ImplementsHotkey "Permalink to this definition")
>
> checks whether a control interprets & character to be a hotkey
>
> `pywinauto.tests.repeatedhotkey.``RepeatedHotkeyTest`(*windows*)[¶](https://pywinauto.readthedocs.io/en/latest/code/pywinauto.tests.repeatedhotkey.html#pywinauto.tests.repeatedhotkey.RepeatedHotkeyTest "Permalink to this definition")
>
> Return the repeated hotkey errors
- 什么是Pywinauto
- 入门指南
- 如何
- 等待长时间操作
- 远程执行指南
- 每种不同控制类型可用的方法
- 贡献者
- 开发笔记
- 待办项目
- 更新日志
- 基本用户输入模块
- pywinauto.mouse
- pywinauto.keyboard
- 主要用户模块
- pywinauto.application
- pywinauto.findbestmatch
- pywinauto.findwindows
- pywinauto.timings
- 特定功能
- pywinauto.clipboard
- pywinauto.win32_hooks
- 控件参考
- pywinauto.base_wrapper
- pywinauto.controls.hwndwrapper
- pywinauto.controls.menuwrapper
- pywinauto.controls.common_controls
- pywinauto.controls.win32_controls
- pywinauto.controls.uiawrapper
- pywinauto.controls.uia_controls
- Pre-supplied Tests
- pywinauto.tests.allcontrols
- pywinauto.tests.asianhotkey
- pywinauto.tests.comboboxdroppedheight
- pywinauto.tests.comparetoreffont
- pywinauto.tests.leadtrailspaces
- pywinauto.tests.miscvalues
- pywinauto.tests.missalignment
- pywinauto.tests.missingextrastring
- pywinauto.tests.overlapping
- pywinauto.tests.repeatedhotkey
- pywinauto.tests.translation
- pywinauto.tests.truncation
- 后端内部实施模块
- pywinauto.backend
- pywinauto.element_info
- pywinauto.win32_element_info
- pywinauto.uia_element_info
- pywinauto.uia_defines
- 内部模块
- pywinauto.controlproperties
- pywinauto.handleprops
- pywinauto.xml_helpers
- pywinauto.fuzzydict
- pywinauto.actionlogger
- pywinauto.sysinfo
- pywinauto.remote_memory_block