특정 라인을 선택하는 방법

워드에서 [ ] 꺽쇄로 둘러쌓인 한 줄을 선택하고 굵게 지정하고 싶습니다.

제가 생각한 방식은 click text 액티비티를 이용하여 [ 꺽쇄를 찾아가고,
[ 꺽쇄의 오른쪽에 커서가 위치하게 될테니 send hotkey 액티비티를 이용하여 왼쪽 방향키를 한 번 눌러주고,
send hotkey 액티비티를 이용하여 shift+down 키를 이용하여 한 줄을 선택해준 후
bold 서식을 적용하는 방식입니다.

그런데 click text 액티비티를 사용해서 “[” 를 입력하면 찾아가지 못하는 것 같습니다.

  1. 왜 찾아가지 못할까요? 워드에 표가 있고 표 안에 텍스트가 있습니다.
  2. 제가 생각한 방식이 일반적인 방법일까요? 더 좋은 방법이 있다면 알려주세요!
  3. 서식 적용 부분도 알려주시면 감사하겠습니다.
1 Like

Can you provide two sample Word documents, one that shows before processing and one that shows after processing please?

Hi! Please check my picture. Thx.

163276.zip (23.4 KB)

Try this and let me know if it works!

Actually It doesn’t work completely in my computer… But I can try it! Thanks!!

What version of Word are you using?

The version is 10.0.17763. I solve that almost, but In Ctrl+H box Type Into activity doesn’t work… If I write “blah” in Type Into activity, it works! But If I write string variable in Type Into activity, it is not input. Could you let me know how I can use string variable in Type Into activity?

What version of Studio are you using?

Can you show me a screenshot of your Word version please?
Mine is 16.0.11328.20438 image

https://wordaddins.com/support/how-to-find-out-what-version-of-word-you-have/

If we have different versions of Word, you probably need to retrain the Type Into selectors to work with your version of Word.

version

Is this right? How can I retrain my Word for Type Into activity?

Pick Indicate on screen
image

Pick the Find What box
image

See if it types into the correct box. If so, fix the other boxes as well.

1 Like