Count number of iteration of each script

Get help with using AutoHotkey and its commands and hotkeys
blue83
Posts: 125
Joined: 11 Apr 2018, 06:38

Count number of iteration of each script

26 Mar 2020, 12:05

Hi,

Does anyone knows how for various computers count every time script has been executed?

Idea is to have API for that or?

Also to have report from that data so I can follow how many saved hours is in one day,month, year.

Thanks,
blue
User avatar
Hellbent
Posts: 1058
Joined: 23 Sep 2017, 13:34

Re: Count number of iteration of each script

26 Mar 2020, 14:22

Perhaps this will give you some ideas about how you want to do it.


Run this a few times.

Code: Select all

#SingleInstance, Force
IniRead, Var, % A_ScriptFullPath, Report, % A_ComputerName
IniWrite, % ( Var = "error" ) ? ( 1 ) : ( ++Var ), % A_ScriptFullPath, Report, % A_ComputerName
return
/*
[Report]
*/
blue83
Posts: 125
Joined: 11 Apr 2018, 06:38

Re: Count number of iteration of each script

27 Mar 2020, 02:07

Hi @Hellbent ,

This is great.

How about if I compile script?

Can .ini file be maybe outside .exe if it is impossiblle have it inside?

EDIT: I have found a way how to write to .ini outside.

But what will be cool is to have one place on web where all the robots will have access, no mater computer is inside of company or not.

Any idea?

thanks,
bllue

Return to “Ask For Help”

Who is online

Users browsing this forum: austin4149, Bad husband, Bing [Bot], mikeyww, songdg, Xtra and 47 guests