1.

Solve : help with script running in dos?

Answer»

hi there i am running a .ahk file with Autohotkeys .. when i go to run the script .. this is for Vista x64 .. it changes my \ to " .. so my folder would read

        (C:\Folder\Folder)  but in dos it is showing up as (C:"folder"folder) any help?Not sure what an autohotkey script has to do with dos or a batch file.when you execute the script .. it requires dos to runYou should post the script.
Quote from: phree on FEBRUARY 19, 2012, 11:17:59 AM

when you execute the script .. it requires dos to run
Do you mean your AHK script launches a btach file?AutoHotKey has a complex system of character replacement in parameter strings, in particular involving quotes and backslashes.

From the AutoHotKey documentation:

http://www.autohotkey.com/docs/commands/_EscapeChar.htm

Quote
The default escape character for AutoIt v2 (.aut) scripts is backslash (\). [...] When a .aut script is auto-converted into a .ahk script, the backslash escape character (\) is globally replaced with the accent character (`).

I suspect that those characters shown as double quotes by the OP are really accent/backticks.

Without seeing the original script, (and maybe not even then) it will be very difficult (for me at least!) to offer much advice.

Thus I recommend:

1. A thorough and careful STUDY of the AutoHotkey documentation.

http://www.autohotkey.com/docs/

2. Having done that, (OTHERWISE stand by to be flamed!) ask in one of the AutoHotkey forums, such as this one...

http://www.autohotkey.com/forum/

In fact, that forum's "search" facility showed me quite a few promising looking TOPICS.
Quote from: Salmon Trout on February 19, 2012, 01:00:19 PM
http://www.autohotkey.com/forum/

In fact, that forum's "search" facility showed me quite a few promising looking topics.
What a novel idea. A support forum for a piece of software.


Discussion

No Comment Found