Jump to content

Search the Community

Showing results for tags 'StringTrim'.



More search options

  • 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


Location


WWW


Interests

Found 1 result

  1. Hi guys, this is my script: $File1 = @WorkingDir & "\Test1.txt" $File2 = @WorkingDir & "\Test2.txt" $FileNameEstension = StringTrimLeft($File2, StringInStr($File2, "\", 0, -1)) $FileNameOnly = StringTrimRight($FileNameEstension, 4) ClipPut(FileRead($File1)) Start($File2) func Start($File2) If Not FileExists($File2) Then Return 0 Return Run(@ComSpec & " /c " & "start " & FileGetShortName($File2),"",@SW_HIDE) endfunc If WinActive($FileNameOnly & " - Notepad") Then Send("^v") Send("^s") WinClose($FileNameOnly & " - Notepad") First, would know if you can merge this part into a single string: $FileNameEstension = StringTrimLeft($File2, StringInStr($File2, "\", 0, -1)) $FileNameOnly = StringTrimRight($FileNameEstension, 4) The first line give me Test.txt, the second remove the extension. I try to connect with "&" but not work. The script don't work becouse don't recognize the window name: WinActive($FileNameOnly & " - Notepad") I don't know what is the problem. Thanks for support
×
×
  • Create New...