Modify ↓
      
        Opened 16 years ago
Closed 16 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 16 years ago by Valik
- Resolution set to No Bug
- Status changed from new to closed
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.
Note: See
        TracTickets for help on using
        tickets.
    

No it shouldn't.