Modify

Opened 15 years ago

Closed 15 years ago

#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 Changed 15 years ago by Valik

  • Resolution set to No Bug
  • Status changed from new to closed

No it shouldn't.

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.