This subject has been covered in other threads and I have answered others explaining to just enter a space character, or use ASC>32. But now I have found a reason to create a PRESS SPACEBAR function.
Using Firefox, from the Menu Bar/Tools/Clear Private Data, there are some radio buttons that need a SPACE to toggle the conditons. Probably true in thousands of other instances where radio buttons apply. This just happens to be a current script I am working with.
So I must use Send>(space char) to toggle the options..
OK, that works, all seems well, until I want to save the script.
Now I get prompted to remove the trailing space character. I need to click on NO. The default is set for YES, which makes it easy to make the wrong choice.
I know that I can turn off this prompt in the Macro Scheduler options, but that is global across all scripts so I don't want to turn that off.
So I decided to use ASD>32 instead of Send> , but found that this code does not toggle the options like Send> does.
Since I am now forced to use Send> to do the toggle and I don't want to turn off the trailing character check globally, I am forced to deal with the prompt that has the wrong default(in this case).
I see a few solutions:
1. Create a PRESS SPACEBAR function.
2. Change ASC>32 so that it can work like a spacebar, in addition to a space character.
3. Provide the option to toggle Trailing Spaces to the macro properties level vs. the global setting.
4. The prompt default option should also be set to NO to allow for the least amount of damage if one presses Enter by mistake. Almost all "delete" type of functions usually have NO as the safety default.
Thanks for listening.
Press Spacebar needed
Moderators: JRL, Dorian (MJT support)
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
Press Spacebar needed
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
Aha! As soon as you mentioned that, you refreshed my memory. I thought I had seen something in the past year or so, but did not see it anywhere.
So, how many times do i need to say Thanks, Dick?
Once again you have come to the rescue.
--------------------------
I still think make the option at the macro vs. global should happen.
And changomg the default button to NO should be done.
So, how many times do i need to say Thanks, Dick?
Once again you have come to the rescue.
--------------------------
I still think make the option at the macro vs. global should happen.
And changomg the default button to NO should be done.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!
Bob
A humble man and PROUD of it!
I agree. I have one macro that has hundreds of "illegal" characters embedded in it. Even setting a hot key will trigger the "do you want to remove them now" message. I've found pressing the ESC key is safe when that message appears.I still think make the option at the macro vs. global should happen.
And changing the default button to NO should be done.