Following on from Classes in AHK, Basic tutorial by Samardac [ • Classes in AHK, Basic tutorial ] where I modified the code for the TimeCapture program to make it a class.
I wanted to learn a bit more about Classes so decided to adapt TimeCapture program to be an inherited and also a nested class.
I broke it down into 2 areas, first, capturing the data withing a base/nested class for information generated from the GUI, the 2nd to create an inherited class or an outer class (in case of nested class) that would then write the information obtained in the first class and write it to a file.
I thought, after the Samardac tutorial this would be easy, but after 2 days I was not able to do this and got very frustrated. I looked on AutoHotKey forum and YouTube AutoHotKey videos but could find no way forward. I did come across a comment on Redit that maybe try a different language like python and then apply those processes to AutoHotKey.
So that is what I did, I followed the Python OOP Tutorial by Cory Shafer [ • Python OOP Tutorial 1: Classes and In... ]which is very good and has the code posted on github [https://github.com/CoreyMSchafer/code...]. I talk about my findings in the video.
I also revisited Jean Lelonde Classes Example mentioned in the previous video and got a way forward from there.
From both these 2 places I was able to find a solution to using AutoHotKey Classes for inheritance & nested examples, and applied them to the TimeCapture program.
Code examples used in the video:
NOTE , remember to Right click the ZIP file and UNBLOCK it prior to unzipping or the scripts may not run
https://drive.google.com/file/d/1L6B1...
I hope this is of help to you, if so, can you please give a thumbs up for the video. Muchas Gracias Please visit my blog for similar topics: https://cr8ive.tk
Kind regards, Max Drake
Смотрите видео AutoHotKey Classes Inheritance & Nesting онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Max Drake 31 Октябрь 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 17 раз и оно понравилось людям.