Jump to content

Search the Community

Showing results for tags '$Y cant be less than $x...'.

  • 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

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. In this script, I can limite the values for $x, it can not be <10 or > 60. Its work fine. The $y, can't be > 60 or < $x, but here is the problem, it can! Some one can help-me? Thanks! #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> Opt('MustDeclareVars', 1) Example() Func Example() Local $x, $y, $UpDownX, $UpDownY, $msg GUICreate("My GUI UpDown", -1, -1, -1, -1, $WS_SIZEBOX) $x = GUICtrlCreateInput(11, 10, 10, 60, 30) $y = GUICtrlCreateInput(11, 10, 50, 60, 30) GUICtrlCreateLabel("x",80,10,20,20) GUICtrlCreateLabel("y",80,50,20,20) $UpDownX = GUICtrlCreateUpdown($x) $UpDownY = GUICtrlCreateUpdown($y) GUISetState() While 1 If GUICtrlRead($x) < 10 Then GuiCtrlSetData($x,10) If GUICtrlRead($x) > 60 Then GuiCtrlSetData($x,60) If GUICtrlRead($y) > 60 Then GuiCtrlSetData($y,60) If GUICtrlRead($y) < GUICtrlRead($x) Then GuiCtrlSetData($y,GUICtrlRead($x)) $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop WEnd EndFunc ;==>Example
×
×
  • Create New...