hosec Posted January 16, 2022 Posted January 16, 2022 trying to create an application that lets user click to draw a predefined size box to highlight stuff on screen, i have successfully done this with guicreate to create an a box overlay, but i would like it to not interfere with the program while doing this. at the moment when i left click it creates a green box around the current mouse position but also sends the left click interacting with the application, how do i block this left click temporarily ? hope i made sense, any help appreciated
Nine Posted January 17, 2022 Posted January 17, 2022 see my sig “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) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
Musashi Posted January 17, 2022 Posted January 17, 2022 @hosec : Just in case you're not familiar with the signature area, here's the link to @Nine 's nice UDF . https://www.autoitscript.com/forum/topic/199762-udf-blockinputex/?do=findComment&comment=1433043 "In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move."
AlessandroAvolio Posted January 17, 2022 Posted January 17, 2022 (edited) 8 hours ago, hosec said: trying to create an application that lets user click to draw a predefined size box to highlight stuff on screen, i have successfully done this with guicreate to create an a box overlay, but i would like it to not interfere with the program while doing this. at the moment when i left click it creates a green box around the current mouse position but also sends the left click interacting with the application, how do i block this left click temporarily ? hope i made sense, any help appreciated Can you implement this in your program? #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <Misc.au3> Example() Func Example() Local $hGUI = GUICreate("", @DesktopWidth, @DesktopHeight, -1, -1, BitOR($WS_MINIMIZEBOX, $WS_POPUP, $WS_GROUP)) GUISetState(@SW_SHOW, $hGUI) WinSetTrans($hGUI, "", 1) While _IsPressed("01") == False ToolTip("Click now") WEnd ToolTip("You clicked") Sleep(4000) EndFunc Edited January 17, 2022 by AlessandroAvolio
hosec Posted January 18, 2022 Author Posted January 18, 2022 On 1/17/2022 at 1:02 AM, Nine said: see my sig nice UDF! but i dont think this has the functionality im looking for unless im missing someting im trying to allow the user to move the mouse and click, however the click will not be registered in the program , for example..... my program draws a green box around the position where the user clicks the mouse if the user is on google images for example and wants to highlight an image they will click on the image to draw the green box however the click will be registered in browser and most of these pictures are links to another webpage, how to prevent the click interacting with the program??
junkew Posted January 18, 2022 Posted January 18, 2022 FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets
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