Re: Selecting a tab in another program
Posted: 06 Jun 2017, 16:16
None of the scripts need AccViewer, although they made need Acc.ahk.
If a script uses a function beginning with 'Acc_', then you need to include (#Include) Acc.ahk, or you need to copy the functions into your script, or (although not recommended in this case) you could copy bits of code from the functions into your script.
The script you mentioned does not have any 'Acc_' functions in it, so does not require Acc.ahk.
==================================================
I was surprised that none of these have text:
Parameters/Prolog/Metadata/Data/Epilog.
What control(s) corresponds to those tab headers.
#327701 Turbo Integrator
#327702 Advanced
#327703 Variables
#327704 Data Source
#327705 Turbo Integrator
#327706 Connection
#327707 Turbo Integrator
#327708 Connection
#327709 Schedule
==================================================
One thing that might be useful is to check the parent windows for the Edit controls e.g.:
If the MsgBox gives 2 different hWnds then that information may be useful.
If a script uses a function beginning with 'Acc_', then you need to include (#Include) Acc.ahk, or you need to copy the functions into your script, or (although not recommended in this case) you could copy bits of code from the functions into your script.
The script you mentioned does not have any 'Acc_' functions in it, so does not require Acc.ahk.
==================================================
I was surprised that none of these have text:
Parameters/Prolog/Metadata/Data/Epilog.
What control(s) corresponds to those tab headers.
#327701 Turbo Integrator
#327702 Advanced
#327703 Variables
#327704 Data Source
#327705 Turbo Integrator
#327706 Connection
#327707 Turbo Integrator
#327708 Connection
#327709 Schedule
==================================================
One thing that might be useful is to check the parent windows for the Edit controls e.g.:
If the MsgBox gives 2 different hWnds then that information may be useful.
Code: Select all
;q:: ;control get parent
WinGet, hWnd, ID, A
ControlGet, hCtl, Hwnd,, Edit1, % "ahk_id " hWnd
hWnd2 := DllCall("user32\GetParent", Ptr,hCtl, Ptr)
hWnd2 := Format("0x{:x}", hWnd2)
WinGetClass, vWinClass, % "ahk_id " hWnd
WinGetClass, vWinClass2, % "ahk_id " hWnd2
MsgBox % hWnd " " vWinClass "`r`n" hWnd2 " " vWinClass2
return