Wagwan 0 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 Share this post Link to post Share on other sites
Nine 993 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. Not much of a signature but working on it... Spoiler Block all input without UAC Save/Retrieve Images to/from Text Tool to search content in au3 files Date Range Picker Sudoku Game 2020 Overlapped Named Pipe IPC x64 Bitwise Operations Multi-keyboards HotKeySet Fast and simple WCD IPC GIF Animation (cached) Share this post Link to post Share on other sites
Wagwan 0 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? Share this post Link to post Share on other sites
Nine 993 Posted July 23, 2019 Post your script ! Not much of a signature but working on it... Spoiler Block all input without UAC Save/Retrieve Images to/from Text Tool to search content in au3 files Date Range Picker Sudoku Game 2020 Overlapped Named Pipe IPC x64 Bitwise Operations Multi-keyboards HotKeySet Fast and simple WCD IPC GIF Animation (cached) Share this post Link to post Share on other sites
jdelaney 313 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. Share this post Link to post Share on other sites
jdelaney 313 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. Share this post Link to post Share on other sites
Xenobiologist 47 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 Share this post Link to post Share on other sites