What should be added in this part to Stop Timer using hotkey?
1 Answer, 1 is accepted
answered on 19 Jul 2021, 09:20 AM
There are two ways to add a shortcut to a menu item with FiddlerScript. First, you can add hot key for the specific menu item by putting a & in front of the character you wish to use as a hotkey - for example "Sto&p Timer" will make the "p" key activate this menu item. Make sure that the key is unique for items in the sub menu. Then when the Fiddler window is active, press Alt-T then P to select the Stop Timer menu item.
The second way to add a shortcut is to use the way described in the post you linked. The shortcut will be global (e.g. Fiddler does not have to be the focused window in order for the shortcut to work). Be careful to not override another global shortcut (e.g. Win+G is bound to open the Game Bar in Windows 10). Open the FiddlerScript editor and:
1. in the Main() method, register your shortcut with a unique command name (in this case, Alt-J shortcut and command name "tesst")
2. In the ExecuteAction() method bellow it, add a case to the switch statement with the command name you chose above and the code that will be executed when the shortcut is pressed:
FiddlerApplication.Log.LogString("Execute a command or do some action here");
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.