Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6850503
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:07:57+00:00 2026-05-27T01:07:57+00:00

Trying do do a simple StringReplace, clipboard, clipboard, \, /, All That code works

  • 0

Trying do do a simple

StringReplace, clipboard, clipboard, \, /, All

That code works w/ other characters, but gives an error with ‘\’ and/or ‘/’
also tried ASCII codes but those do not work either since % is a variable in AHK.

How to StringReplace a ‘\’ with AutoHotkey?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T01:07:58+00:00Added an answer on May 27, 2026 at 1:07 am

    I get no error using that line. I used the following snippet to test:

    CapsLock & p::
    clipboard = are\there\backslashes?
    MsgBox, %clipboard%
    StringReplace, clipboard, clipboard, \, /, All
    MsgBox, %clipboard%
    return 
    

    I’m using AutoHotKey 1.0.46.1 (which is probably old by now…) on a Windows XP laptop.

    What version are you using?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying a simple ajax test in Wordpress / Buddypress. The code below works
I'm trying a simple F# script that will find pythagoras. Here's the code: open
I am trying something very simple, but for some reason it does not work.
I am trying to write simple Visual Studio Add-In for code generation. In my
I am trying a simple move as shown below and get the following error:
I was trying a simple piece of code, get someone's name and age and
Trying to get a simple string replace to work using a Groovy script. Tried
Can someone help, i'm trying a simple example with hibernate search but getting the
I am trying a simple validation program with JSP and EL (not that I
I am trying some simple code on fork. When I give code like this,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.