Jump to content
Macro Express Forums

Need help with simple macro for numbers


Recommended Posts

This should work as long as there is no text in the field. It handles non-integers.

 

The script selects the entire field and copies it to the clipboard before adding the two values.

 

Text Type (Simulate Keystrokes): <HOME><SHIFT><END> // Select the entire field
Clipboard Copy
Variable Set Decimal %ClipDecimal% from the clipboard contents // Assign variable %ClipDecimal% to the clipboard
Variable Modify Decimal: %SumDecimal% = %ClipDecimal% + 20
Text Type (Simulate Keystrokes): %SumDecimal%
	

 

 

 

Link to comment
Share on other sites

1 hour ago, acantor said:

This should work as long as there is no text in the field. It handles non-integers.

 

The script selects the entire field and copies it to the clipboard before adding the two values.

 

Text Type (Simulate Keystrokes): <HOME><SHIFT><END> // Select the entire field
Clipboard Copy
Variable Set Decimal %ClipDecimal% from the clipboard contents // Assign variable %ClipDecimal% to the clipboard
Variable Modify Decimal: %SumDecimal% = %ClipDecimal% + 20
Text Type (Simulate Keystrokes): %SumDecimal%
	

 

 

 

sorry, I didn't understand how to put this into the program

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...