Jump to content


Photo

cant catch "comma" using INPUT command


  • Please log in to reply
5 replies to this topic

#1 Terka

Terka
  • Members
  • 30 posts

Posted 30 June 2008 - 09:51 AM

want to catch chars: a, b, c, space, tab, \, comma
but cant catch the comma :oops:
Suspend, On
Input,text, I L1 T3,{Esc},a,b,{space},c,`t,\,,,
If ErrorLevel = Match
...
could someone help?

#2 Razlin

Razlin
  • Members
  • 454 posts

Posted 30 June 2008 - 01:27 PM

I think you have to escape your comma.

IE

`,


#3 stevenp

stevenp
  • Members
  • 187 posts

Posted 19 July 2012 - 01:55 AM

Tried to escape it (`,), put into begin/end of the match-list, put in a variable, nothing helps.

#4 HotKeyIt

HotKeyIt
  • Fellows
  • 6119 posts

Posted 19 July 2012 - 05:16 AM

:!:
Input,var,,{`,}

MsgBox % ErrorLevel


#5 stevenp

stevenp
  • Members
  • 187 posts

Posted 19 July 2012 - 11:55 AM

Thanks! Now after pressing the comma, ErrorLevel is set to "EndKey:,"
That should really be denoted in the Documentation at least in the Examples section.

#6 Guests

  • Guests

Posted 19 July 2012 - 12:00 PM

It is <!-- l --><a class="postlink-local" href="http://www.autohotkey.com/community/viewtopic.php?f=1&t=88967">viewtopic.php?f=1&t=88967</a><!-- l -->