Jump to content

Search the Community

Showing results for tags 'string replace input box'.

  • 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. Hello, I was wondering if I can get some assistance with this script. I put the $input1 in the StringReplace to give a better understanding on what I am trying to accomplish. Long story short, I am trying to have input box 1 be free text and any space that is input will be replaced with a "-" (minus). Thanks you all! #include <MsgBoxConstants.au3> ; Replace a blank space (' ') with a - (minus) character. Local $sString = StringReplace("$input1", " ", "-") Local $iReplacements = @extended $parentgui=GUICreate("Convert", 600, 620) $input1= GUICtrlCreateInput ("",10,10,200,200) $input2= GUICtrlCreateInput ("",300,10,200,200) $convert= GUICtrlCreatebutton ("Convert",220,100,50,50) GUISetState(@SW_SHOW) While 1 $iMsg = GUIGetMsg() GUISetState(@SW_SHOW) Select Case $iMsg = $convert ControlSetText ("Convert","","[CLASS:Edit; INSTANCE:2]", $sString) ;($MB_SYSTEMMODAL, "", $iReplacements & " replacements were made and the new string is:" & @CRLF & @CRLF & $sString) Endselect WEND
×
×
  • Create New...