Jump to content

Recommended Posts

Posted

image.png.de86915d33dc8e1ac8a983bbfd769aa0.pngimage.png.0a3a3bbabda7eef8c3c3f3e5b2e48ef5.png

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.

 

image.png

  • Developers
Posted

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.
  :)

Posted

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}")

 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...