when i was creating text chepoing in qtp the recording results getting odd recording results
the scanned input is
alt text http://img22.imageshack.us/img22/8255/capture1pa.png
and i get output like this insted of secs it display sees
alt text http://img22.imageshack.us/img22/5273/capture2c.png
and i made change in text like this sees to secs
alt text http://img801.imageshack.us/img801/7492/capture4f.png
but when i run the test the test result will be
alt text http://img94.imageshack.us/img94/2575/capture3z.png
I captured many times but it display same as above. I don't understand how display like this, please help me.
The problem is that QTP recognizes the word secs in your application as sees, which causes the checkpoint to fail. Most probably, this happens because the text recognition is performed using OCR, which can't guarantee 100% accuracy. You can try changing the text recognition mechanism to Windows API and see if that helps. To do this, go to Tools > Options > General > Text Recognition and set the Use text recognition mechanisms in this order option to either Use Only Windows API or First Windows API then OCR.
If this doesn't help, you can replace the word secs in the checkpoint's Checked Text with a regular expression that matches both secs and sees:
[0-9]+ days, [0-9]+ hours, [0-9]+ mins, [0-9]+ se[ce]s
Also, make sure that the Regular Expression option is turned on for the Checked Text.
Related
I just started learning how to create a website and am watching tutorial videos. When they write $-sign it turns into green and you can see that it recognizes it, but in my case it does nothing, like it would be a random character (it remains white all the time and even if I write the same lines as it is in the video, I can not get the same results).
If you would like to see here it is:
$dayofweek = date("w");
echo "$dayofweek";
I have been trying to figure out how to get a font to shrink to fit in to its text box, but it needs to scale down the font size. I want to be able to do it to multiple text boxes at once. I dont have any coding right now. I know a little JavaScripting but not 100% sure how to do if for illustrator.
You can use the code snippet in my LinkedIn article: Dealing with Overset Text.
The Illustrator scripting API gives one some control over the paragraphs, lines, words, characters and arbitrary text ranges of an Illustrator text frame. One upgrade my script could use though is to incorporate text-on-a-path - maybe someday soon I'll fix it up and update my article.
As for using the snippet, just run it however you choose to run scripts (put into App scripts folder or use File > Scripts > Other Scripts. When you run it, any overset text boxes which are area text will have their font shrunk to no longer be overset. You can use this same snippet with Illustrator variable data to ensure a batch process will not have oversets.
Short version:
So I have a Word doc with very specific formatting guidelines, into which Japanese users have to input text. Despite being specifically told not to, instead of using "tab" to create indents, they will very often use full-width Japanese spaces (U+3000). I want to somehow prevent the entry of this character to avoid having to reformat.
Long version:
We send out Japanese/English-language script templates for Japanese users to input their own dialogue into. They will often ignore the formatting of the script, using hard returns and full-width spaces to hack-format the doc (very common practice among Japanese Word users). This leads to unnecessary time spent on re-formatting. As I see it I have three options:
Prevent the entry of undesired characters, by blocking the character
or setting up a dialogue box every time it is used.
Automate a dialogue box to pop up when the document is saved, displaying a message to users to make sure no undesired characters were used.
Create a macro to auto-replace undesired characters on my end.
Any suggestions? Help is very much appreciated.
I have ticketing system that I use for students who do consultation with their teachers. The system is working right now, the teacher need to input ticket number which is generated by students.
I want to change the way, I want the ticket number is shown as QRCode, and what the teacher need to do just scan the QRCode thru the camera of their laptop. So it's like replace the way they input the ticket number, from typing the ticket number to just scan the QRCode.
The simplest way to do that is with old-fashioned barcodes.
If the ticket number is short enough (up to 14 digits), you can format it as a EAN13 barcode (13 digits + control).
The number conversion is trivial to make (just Google "generate EAN13" + your programming language)
EAN13 barcodes can be rendered as text with this TTF font: http://www.fontpalace.com/font-details/EAN-13/
Almost every QR reader understand linear barcodes
You can get a Barcode Scanner Gun for 25$. They are plugged via USB, detected as USB keyboards, they input scanned codes as if you typed them and they are fast as hell!
I think you are looking for a scanner soft keyboard. It scans the barcode / qr and set the result in input the same like you typed it.
In example this keyboard
https://play.google.com/store/apps/details?id=com.nikosoft.nikokeyboard
It has the config option to scan and automatically send an Enter keyboard event.
I successfully use it on a telegram bot to similar functionality and I think is a very simple solution.
I'm facing an issue in which QTP is not fetching text property of a WinObject when the Text is too large. In other cases it's properly fetching the Text property.
Note: It's not fetching Text property in Object Spy as well as at run time using method GetROProperty.
See the below screen print in which it's working fine because the Text is not too large.
But in Response Tab the text is too large & so it's not able to fetch the Text property. See the below screen print.
QTP had this limitation in version 9.0 on text length to be about 16,383 characters.
I am not sure whether this limitation exists in current versions as well.
I had come across this recently, to read all text from WinObject use the following piece of code (this worked for me),
bLargetext=Parent().Child().WinObject("objectname").Object.Document.text