Jump to content

Recommended Posts

Posted

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

Posted (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 by AlessandroAvolio
Posted
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??

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...