lokster Posted January 25, 2007 Posted January 25, 2007 (edited) This is AutoIt port of one of my programs written in Delphi a long time ago...History:Enabler 1.0 - just a window with a textbox, and two checkboxes - enable/disable and show/hide. In the textbox you type the HWND of some window, and use the checkboxes to manipulate it. This program was one of my FIRST!Enabler 2.0 - the same as 1.0, but the you can use crosshair to find the wanted window (which is highlighted when the mouse is over it).You can enable/disable, show/hide, repaint or close the selected window.You can view its child windows and manipulate them too. A few bugs are present...Unfortunately, i lost the source code long time ago... But here is the exe: Enabler.exeEnabler 3.0 - a little bit crude in comparison with 2.0, but it was just an experiment...The source: Update 2007-JAN-29: enabler.au3 - added "Keep on top" option - added "Text inside window" textbox, which shows the text of the window retrieved with WinGetText - some other minor changes...Now, let me explain why it is called "Enabler" - because I used it to ENABLE some disabled windows in shareware programs... (instead of cracking them and use them illegal, I just enable some button).This trick has worked for me many times...And when I started learning AutoIt scripting, I found that Enabler can be helpfull for AutoIt scripts too This is my second AutoIt script.And, I know, some things can be done better... Edited January 29, 2007 by lokster
ptrex Posted January 26, 2007 Posted January 26, 2007 @lokster This looks very nice !! But needs more explaining on how to use ? Plus a feature to have the tool always on top would WinSetOnTop("Untitled -", "", 1) regards, ptrex Contributions :Firewall Log Analyzer for XP - Creating COM objects without a need of DLL's - UPnP support in AU3Crystal Reports Viewer - PDFCreator in AutoIT - Duplicate File FinderSQLite3 Database functionality - USB Monitoring - Reading Excel using SQLRun Au3 as a Windows Service - File Monitor - Embedded Flash PlayerDynamic Functions - Control Panel Applets - Digital Signing Code - Excel Grid In AutoIT - Constants for Special Folders in WindowsRead data from Any Windows Edit Control - SOAP and Web Services in AutoIT - Barcode Printing Using PS - AU3 on LightTD WebserverMS LogParser SQL Engine in AutoIT - ImageMagick Image Processing - Converter @ Dec - Hex - Bin -Email Address Encoder - MSI Editor - SNMP - MIB ProtocolFinancial Functions UDF - Set ACL Permissions - Syntax HighLighter for AU3ADOR.RecordSet approach - Real OCR - HTTP Disk - PDF Reader Personal Worldclock - MS Indexing Engine - Printing ControlsGuiListView - Navigation (break the 4000 Limit barrier) - Registration Free COM DLL Distribution - Update - WinRM SMART Analysis - COM Object Browser - Excel PivotTable Object - VLC Media Player - Windows LogOnOff Gui -Extract Data from Outlook to Word & Excel - Analyze Event ID 4226 - DotNet Compiler Wrapper - Powershell_COM - New
lokster Posted January 26, 2007 Author Posted January 26, 2007 Some instructions on how to use: Click on the "+" button to enter the search mode. In this mode you can see the hWnd,class,caption,PID of the calling process, executable name of the parent process, and the child windows of the window (or gui control) that is under the mouse cursor. To exit "search mode" press {Esc} If you click item in the listbox, Enabler will show you info for that window, and list its childs in the listbox. To go to the parent of the selected window click "^" button. You can also type the window hWnd directly in the Input box, and Enabler will try to find that hWnd.
ptrex Posted January 26, 2007 Posted January 26, 2007 @lokster Thanks for the info. How do you enable a disabled button ? Not clear to me yet. regards ptrex Contributions :Firewall Log Analyzer for XP - Creating COM objects without a need of DLL's - UPnP support in AU3Crystal Reports Viewer - PDFCreator in AutoIT - Duplicate File FinderSQLite3 Database functionality - USB Monitoring - Reading Excel using SQLRun Au3 as a Windows Service - File Monitor - Embedded Flash PlayerDynamic Functions - Control Panel Applets - Digital Signing Code - Excel Grid In AutoIT - Constants for Special Folders in WindowsRead data from Any Windows Edit Control - SOAP and Web Services in AutoIT - Barcode Printing Using PS - AU3 on LightTD WebserverMS LogParser SQL Engine in AutoIT - ImageMagick Image Processing - Converter @ Dec - Hex - Bin -Email Address Encoder - MSI Editor - SNMP - MIB ProtocolFinancial Functions UDF - Set ACL Permissions - Syntax HighLighter for AU3ADOR.RecordSet approach - Real OCR - HTTP Disk - PDF Reader Personal Worldclock - MS Indexing Engine - Printing ControlsGuiListView - Navigation (break the 4000 Limit barrier) - Registration Free COM DLL Distribution - Update - WinRM SMART Analysis - COM Object Browser - Excel PivotTable Object - VLC Media Player - Windows LogOnOff Gui -Extract Data from Outlook to Word & Excel - Analyze Event ID 4226 - DotNet Compiler Wrapper - Powershell_COM - New
sandyd Posted January 26, 2007 Posted January 26, 2007 1. Open a program with a disabled button it. 2. Run the enabler program 3. Click the + sign and drag it onto the program with the disabled button 4. In enabler, you should see a list of controls 5. Right click the control you want to enable and click ENABLE ----[ SandyD ]---
lokster Posted January 26, 2007 Author Posted January 26, 2007 @loksterThanks for the info.How do you enable a disabled button ?Not clear to me yet.regardsptrexI guess that sandyd is talking for v2.0. In 3.0 - it's almost the same, but find the window you want to enable either by clicking "+", pointing it with the cursor, and then pressing {Esc}, or if for some reason the window is hidden or something - find its parent (again by using "+"), then search the list of childs for this window, Left click on the list item, and then finally check the "Enable" checkbox.wOw that was a looooong sentence:)
litlmike Posted January 27, 2007 Posted January 27, 2007 This is awesome! Do you have an option to always keep the window on top? _ArrayPermute()_ArrayUnique()Excel.au3 UDF
lokster Posted January 29, 2007 Author Posted January 29, 2007 This is awesome! Do you have an option to always keep the window on top?I have just addes "Keep on top" option, and changed some other things in the script. Look in the first post.I must note something: the I get the "Text" property of the windows with the Win32 API function GetWindowText, and not with the internal autoit func WinGetText. GetWindowText retrieves only the text of the selected hWnd (and uses WM_GETTEXT to do that). So, if you want to view the text that is inside the window (the text of all its childs) you can do it in the "Text inside window" TabSheet that I added. It uses WinGetText to retrieve it.
i542 Posted January 30, 2007 Posted January 30, 2007 It's blinking all the time, but it is OK. I can do signature me.
paullab Posted January 30, 2007 Posted January 30, 2007 The original is AWESOME! With a little work the AU3 version will be the same Wallpaper Rotatorwith overlay, Loop through a folder of wallpaper & another of overlay, then create a combined image and set it as the wallpaperE-Mail passthru, Send any file, even executables via e-mail as plain text. The recipient can then later re-construct them.Slideshow widget, A slideshow widget similar to the Vista onePredictive typing using the Numpad, Predictive typing using the numpad of a keyboar similar to that on a mobile phone (the key is the .t16 file).PSTools Front End, For Remote Admin. Just makes life a lot easier (Demonstrates executing external programs and passing parameters, tabbed form Handling STDIN/STDERR)FTP Helper application Up and Download files from an FTP server demonstrates this and Tooltray TipsShow a Map of your Post-codes/Zip Codes, Uses the Clipboard, Hotkeys, the system tray (incl. menus)Disc/CD/DVD Catalogue, Ideal for all those Covermount Discs (Demonstrates Array handling, executing DOS programs, handling STDIN/STDOUT recursive directory reads, file searching.)YAST , Yet another Stopwatch/Timer (Uses a hotkey, Copies to clipboard, handles multiple events and stays on top)Keyboard Status Indicator , Indicates status of NumLock, Caps Lock and Scroll Lock Keys, demonstrates API calling & System tray Icon Toggling
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