Hi guys,
Im using ControlGet to retrieve the text from a ComboBox but i can't get AutoHotkey to select the tab that the control is on.
I've got it working now by using MouseClick and providing the co-ordinates, but this looks very messy and unprofessional. The tabs are all located under the same ClassN name window.
WindowsSpy may be able detect the different titles of the tab (&Details as opposed to Details which the user can see) but i wouldn't know how to reference this.
(I tried posting a picture of the tabbed window here, but got a message that i can't share it =( Its located at http://<a href="http...y TinyPic"></a>
Im also having difficulties making the script act on the retrieved text variable latter on in the scripts which you can see below as well.
#MaxThreadsPerHotkey 1 SetTitleMatchMode 1 #IfWinActive, Scheduling #z:: WinActivate, Scheduling Send, {ALTDOWN}ti{ALTUP} WinWait, Checking WinWaitActive, Checking, Control, ShowDropDown, ,ComboBox2, Checking KeyWait, LButton, D WinActivate, Checking, MouseClick, left, 317, 110 ;//MESSY, how to get it to select the Details tab without using MouseClick? ;//I would like to have this Details tab under the Checking Window visible in the background ControlGet, vPubPri, List, Focused, ComboBox11, Checkin ;//The text i would like to reference later ControlClick, Button47, Checking WinWaitActive, Registration,,15 ;//Ok, this is another bugger. I would like to script to wait and see if the window Registration appears, if it doesn't and the user returns to the Scheduling screen and starts clicking around, it finishes and reloads the script. ;if ErrorLevel 1 ;{ ; reload ; return ;} WinActivate, Registration ControlSend, Edit15, Gary Persley, Registration ;//The below isn't working at all for some reason If PubPro=FIRST { Control, ChooseString, INITIAL MEETING, ThunderRT6ComboBox14, Registration } else { If PubPro=REVIEW Control, ChooseString, FOLLOW UP, ThunderRT6ComboBox14, Registration } reload return #IfWinActive, Registration Esc:: reload return #IfWinActive