Sign in to follow this  
Followers 0
Best4FREE

How to counter How much times a programm runned

3 posts in this topic

Hi my question in this. anybody can help me autoit script the script must counter a programm example notepad.exe

$notepad =notepad.exe + 1

if $notepad = 30

Run ( "A Exe file" )

endif

How can i do this??

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

EDIT: This is a sample not real Code you can use!

Simply put, you check if process is running if yes it adds +1 into ini file & waits till it will close. So put this into a loop

$a = 1
While 1
if winactive ( ' notapad ' ) then iniwrite $a = +1
Wend

or
While 1
 if processexists (' notepad.exe ') then iniwrite $a = +1
Wend
Edited by goldenix

My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list]

Share this post


Link to post
Share on other sites

goldenix

Hey man you testing yor code before posting? Check out!

Best4FREE

I don`t understand you completely, but mayb it this?

Dim $aProc = ProcessList("notepad.exe")

MsgBox(0, "Message", "Notepad runned a " & $aProc[0][0] & " times")

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0