Im trying to copy a value from a editbox and modify the value
and repaste it into the box with the new value
//BEGIN Copy
Press CTRL
Send>c
Release CTRL
//END Copy
**BREAKPOINT**
let>$Clipboard = 0
GetClipBoard>$clipboard
let>$Clipboard = $Clipboard - 50
Send>$Clipboard
Press Enter
now i know this is wrong let>$Clipboard = $Clipboard - 50
because in the watch list it says $Clipboard = $Clipboard - 50
and not the new value
eg. $Clipboard = 30 if original $Clipboard is 80
Any clues?
Ben
Copy value from editbox
Moderators: Dorian (MJT support), JRL
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
Two more observations:
1. If you do need Send> you need to set Focus on window before you do a Send
2. Remove spaces in Let> commands, and most others also. Macro Scheduler sees them as real and tries to use them.
From: Let>$Clipboard = 0 (means "Clipboard " = " 0")
To: Let>$Clipboard=0
1. If you do need Send> you need to set Focus on window before you do a Send
2. Remove spaces in Let> commands, and most others also. Macro Scheduler sees them as real and tries to use them.
From: Let>$Clipboard = 0 (means "Clipboard " = " 0")
To: Let>$Clipboard=0
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
>2. Remove spaces in Let> commands, and most others also.
>Macro Scheduler sees them as real and tries to use them.
Unless you set IGNORESPACES to 1 (See the "Ignoring Spaces" section in the help file).
>Macro Scheduler sees them as real and tries to use them.
Unless you set IGNORESPACES to 1 (See the "Ignoring Spaces" section in the help file).
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?