Sign in to follow this  
Followers 0
mrbig1479

how can i shut down an exe or dll running with a script?

8 posts in this topic

thanks for all your help guys :)

Share this post


Link to post
Share on other sites

thanks for all your help guys :)

You'd need the handle of the open DLL to close that.

You could use ProcessClose() for the process however.


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

so if i have a process (lats say abc1234.exe)

i just make a script and write

ProcessClose(abc1234.exe)

thats it ?

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

so if i have a process (lats say abc1234.exe)

i just make a script and write

ProcessClose(abc1234.exe)

thats it ?

Yeap. You can use ProcessList to get the list of processes first. Also you can use ProcessExists to check if the process exists before you kill it aswell.

Edited by MadBoy

My little company: Evotec (PL version: Evotec)

Share this post


Link to post
Share on other sites

so if i have a process (lats say abc1234.exe)

i just make a script and write

ProcessClose(abc1234.exe)

thats it ?

Well... There's a help file, with an example.

I'm willing to bet you have Notepad on you PC.

And if you ran ProcessClose("notepad.exe") what happened?


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

smoke_n

you are right that i can use the help file (but im at work writing scripts and dont have autoit on my work pc ) so it just saved me some time till i get home. i cant run the script here and debug later ...i can just write it on a notpad :) save and run them at home

thanks for all your help madboy and smoker....

Edited by mrbig1479

Share this post


Link to post
Share on other sites

Hi,

next time send yourself an email with the helpfile. Then you can use it at work. :)

So long,

Mega


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites

smoke_n

you are right that i can use the help file (but im at work writing scripts and dont have autoit on my work pc ) so it just saved me some time till i get home. i cant run the script here and debug later ...i can just write it on a notpad :) save and run them at home

thanks for all your help madboy and smoker....

Well you obviously have net connection there... do what I do... PC Remote ;)

But all the same, no sense in waiting to answer your questions:

http://www.autoitscript.com/autoit3/docs/

Now you can get no actual work done like the rest of us.


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

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