Jump to content

Search the Community

Showing results for tags 'gui ctrl etc'.

  • 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. Hi guys, I got a problem with my script. I inserted an 'input control' and a 'button' for displaying the text (that has been entered in input) Have a look at this: #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <MsgBoxConstants.au3> #include <winapifiles.au3> #include <Clipboard.au3> #include <GUIConstantsEx.au3> #include <WinAPI.au3> #include <WindowsConstants.au3> #include <File.au3> #include <GuiScrollBars.au3> #include <ColorConstants.au3> #include <StaticConstants.au3> #include <WinAPIGdi.au3> #include <APIGdiConstants.au3> #include <ButtonConstants.au3> #include <array.au3> ;_____________________________________________________________ Opt("GUIOnEventMode", 1) ; Change to OnEvent mode Opt("GUICloseOnESC", 0) ;1=ESC closes, 0=ESC won't close ;__________________________________________________________ Global $maingui = GUICreate("myCalculator",500,400,-1,-1) Global $bcalc = GUICtrlCreateButton("CALCULATE",360,200,100,30) Global $input1 = GUICtrlCreateInput("",180,50,80,22) Global $iRead1 = GUICtrlRead($input1) GUICtrlSetOnEvent($bcalc,"myfunction") GUISetOnEvent($GUI_EVENT_CLOSE,"sclose") GUISetState(@SW_SHOW) While 1 Sleep(100) ; Sleep to reduce CPU usage WEnd ;_______________________________________________ func sclose() Exit EndFunc Func myfunction() MsgBox(0,"",$iRead1) EndFunc So this was the script and on running it, it shows messagebox but with no content. I want to display the text which has been entered in input box. Have you got any idea about this.. I have inserted the ..au3 file with this topic. Example Script.au3
×
×
  • Create New...