Sign in to follow this  
Followers 0
tlokz

Dll Help

3 posts in this topic

Ok I just learned that you can call .dll's lol. Yes thats right.

Well to learn I wanted to seach MSDN, find something I could use and would like to find out how it works. I have read all the info about it and can't seem how get this one to use the forcible close. Don't know exactly where to add it.

http://msdn.microsoft.com/en-us/library/ms633492(VS.85).aspx

Help is muchly appreciated!

What I came up with!

Not All My Code (But Modded)

$a_User32 = DllOpen("User32.dll")
DllCall($a_User32, "int", "EndTask", "hwnd", $list[$count][1])

Share this post


Link to post
Share on other sites



Ok I just learned that you can call .dll's lol. Yes thats right.

Well to learn I wanted to seach MSDN, find something I could use and would like to find out how it works. I have read all the info about it and can't seem how get this one to use the forcible close. Don't know exactly where to add it.

http://msdn.microsoft.com/en-us/library/ms633492(VS.85).aspx

Help is muchly appreciated!

What I came up with!

Not All My Code (But Modded)

$a_User32 = DllOpen("User32.dll")
DllCall($a_User32, "int", "EndTask", "hwnd", $list[$count][1])
Hi,
Run("notepad.exe")

WinWait("Untitled - Notepad")
$hWnd = WinGetHandle("Untitled - Notepad")

$aRet = DllCall("User32.dll", "int", "EndTask", "hwnd", $hWnd, "int", 0, "int", 1)
If $aRet[0] <> 0 Then MsgBox(0, "Success, yippee!", "EndTask returned <> 0")

The last param is set to force close if wm_close fails.

But Autoit already has it's own built in version of this.

Cheers

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Thank you very much. WinKill would be Auto-It's version I believe. Just wanted to see how to do the parameter! muttley

Thanks!

Edited by tlokz

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