AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Getting rid of backslash

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
keyboardfreak



Joined: 09 Oct 2004
Posts: 135
Location: Budapest, Hungary

PostPosted: Sun Nov 12, 2006 1:26 pm    Post subject: Getting rid of backslash Reply with quote

Windows paths with backslash are a pain in the ass. Unlike on Linux where the path separator character is slash which is at a convenient place on the keyboard backslash is inconvenient when one wants to type a path into the command prompt.

So backslash had to go.

This small script makes it possible to use slash in the command prompt when typing a path. When typing a slash, a backslash will appear.

Sometimes however simple slash is also needed (e.g. for command line options), so slash after a space results in a normal slash:
Code:
#IfWinActive, ahk_class ConsoleWindowClass
:*?: /:: /
:*?:/::\
#IfWinActive
Back to top
View user's profile Send private message
robiandi



Joined: 08 Aug 2006
Posts: 50

PostPosted: Sun Nov 12, 2006 5:07 pm    Post subject: Reply with quote

on a german keyboard I would suggest for the characters \ { [ ] }
Code:
:*?://::\
:*?:/ /:://
:*?:77 7::777
:*?:777::{{}
:*?:88 8::888
:*?:888::[
:*?:99 9::999
:*?:999::]
:*?:00 0::000
:*?:000::{}}
Back to top
View user's profile Send private message
Azerty
Guest





PostPosted: Wed Nov 22, 2006 3:21 pm    Post subject: Reply with quote

On french keyboard, I like this one :
Code:
; --------- Mapper ² en \
SC029::\
Back to top
PhiLho



Joined: 27 Dec 2005
Posts: 6721
Location: France (near Paris)

PostPosted: Wed Nov 22, 2006 3:59 pm    Post subject: Reply with quote

I use ² as prefix for various hotstrings, so instead I remapped it differently:
Code:
+²::Send \
^²::Send ``%A_Space%

_________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")
Back to top
View user's profile Send private message Visit poster's website
Tuncay



Joined: 07 Nov 2006
Posts: 384
Location: Berlin

PostPosted: Wed Nov 22, 2006 10:04 pm    Post subject: Reply with quote

For that and more than that I have made UPath. Its an AutoHotkey function (library). But it do more than only converting slash to backslash. Its currently in heavy development phase. What do u think about that?

Umm, I now UPath is not the fastes thing ever ...
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group