void tabSelect() { int selected = 0; wchar_t tabText[5]; while (selected == 0) { AU3_ControlClick(L"", L"", L"[CLASS:SysTabControl32]", L"",1,175,30); AU3_WinGetText(L"",L"RS232",tabText,5); if (tabText == L"RS232") selected = 1; else AU3_ControlClick(L"", L"", L"[CLASS:SysTabControl32]", L"",1,175,10); } }
To summarise: I'm selecting a tab labeled "RS232". The tab is designed (by the company who made it, badly) so that all of the tabs are merged into one large object so I have to click co-ordinates. Once clicked, I then have to check for the specific text "RS232" to be present on the whole screen.
Anyway, this throws up an error:
1>------ Build started: Project: CTA5, Configuration: Debug Win32 ------ 1>main.obj : error LNK2019: unresolved external symbol _AU3_ControlClick@28 referenced in function "void __cdecl tabSelect(void)" (?tabSelect@@YAXXZ) 1>ocz.ocz.ukexportHardwareA001H05ExperimentsCPPCTA5DebugCTA5.exe : fatal error LNK1120: 1 unresolved externals ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I've come across the LNK2019 before (I hadn't included the AutoITX3.lib file), but this time around I'm stumped as to what the issue is.
Edit: I know I posted this in general help, but someone said it would be better in here so I've reposted. Sorry that it's a repost.
Edit 2: After some trial and error (i.e. running some other AU3_ code) I've determined it is a problem with ControlClick only... which, as far as I can tell, probably means there is an error in the dll or lib file.
Edited by CmdrVimes, 27 April 2012 - 03:43 PM.





