speck Posted June 10, 2009 Share Posted June 10, 2009 How can i control a hidden window...? i run "control ncpa.cpl" and i had it hidden (@SW_HIDE) so i know it's gonna be with control command some how. But i understand i need something like window or process handle.... And something else ... i want to run another portable program but i want to hide the tray icon. It's not an autoit program. Please i could use some help... the finest Blues Jazz Rock by VL and SpecKtotallynoob.com tutorials about SysAdmins NetAdmins SecAdmins Link to comment Share on other sites More sharing options...
bo8ster Posted June 11, 2009 Share Posted June 11, 2009 Look at functions like WinGetHandle, ControlSend and ControlCommand. Post your code because code says more then your words can. SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y. Use Opt("MustDeclareVars", 1)[topic="84960"]Brett F's Learning To Script with AutoIt V3[/topic][topic="21048"]Valuater's AutoIt 1-2-3, Class... is now in Session[/topic]Contribution: [topic="87994"]Get SVN Rev Number[/topic], [topic="93527"]Control Handle under mouse[/topic], [topic="91966"]A Presentation using AutoIt[/topic], [topic="112756"]Log ConsoleWrite output in Scite[/topic] Link to comment Share on other sites More sharing options...
speck Posted June 11, 2009 Author Share Posted June 11, 2009 Look at functions like WinGetHandle, ControlSend and ControlCommand.Yes i did and it works fine BUT... i want all the upcoming windows from "control ncpa.cpl" to be hidden..... and i have and other problem .... what about greek windows auto it does not support greek... but what i can do to control windows with greek characters? How can i retrieve a handle from a window which auto it can't recognize???????? [CLASS:xxx] it isn't cause maybe the user has an opened "My Computer window" Thnx bo8ster... the finest Blues Jazz Rock by VL and SpecKtotallynoob.com tutorials about SysAdmins NetAdmins SecAdmins Link to comment Share on other sites More sharing options...
bo8ster Posted June 11, 2009 Share Posted June 11, 2009 Use the Auto Info tool. Every Window is registered within the OS, there are no magic windows that just appear. Post the auto info tool results. You don't have to know greek to get handles to a window. Post your code because code says more then your words can. SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y. Use Opt("MustDeclareVars", 1)[topic="84960"]Brett F's Learning To Script with AutoIt V3[/topic][topic="21048"]Valuater's AutoIt 1-2-3, Class... is now in Session[/topic]Contribution: [topic="87994"]Get SVN Rev Number[/topic], [topic="93527"]Control Handle under mouse[/topic], [topic="91966"]A Presentation using AutoIt[/topic], [topic="112756"]Log ConsoleWrite output in Scite[/topic] Link to comment Share on other sites More sharing options...
speck Posted June 11, 2009 Author Share Posted June 11, 2009 Use the Auto Info tool. Every Window is registered within the OS, there are no magic windows that just appear. Post the auto info tool results. You don't have to know greek to get handles to a window. I'm from greece so i'm writing this programm to automate a VPN connection to my clients. The most of these people have greek windows. My problem is ... how to automate hiding the upcoming windows from control ncpa.cpl AND how can i get the handles of them while the title it's not recognized from auto it?? I thought i can do it from [class:] but if the user has already an other window opened .... ex. My computer the class will be the same with the window of Network Connections........................................ >>>> Window <<<< Title: Network Connections Class: CabinetWClass Position: 30, 207 Size: 800, 600 Style: 0x16CF0000 ExStyle: 0x00000100 Handle: 0x004403B2 >>>> Control <<<< Class: Instance: ClassnameNN: Advanced (Class): ID: Text: Position: Size: ControlClick Coords: Style: ExStyle: Handle: 0x000902C4 the finest Blues Jazz Rock by VL and SpecKtotallynoob.com tutorials about SysAdmins NetAdmins SecAdmins Link to comment Share on other sites More sharing options...
speck Posted June 12, 2009 Author Share Posted June 12, 2009 Anyone??? the finest Blues Jazz Rock by VL and SpecKtotallynoob.com tutorials about SysAdmins NetAdmins SecAdmins Link to comment Share on other sites More sharing options...
bo8ster Posted June 12, 2009 Share Posted June 12, 2009 That is not easy but I do see there is a handle to the control. Using my Control Handle under mouse might be of help to handle of the control. See my sig. If a program is launching windows it is hard to hide them because you have to get a handle to them - thus they have to appear before you can control them. Post your code because code says more then your words can. SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y. Use Opt("MustDeclareVars", 1)[topic="84960"]Brett F's Learning To Script with AutoIt V3[/topic][topic="21048"]Valuater's AutoIt 1-2-3, Class... is now in Session[/topic]Contribution: [topic="87994"]Get SVN Rev Number[/topic], [topic="93527"]Control Handle under mouse[/topic], [topic="91966"]A Presentation using AutoIt[/topic], [topic="112756"]Log ConsoleWrite output in Scite[/topic] Link to comment Share on other sites More sharing options...
speck Posted June 12, 2009 Author Share Posted June 12, 2009 That is not easy but I do see there is a handle to the control. Using my Control Handle under mouse might be of help to handle of the control. See my sig.If a program is launching windows it is hard to hide them because you have to get a handle to them - thus they have to appear before you can control them.I understand....OK! Let say we dont wan all the windows to be hidden.. but the windows title is in greek. So we can by pass that problem with handles or classes.... how can i get the handle of window with no match in titlte.Classes.... the class of the window is the same to another. so if i have both open or minimized blablabla PROBLEM.What about that????I thought that autoit has a command that runs a file and gives something to handle it.I checked "RUn" but i have a problem with PIDs......Any ideas? the finest Blues Jazz Rock by VL and SpecKtotallynoob.com tutorials about SysAdmins NetAdmins SecAdmins Link to comment Share on other sites More sharing options...
KaFu Posted June 12, 2009 Share Posted June 12, 2009 Better check out this UDF regarding Network connections ...http://www.autoitscript.com/forum/index.php?showtopic=96517 OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
speck Posted June 12, 2009 Author Share Posted June 12, 2009 Better check out this UDF regarding Network connections ...http://www.autoitscript.com/forum/index.php?showtopic=96517Thnx in advance Kafu....I'll check it right now! the finest Blues Jazz Rock by VL and SpecKtotallynoob.com tutorials about SysAdmins NetAdmins SecAdmins 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