Jump to content

close process or program - (Locked)


Recommended Posts

Maybe something like:

_CloseCalc()
Func _CloseCalc()
    Local $aProcesses = ProcessList()
    For $i = 1 To $aProcesses[0][0]
        If StringLeft($aProcesses[$i][0], 4) = "Calc" And StringRight($aProcesses[$i][0], 4) = ".exe" Then
            MsgBox(4096, "", $aProcesses[$i][0])
            ;~ ProcessClose($aProcesses[$i][0])
        EndIf
;~      RegExp method
;~      If StringRegExp($aProcesses[$i][0], '(^Calc).*(.exe$)') Then
;~          MsgBox(4096, "", $aProcesses[$i][0])
;~          ;~ ProcessClose($aProcesses[$i][0])
;~      EndIf

    Next
EndFunc

 

Edited by Subz
Link to post
Share on other sites
  • Developers

Now you really need to explain what it is you are doing as this isn't really making any sense why this ever should happen!

What what are you really trying to do here?

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to post
Share on other sites
  • Developers

Welcome to the AutoIt forum.

Unfortunately you appear to have missed the Forum rules on your way in. Please read them now - particularly the bit about not discussing game automation - and then you will understand why you will get no help and this thread will now be locked.

See you soon with a legitimate question I hope.

The Moderation team

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to post
Share on other sites
  • Developers
1 hour ago, HermanCegel said:

ok,  i want to protect my program from memory editor  like cheatengine.exe

This is not a topic we want to discuss here.

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to post
Share on other sites
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...