AlbertChimbindi Posted November 18, 2021 Posted November 18, 2021 I am trying to switch to the System DSN Tab with the keyboard I can do it with cntrl+tab and have tried the send function with similar controls. #include <MsgBoxConstants.au3> #include <GuiTab.au3> $folderpath = "C:\Windows\SysWOW64\odbcad32.exe " ShellExecute($folderpath) WinWaitActive("ODBC Data Source Administrator (32-bit)") Sleep(5000) ;WinActivate("ODBC Data Source Administrator (32-bit)","") ;Both Dont work ControlCommand("ODBC Data Source Administrator (32-bit)", "", "SysTabControl32", "TabRight", "") Send("+{Tab}") All help would be welcome I am pretty new to AutoIT.
Zedna Posted November 18, 2021 Posted November 18, 2021 Change SysTabControl32 to SysTabControl321 Resources UDF ResourcesEx UDF AutoIt Forum Search
AlbertChimbindi Posted November 18, 2021 Author Posted November 18, 2021 So I made the change and still no response I tried it with everything else but the script open and no response.
Zedna Posted November 18, 2021 Posted November 18, 2021 This works for me ShellExecute("odbcad32.exe") WinWaitActive("Správce zdrojů dat ODBC") Sleep(250) ControlCommand("Správce zdrojů dat ODBC", "", "SysTabControl321", "TabRight", "") Send("^{Tab}") Resources UDF ResourcesEx UDF AutoIt Forum Search
Developers Jos Posted November 18, 2021 Developers Posted November 18, 2021 Moved to the appropriate forum, as the Developer General Discussion forum very clearly states: Quote General development and scripting discussions. Do not create AutoIt-related topics here, use the AutoIt General Help and Support or AutoIt Technical Discussion forums. Moderation Team SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Zedna Posted November 18, 2021 Posted November 18, 2021 You can test also this one: #include <GuiTab.au3> ShellExecute("odbcad32.exe") WinWaitActive("Správce zdrojů dat ODBC") Sleep(250) ;~ ControlCommand("Správce zdrojů dat ODBC", "", "SysTabControl321", "TabRight", "") $hTab = ControlGetHandle("Správce zdrojů dat ODBC", "", "SysTabControl321") $i = _GUICtrlTab_GetCurSel($hTab) _GUICtrlTab_SetCurSel($hTab, $i+1) Send("^{Tab}") Resources UDF ResourcesEx UDF AutoIt Forum Search
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now