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 

Autostring : spaces

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
CodeKiller



Joined: 10 Jul 2008
Posts: 2

PostPosted: Thu Jul 10, 2008 8:53 am    Post subject: Autostring : spaces Reply with quote

Hi dudes !

At this moment I have this in my script :
Code:
:*:poru ::pour

(with a space after 'pour'.)

But it dosen't work : the space after the word 'pour' isn't interpreted.
It seeems autohotkeys doesn't recognize the spaces after an alphanumeric character (before the end of line), sort of bug ???

I thought autohotkey read until the CR character, but seems not !

HELP !!!!!

Thanks !
Back to top
View user's profile Send private message
Sir Daniel
Guest





PostPosted: Thu Jul 10, 2008 9:31 am    Post subject: Reply with quote

Try this:

Code:

:*:poru ::pour{space}
Back to top
vahju



Joined: 17 Feb 2008
Posts: 56

PostPosted: Thu Jul 10, 2008 6:52 pm    Post subject: Reply with quote

Should this be

Code:

:*:poru ::send, pour{space}
Back to top
View user's profile Send private message
Razlin



Joined: 05 Nov 2007
Posts: 340
Location: canada

PostPosted: Thu Jul 10, 2008 8:47 pm    Post subject: Reply with quote

%A_SPACE%
_________________
-=Raz=-
Back to top
View user's profile Send private message
CodeKiller



Joined: 10 Jul 2008
Posts: 2

PostPosted: Wed Jul 30, 2008 4:26 pm    Post subject: Reply with quote

Thanks for the replies.

And yes it's working now, I'm using "{Space}". Smile

Just for information :

Quote:
%A_SPACE%

How do you use it ?

Thanks again ! Idea
Back to top
View user's profile Send private message
engunneer



Joined: 30 Aug 2005
Posts: 6772
Location: Pacific Northwest, US

PostPosted: Thu Jul 31, 2008 5:13 am    Post subject: Reply with quote

in the same place you have {space}

A_Space is a variable that always contains A Space Smile

Unfortunately, hottrings cannot have variables, so {space} is a better solution. If you were using a regular send command, you could do either.
_________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help 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