Jump to content

Search the Community

Showing results for tags 'variable pos'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • Forum FAQ
  • AutoIt

Calendars

  • Community Calendar

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Location


WWW


Interests

Found 1 result

  1. How would i go about saving a mouse position into a variable, atm i have this but im really not sure if its the proper way to do it Im still very new to this Global $xyLocation = MouseGetPos() $Start_Exit_GUI = GUICreate("EXAMPLE", 228, 194, 398, 222) GUISetBkColor(0x0000FF) $Loc_Button = GUICtrlCreateButton("GET LOCATION", 0, 0, 227, 89, $WS_GROUP) GUICtrlSetFont(-1, 28, 400, 0, "Absolute Zero") $Exit_Button = GUICtrlCreateButton("EXIT", 0, 96, 227, 97, $WS_GROUP) GUICtrlSetFont(-1, 28, 400, 0, "Absolute Zero") While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Loc_Botton LocButton() Case $Exit_Button Terminate() EndSwitch WEnd Func LocButton() MsgBox(0, "NOTICE", "Click on the Location you want") MouseClick($xyLocation[0],$xyLocation[1] MsgBox(0, "LOCATION","Location has been set") EndFunc Func Terminate() Exit 1 EndFunc I want $xyLocation to hold whatever x-y Coordinates from where the user clicks AFTER the MsgBox() is gone Thanks in advance for any help
×
×
  • Create New...