![]() If you’re looking to automate any work that you do in Word, Excel, or Access, VBA is the tool you need. You can’t download and install VBA, but you probably already have it: It’s built into Microsoft Office. No article on the subject of automating daily work is complete without a mention of VBA (Visual Basic for Applications). In other words, Directory Opus can help you automate just about any task that involves manipulating files, and its commands are well documented. You can arrange to select a collection of files and quickly rename all of them according to some scheme, or you can build a macro that selects all of the DOC and JPG files in the current folder, zips them up in an archive with a name and type of your choosing, and emails them. For example, you can designate a single keystroke for creating a new document bearing today’s date in a specific format (, 121213, etc.). This level of customization leads to easy automation: Directory Opus has its own built-in set of commands, making up a simple scripting language. You can also change the layout to look like anything from a dual-pane commander-style application to regular Windows Explorer to something uniquely yours. You can customize all of your buttons, toolbars, menus, and commands, setting your own hotkeys and names for everything. That said, if you work with files all day, Directory Opus is worth every penny. Priced at $69 (in Australian dollars), Directory Opus is one of the costliest file managers around it’s considerably more expensive than, for instance, Total Commander ($44). There are couple convenience functions, but not sure if these will stay around or maybe we’ll add more, depending on feedback.Directory Opus is extremely customizable and has its own simple scripting language. Right now, these are implemented by iterating over all window handles and filtering with Python.ĪHK.find_windows returns a generator filtering results based on attributes provided as keyword arguments.ĪHK.find_window is similar, but returns the first matching window instead of all matching windows. Currently, there is limited support for interacting with windows in actionchains, you may want to use win_set) find_window/find_windows methods ¶ Just like anywhere else, scripts running simultaneously may conflict with one another, so using blocking interfaces is perform () # *now* each of the actions run in order sleep ( 1 ) # still nothing happening ac. mouse_move ( 100, 100, speed = 10 ) # nothing yet ac. maximize () Screen ¶įrom ahk import ActionChain ac = ActionChain () # An Action Chain doesn't perform the actions until perform() is called on the chain ac. active : # Check if window active window. ![]() rect ) # (x, y, width, height) print ( window. title ) # Some more attributes print ( window. always_on_top = True # Make the window always on top for window in ahk. to_bottom () # Move the window to the bottom of the other windows win. to_top () # Move the window on top of other windows win. disable () # Make the window non-interactable win. activate_bottom () # Give the window focus win. send ( 'hello' ) # Send keys directly to the window (does not need focus!) win. find_window ( title = b 'Untitled - Notepad' ) # Find the opened window win. run_script ( 'Run Notepad' ) # Open notepad win = ahk. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |