Well, I search in the forum before posting but i didn't find any good solution, i'm not a beginner but not an expert in AHK coding and i need your help please if it's possible !
In my code i use an function to read the last 20 lines of the log and I need to extract the strings before and after the => symbole and i can't manage it to work good. Because the last line is always blank and there is space blank before the string, after the symbole etc...
The goal is to detect the last => in the log file and extract the strings before an after, in this case is :
%DesiredString1% = Reload the program
%DesiredString2% = The program was reloaded
Code: Select all
18:03:35:INFO:: = [0] action planned >>>>>>>
18:03:35:INFO:: = [0] Execute task1 :this is a test[2/2]
18:03:35:INFO:: = [0] Launch this program now => The program was launched
18:03:35:INFO:: = [0] action paused, click [Continue] to resume, or [Reload] to reload.
18:03:44:INFO:: = [0] action resumed.
18:03:49:INFO:: = [0] no action rules matched.
18:03:49:INFO:: = [0] action planned >>>>>>>
18:03:49:INFO:: = [0] Execute task2 :this is a test[3/4]
18:03:49:INFO:: = [0] Reload the program => The program was reloaded
18:03:49:INFO:: = [0] action paused, click [Continue] to resume, or [Reload] to reload.
18:04:02:INFO:: = [0] action resumed.
Is my first post here and i hope that can help someone else too
Best regards.