AutoHotkey Webinar 12/2020: Part 1: Amazing AutoHotkey ListView class

preview_player
Показать описание
TLDR: The AutoHotkey ListView class provides a wide range of functionalities for easy manipulation and management of list views in the GUI, including triggering actions, drag and drop, copy, paste, sorting, and more.

1. 00:00 📝 Joe Lyons and Jackie discuss the benefits of good editors and tools in the 54th AutoHotkey webinar, with 74 people registered and a focus on mentorships and completing the AutoHotkey user survey.
1.1 Joe Lyons and Jackie discuss the benefits of using good editors and tools to increase efficiency, as well as the challenges of working on multiple computers, in the 54th AutoHotkey webinar.
1.2 74 people have registered for the worldwide webinar, and everyone starts off muted, so use the chat for questions and avoid talking over each other.
1.3 The speaker encountered technical difficulties while demonstrating a drag and click using bluestacks, leading to the loss of the recording of how the issue was solved.
1.4 Watch the entire video for troubleshooting and learning, as the solving part could have been done in 30 seconds.
1.5 Discussion of the benefits of the hk mentorships and the importance of completing the AutoHotkey user survey.
1.6 Sign up to be a mentor or get a mentor on the mentorship site, and the process of matching people up will start in the next two weeks.

2. 05:46 📝 The speaker demonstrates using an object to control functions in AutoHotkey with the ListView class, discussing the possibility of running only one label and using if statements to identify commands, and how the function can react to different triggers and make decisions based on parameters.
2.1 The speaker found a script for monitoring words, but didn't like how it was structured, so they reworked it to be more efficient.
2.2 The speaker demonstrates how to use an object to control various functions in AutoHotkey, such as launching programs and adjusting volume, making it easy to program with the ListView class.
2.3 The speaker discusses a function that is not being called but still works, and plans to explain it in a future podcast or webinar.
2.4 Is it possible to run only one label and use if statements to identify which command called it, rather than running a different label for each voice response?
2.5 The speaker discusses using the ListView class in AutoHotkey to trigger specific functions based on recognized phrases.
2.6 The function can react to different types of triggers, such as turning on and off, and use logic to make decisions based on parameters.

3. 13:37 🔍 AutoHotkey ListView class allows for easy triggering of actions using external keyboards, and Windows voice recognition may require training to recognize accents and voices.
3.1 The command "run notepad" can be redirected to a specific function, and the same label can be used for different commands.
3.2 You can put all actions inside the on recognition function and there are many possibilities for using word recognition in different ways.
3.3 Windows voice recognition is based on the language used by the user and may require training to recognize accents and voices.
3.4 Line 11 creates the event listener, which triggers recognition, and then you can set the dictation state and tweak the recognition settings.

4. 21:50 🔍 The AutoHotkey ListView class allows for easy manipulation and modification of list view items, including drag and drop, copy, paste, and sorting functionalities

5. 31:34 📋 The AutoHotkey ListView class allows for creating and managing multiple list views in the same GUI, with features such as drag and drop functionality, context menus, and associated actions for menu items.

6. 40:10 📝 The AutoHotkey ListView class allows for displaying icons, drag and drop functionality, and easy copying and pasting of rows with multiple columns, while also discussing the use of objects and arrays and setting values for scroll delay, line color, and thickness when dragging.

7. 50:57 📝 The speaker discusses the parameters and defaults in AutoHotkey ListView class, as well as the use of annotations and optional parameters, and highlights the availability of helpful resources and classes on the forum

8. 56:10 📝 Sorting ListView class may require additional coding, using snippets in AutoHotkey for navigation, benefits of quick access pop-up for creating menus, EvilC's proof of concept class for controlling tree views, and pausing to ask for help or sharing before continuing
Рекомендации по теме
Комментарии
Автор

40:15 To answer the question about the lines following initialization: SetHwnd() is only needed to select between listviews, so it's not really needed if you have only one, but it's there for demonstration. I use Add() right after initializing to have a history entry for the initial state of the list, so that the user can undo correctly to this point.

PuloversMacroCreator
Автор

Awesome as always!
It will be cool if the voice recognition starts listening when the "Shift"- key will be down a not constantly.

Unfortunately, I was not able to do a proper function to pause voice recognition, so I did this ( any help will be appreciated ):

OnRecognition(StreamNum, StreamPos, RecogType, Result){

If (GetKeyState("Shift", "P")) ; If Shift key is Down
sText:= Result.PhraseInfo().GetText() ; Grab the text we just spoke and go to that subroutine
if (Responses[sText]) ;If text is found as a key in the object then...
gosub % Responses[sText] ;jump to the gosub
ObjRelease(sText)
}

BRODZELi