ForsakenGod Posted July 1, 2010 Posted July 1, 2010 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 !
Moderators Melba23 Posted July 1, 2010 Moderators Posted July 1, 2010 ForsakenGod ,I ve tryed it this wayWhat way? Should you have posted some code? M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Mat Posted July 1, 2010 Posted July 1, 2010 Trigger the event when the label's clicked AutoIt Project Listing
ForsakenGod Posted July 1, 2010 Author Posted July 1, 2010 (edited) 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 July 1, 2010 by ForsakenGod
Moderators Melba23 Posted July 1, 2010 Moderators Posted July 1, 2010 ForsakenGod,Try something along these lines - just adjust the coordinates to match the area you want to be "active": expandcollapse popup#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 WEndI hope it helps. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
ForsakenGod Posted July 1, 2010 Author Posted July 1, 2010 Thanks alot melba ! 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
ForsakenGod Posted July 2, 2010 Author Posted July 2, 2010 Ok people ! After doing some more searching i found my answer ! If anyone has problem like me just look at function _IEPropertyGet() !
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