More macro help....
Moderators: Dorian (MJT support), JRL
More macro help....
I'm trying to create a macro that if a person is keying and they enter, for example, 99999999 this macro would give them a dialog box. Basically what I need the macro to do is begin running automatically when that person logs in and continue running until they log off.
Any ideas?
thanks.
Any ideas?
thanks.
I would prefer the 9999s into a specific application but if that's not possible than I can use the 999s into any other program. Basically they would only be keying the 999s in a certain application so if we have to put it for all applications and all the would have to do is click OK to get rid of the box, that that's fine with me.
thanks in advance.
thanks in advance.
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Why 9 9s?
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?
Because entering nine 9s into a field is a way for us to make this field a generic field. Once we do that than we need to erase data from another location. This step can be done manually and with a macro, but if a person is doing it manually we need something to let them know not to forget the other fields that need to be deleted.
So basically what I need is to setup a macro that is continuously running and when nine 9s get entered in a row a message box will appear.
So basically what I need is to setup a macro that is continuously running and when nine 9s get entered in a row a message box will appear.
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
I would create a looping script that constantly checks the value of this field. The script would have to run continuously in the back ground. To check the value of the field either use GetControlText, or, if necessary, send ctrl+c to the field to copy to the clipboard and then use GetClipBoard to read the value into a variable. The script could be written in such a way that it only does the check if the window containing the field was active. It would loop continuously and when it sees that the value is 999999999 invokes the code you want to perform ... and then starts checking again.
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?