AutoHotkey Community

It is currently May 26th, 2012, 9:38 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: clipboard math
PostPosted: May 15th, 2005, 10:39 am 
Offline

Joined: April 18th, 2005, 11:03 am
Posts: 14
Location: WI, USA
Ok so I'm all busy as a bee coding out a script when all of a sudden I run into a brick wall *thud* Here is my code snippet then an explaination...

Code:
   Send, {tab 2}
   clipboard =
   ClipWait, 5
   Send, ^x
   DBN = %clipboard% * 2
   Send, %DBN%
   MouseMove, 222, 108, 30


Basically what I'm doing is creating a script to help out my niece with her math homework.. kinda like a math tutor. AAAAAAAANYWHO.. I have it so it automatically tabs over twice to the input box with a number already in it.. lets say.. 100 (easy numbers YAY!) it then cuts the number out and multiplys it by two.. or so I thought. The DBN (DouBle Number) var isn't effectively multiplying the 100 (or other variable number) in the box but rather just cutting it and not replacing it with the answer of 200..

So long story short I just want to take the numbers off the clipboard and multiply them by two (well its going to be more but to multiply it by one it wont lemme know if i'm doing it right lol) If any of all that made sense (its like 436am) to one of y'all out there could I get a little help? :D

Thnx!

_________________
"It was when I found out I could make mistakes that I knew I was on to something."
--Ornette Coleman


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 15th, 2005, 11:35 am 
Offline
User avatar

Joined: August 11th, 2004, 1:47 am
Posts: 5347
Location: UK
Should be using an expression:
Code:
DBN := Clipboard * 2


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 16th, 2005, 8:50 am 
Offline

Joined: April 18th, 2005, 11:03 am
Posts: 14
Location: WI, USA
Thnx much titan... apparently I'm a moron because I did have the := but had the %'s on there... i hate painfully obvious airers (<--bad joke)

_________________
"It was when I found out I could make mistakes that I knew I was on to something."
--Ornette Coleman


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Exabot [Bot], iBob35555VR, krajan, tomoe_uehara and 66 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group