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 

How to do if a=negative signe

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



Joined: 16 Jun 2007
Posts: 280

PostPosted: Fri Dec 12, 2008 5:03 pm    Post subject: How to do if a=negative signe Reply with quote

In my variable a I have the - (negative signe). It dose not work. I paste from clipboard, maybe there is a space into the variable, how can I remove it?

Code:
if a=-


Thanks
Back to top
View user's profile Send private message
Dra_Gon



Joined: 25 May 2007
Posts: 373

PostPosted: Fri Dec 12, 2008 5:16 pm    Post subject: Reply with quote

HUH? Um, when you paste something from the clipboard {regardless of wherever you got it from in the first place} you can remove any unwanted characters.

I don't know if that answers your question but without a clearer question we can't be much help.

Ciao,
Dra'Gon
_________________

For a good laugh {hopefully} >> megamatts.50megs.com

My WritersCafe profile>>
http://www.writerscafe.org/writers/BlueDragonFire/
Back to top
View user's profile Send private message Send e-mail
evan
Guest





PostPosted: Fri Dec 12, 2008 5:27 pm    Post subject: Reply with quote

Code:
StringReplace, clipboard, clipboard, -, , All
Back to top
garry



Joined: 19 Apr 2005
Posts: 2212
Location: switzerland

PostPosted: Fri Dec 12, 2008 7:23 pm    Post subject: Reply with quote

if you want remove minus see ABS
Code:
A:=-6
B:=ABS(A)
msgbox,%A%`n%B%
Back to top
View user's profile Send private message
tank



Joined: 21 Dec 2007
Posts: 3700
Location: Louisville KY USA

PostPosted: Fri Dec 12, 2008 11:51 pm    Post subject: Reply with quote

Code:
if (a="-")
;execute code here
msgbox executed true

_________________

We are troubled on every side‚ yet not distressed; we are perplexed‚
but not in despair; Persecuted‚ but not forsaken; cast down‚ but not destroyed;
Back to top
View user's profile Send private message
Display posts from previous:   
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