Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

ControlSetText and two different ClassNN


  • Please log in to reply
3 replies to this topic
Oliver
  • Members
  • 402 posts
  • Last active: Oct 26 2015 04:38 AM
  • Joined: 07 Aug 2011

At Outlook I would like that hotkey works either for RICHEDIT60W2 and RICHEDIT60W3

 

That means that when at the WinActive RICHEDIT60W2 is not there see if RICHEDIT60W3 is there. Or any other way to tweak the code so that the same hotkey works for the two options. 

 

my current code is

!n::      
          ControlSetText RICHEDIT60W2
          ControlFocus RICHEDIT60W2
     Return


Exaskryz
  • Members
  • 3249 posts
  • Last active: Nov 20 2015 05:30 AM
  • Joined: 23 Aug 2012

There is something similar I experience with Adobe Reader. The name for the Page Count control changes. Below is my solution. Just target both controls. If a control isn't there to be targeted, I haven't noticed any harm done in that.

 

F5::
#p::
MouseMove, 100, -100,0,R
ControlSend,AVL_AVView14,{PgDn}, Adobe Reader ; Sometimes this needs to be AVL_AVView15
ControlSend,AVL_AVView15,{PgDn}, Adobe Reader ; Sometimes this needs to be AVL_AVView15
MouseMove, -100, 100,0,R
return


Oliver
  • Members
  • 402 posts
  • Last active: Oct 26 2015 04:38 AM
  • Joined: 07 Aug 2011

sorry , what would it be for my case, I have two "operations" Control Set Text & Focus.

Also should I have to create another hotkey?



Exaskryz
  • Members
  • 3249 posts
  • Last active: Nov 20 2015 05:30 AM
  • Joined: 23 Aug 2012

Try doing your operations twice. Target RICHEDITW60W2 and RICHEDITW603 in the same hotkey.