Jump to content
Sign in to follow this  
ForsakenGod

How to check if user clicks where you want to ?

Recommended Posts

ForsakenGod

Hello ,

We ll i d like to make user click an add before he would be able to start my tool however i ve some problems with it . I ve tryed it this way however the label is blocking me from clicking .

Anyone has better solution ? I did it this way because i dont want to allow him proceed untill the actuall adress does not change (i know this i s asolution but idk how to get the adress .

Thanks in advace !

Share this post


Link to post
Share on other sites
Melba23

ForsakenGod ,

I ve tryed it this way

What way? :mellow:

Should you have posted some code? :P

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
ForsakenGod

Whoopa sorry i didnt post the code xD And no they can even click the scroll bar and it will go further . here s the code

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <SendMessage.au3>
#include <GUIConstantsEx.au3>
#include <EditConstants.au3>
#include <GUIEdit.au3>
#Include <Array.au3>
#Include <File.au3>
#include <IE.au3>
$GUI = GUICreate("Simple Web Browser", 800, 450,-1,-1, $WS_POPUP)
$object = ObjCreate("Shell.Explorer.2")
$label = GuiCtrlCreateLabel("",16,10,760,400)
$object_ctrl = GUICtrlCreateObj($object, 16, 10, 780, 340)
;~ $url_button = GUICtrlCreateButton("URL", 16, 410, 750, 25, 0)
_IENavigate($object, "www.google.com")
GUISetState()

While 1
    $msg = GUIGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        Exit
;~      Case $GUI_EVENT_PRIMARYDOWN ; Mouse button down
;~          sleep(3000)
        Case $msg = $label
        MsgBox(1,"","trigger")

EndSelect
ToolTip("Reload",0,0)
WEnd
Edited by ForsakenGod

Share this post


Link to post
Share on other sites
Melba23

ForsakenGod,

Try something along these lines - just adjust the coordinates to match the area you want to be "active": :mellow:

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <SendMessage.au3>
#include <GUIConstantsEx.au3>
#include <EditConstants.au3>
#include <GUIEdit.au3>
#include <Array.au3>
#include <File.au3>
#include <IE.au3>

$GUI = GUICreate("Simple Web Browser", 800, 450, -1, -1, $WS_POPUP)
$object = ObjCreate("Shell.Explorer.2")
;$label = GUICtrlCreateLabel("", 16, 10, 760, 400)
$object_ctrl = GUICtrlCreateObj($object, 16, 10, 780, 340)
;~ $url_button = GUICtrlCreateButton("URL", 16, 410, 750, 25, 0)
_IENavigate($object, "www.google.com")
GUISetState()

While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            Exit
        Case $GUI_EVENT_PRIMARYDOWN ; Mouse button down



    EndSelect
    ToolTip("Reload", 0, 0)

    $aInfo = GUIGetCursorInfo($GUI)
    If $aInfo[2] Then
        If $aInfo[0] <  780 And $aInfo[0] > 0 And $aInfo[1] > 0 And $aInfo[1] < 340 Then
            MsgBox(0, "", "Trigger")
        EndIf
    EndIf
WEnd

I hope it helps. :P

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites
ForsakenGod

Thanks alot melba ! :mellow: Will definelly try this however does anybody know how to get the current adress in the explorel ? like the one that opens in my gui :P

Share this post


Link to post
Share on other sites
ForsakenGod

Anyone ? :blink:

Share this post


Link to post
Share on other sites
ForsakenGod

Ok people ! :blink: After doing some more searching i found my answer ! If anyone has problem like me just look at function _IEPropertyGet() ! ;)

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×