Renderer Posted October 31, 2022 Share Posted October 31, 2022 (edited) Hello everyone! I have a problem with the functions I mentioned in the title. I will post a script bellow: While True local $wList = WinList() for $i = 0 to UBound($wList) -1 if _ProcessGetName(WinGetProcess($wList[$i][0])) = 'dllhost.exe' Then if $wList[$i][0] = 'Internet Protocol v4 (TCP/IPv4) Properties' then local $wHandle = WinGetHandle($wList[$i][0]) ConsoleWrite(WinClose($wHandle) & @crlf) ; > Shows True on Console but window still here ConsoleWrite(WinKill($wHandle) & @crlf) ; > Shows True on Console but window still here EndIf EndIf Next WEnd The purpose of this program is to close the 'Internet Protocol v4' window, if the program detects, that it is open. But whatever function I use. It does not work. The same problem I encounter if I use functions for Control manipulation like ControlDisable/ControlHide. What should I do. It seems to me, something blocks/prevents the program from executing these function. Can someone help me? Edited November 1, 2022 by Renderer Link to comment Share on other sites More sharing options...
KaFu Posted November 1, 2022 Share Posted November 1, 2022 Try #RequireAdmin, or maybe ProcessClose(WinGetProcess($wList[$i][0])). OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2024-Oct-13) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2024-Oct-19) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2024-Oct-20) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
Renderer Posted November 1, 2022 Author Share Posted November 1, 2022 @KaFu, I tried. Tried this from the Admin accout. It works. I found something interesting. Using the _ProcessGetName function i get in the Admin account the 'explorer.exe' process and in my non-Admin account I get the 'dllhost.exe'. Why is that, I don't know. So when the process behind the window is explorer.exe, then I am able to modify/manipulate the window and its controls. When the process is 'dllhost.exe' then I am not able. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now