02-15-2017, 08:21 PM
Hi, this is my first time posting here, so please forgive me if I am posting this question in the wrong place.
I created a simple toolbar that is used to enter various text strings into any textbox or other place where you can normally type. The idea is to create form letters and/or parts of messages that can be entered into any window by clicking on the various toolbar buttons.
Here is an example of the function that does the copy paste of the text strings - it would be labeled "TEXT_1"
I used this method since I am working across an RDP session (to a 3rd party server), so I cannot use SetText or any other direct method of entering the desired text. I encounter the crashing even if I am entering the text into a notepad window running on my local windows 10 desktop. This happens in Windows 10 Pro, or on a Surface Pro 3 tablet running Windows 8 Pro, it seems to consistently crash regardless of which computer it is running on, and it crashes the local OS, not the remote session. I designed it on my local computer, testing it in notepad, but the remote user mostly uses it to enter text into apps running on a remote server thru RDP.
Here is a sample of my main toolbar:
Here is an example of the "Category 1" menu
Clicking on the "Category 1" button in the toolbar would open up the Menu that has 3 buttons, "Text String 1", "Text String 2" and "Text String 3". Then when you click on the "Text String 1" button in the menu that opened, it performs the copy/paste of the corresponding text string (in the example I provided above).
Should I be using a function to do the copy/pasting, or should that be a macro? I am not sure if there is a difference, it has worked for many years using functions to do the copy/pasting, but it just occurred to me that I might be using a function where I should be using a macro. Can someone explain the proper usage of those types of items to me? I used Quick Macros for many years, for manipulating web pages, entering text strings and clicking on web page buttons and manipulating webpage controls, and I wrote a lot of code that manipulated MS Office applications, so making this little text toolbar should have been no trouble at all, but it is constantly crashing.
The OS's that I ran my software on in the past only had a single software system installed on them, and they were very static environments used for only a specific process. This new text entry toolbar program I am making is being used on various notebook computers that run a lot of different apps, so the environments are very dynamic. One has Dragon Voice recognition software running in the background and its a surface tablet that is also using the windows handwriting recognition tool. It originally worked fine in the Surface Pro tablet, then it started crashing occasionally.... but the occasional crashes became more frequent after I added a new set of menu items to the toolbar.
I am open to suggestions on how to make this work more stable. I want to do whatever I can to make it as stable as possible, and if there is a way to run this as an executable I would love to do that.... right now I am running it inside of the QM app, but I would prefer to make it as executable of possible.
I appreciate any assistance you can provide. Please let me know if you need any further info.
Thanks
Kevin
I created a simple toolbar that is used to enter various text strings into any textbox or other place where you can normally type. The idea is to create form letters and/or parts of messages that can be entered into any window by clicking on the various toolbar buttons.
Here is an example of the function that does the copy paste of the text strings - it would be labeled "TEXT_1"
_s="This is a test of copying text to the clipboard then pasting it into wherever the cursor was left or the current active window"; _s.setclip()
key CvI used this method since I am working across an RDP session (to a 3rd party server), so I cannot use SetText or any other direct method of entering the desired text. I encounter the crashing even if I am entering the text into a notepad window running on my local windows 10 desktop. This happens in Windows 10 Pro, or on a Surface Pro 3 tablet running Windows 8 Pro, it seems to consistently crash regardless of which computer it is running on, and it crashes the local OS, not the remote session. I designed it on my local computer, testing it in notepad, but the remote user mostly uses it to enter text into apps running on a remote server thru RDP.
Here is a sample of my main toolbar:
Here is an example of the "Category 1" menu
Clicking on the "Category 1" button in the toolbar would open up the Menu that has 3 buttons, "Text String 1", "Text String 2" and "Text String 3". Then when you click on the "Text String 1" button in the menu that opened, it performs the copy/paste of the corresponding text string (in the example I provided above).
Should I be using a function to do the copy/pasting, or should that be a macro? I am not sure if there is a difference, it has worked for many years using functions to do the copy/pasting, but it just occurred to me that I might be using a function where I should be using a macro. Can someone explain the proper usage of those types of items to me? I used Quick Macros for many years, for manipulating web pages, entering text strings and clicking on web page buttons and manipulating webpage controls, and I wrote a lot of code that manipulated MS Office applications, so making this little text toolbar should have been no trouble at all, but it is constantly crashing.
The OS's that I ran my software on in the past only had a single software system installed on them, and they were very static environments used for only a specific process. This new text entry toolbar program I am making is being used on various notebook computers that run a lot of different apps, so the environments are very dynamic. One has Dragon Voice recognition software running in the background and its a surface tablet that is also using the windows handwriting recognition tool. It originally worked fine in the Surface Pro tablet, then it started crashing occasionally.... but the occasional crashes became more frequent after I added a new set of menu items to the toolbar.
I am open to suggestions on how to make this work more stable. I want to do whatever I can to make it as stable as possible, and if there is a way to run this as an executable I would love to do that.... right now I am running it inside of the QM app, but I would prefer to make it as executable of possible.
I appreciate any assistance you can provide. Please let me know if you need any further info.
Thanks
Kevin
