Wagwan Posted July 23, 2019 Share Posted July 23, 2019 Can someone point me in the right direction? I want my scrip to keep running when I click outside the focus window. How can I permanently tie the script to a specific window? Any examples would be great. Thanks Link to comment Share on other sites More sharing options...
Nine Posted July 23, 2019 Share Posted July 23, 2019 There is multiple ways to achieve that. Stay on top window style is one. You could also trap the mouse within the window borders. You could have a loop check if you lost control. You could have a message handler to catch lost of focus....Start with one strategy that you are confortable with, make a script and then tell us where you hit a wall. “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
Wagwan Posted July 23, 2019 Author Share Posted July 23, 2019 More specifically, what I meant, is there a way to have a script doing something in one window while I work in another without the script starting in what ever application I swap to? Link to comment Share on other sites More sharing options...
Nine Posted July 23, 2019 Share Posted July 23, 2019 Post your script ! “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
jdelaney Posted July 24, 2019 Share Posted July 24, 2019 controlclick controlsettext These generally do not require window focus. IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window. Link to comment Share on other sites More sharing options...
jdelaney Posted July 24, 2019 Share Posted July 24, 2019 controlclick controlsettext These generally do not require window focus. IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window. Link to comment Share on other sites More sharing options...
Xenobiologist Posted July 24, 2019 Share Posted July 24, 2019 You can either send keys and clicks to non-active windows or you can send and click on an active window. Both use caes are typically solved by different functions. So, what do you really want to do? Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times 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