Modify

#1252 closed Bug (No Bug)

Issue in help file example code for "_MouseTrap()"

Reported by: naikma@… Owned by:
Milestone: Component: Documentation
Version: 3.3.0.0 Severity: None
Keywords: _MouseTrap() Cc:

Description

Help file shows example code as:

#include <GuiConstantsEx.au3>
#include <Misc.au3>

Opt("MustDeclareVars", 1)

_Main()

Func _Main()
    Local $GUI, $coords[4]

    $GUI = GUICreate("Mouse Trap Example", 392, 323)

    GUISetState()

    While 1
        $coords = WinGetPos($GUI)
        _MouseTrap($coords[0], $coords[1], $coords[0] + $coords[2], $coords[1] + $coords[3])
        Switch GUIGetMsg()
            Case $GUI_EVENT_CLOSE
                ExitLoop
            Case Else
                ;;;
        EndSwitch
    WEnd
    _MouseTrap()
    Exit
EndFunc   ;==>_Main


Here

$coords = WinGetPos($GUI) 

should be changed to:

$coords = WinGetPos("Mouse Trap Example")

Attachments (0)

Change History (1)

comment:1 by Valik, on Oct 28, 2009 at 3:40:22 PM

Resolution: No Bug
Status: newclosed

No it shouldn't.

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.