Показать сообщение отдельно
Старый 19.08.2016, 19:42   #365
Lexx09
Старший Пользователь
 
Регистрация: 18.04.2009
Город: Краснодар
Регион: 23, 93
Машина: Приора хэтчбек
Сообщений: 980
Lexx09 has much to be proud ofLexx09 has much to be proud ofLexx09 has much to be proud ofLexx09 has much to be proud ofLexx09 has much to be proud ofLexx09 has much to be proud ofLexx09 has much to be proud ofLexx09 has much to be proud ofLexx09 has much to be proud ofLexx09 has much to be proud ofLexx09 has much to be proud of
По умолчанию

Навскидку...
Возможно, окно плагина OBDMain имеет такой-же класс, как и окно iCarDS - "TFormMain". В скрипте идет обращение к первому найденному окну с таким классом. Если iCarDS запущен, то его окно первое, а OBDMain - второе. Надо отслеживать кол-во найденных окон, если их два - то обращаться ко второму.
Как-то так:
PHP код:
#NoTrayIcon
#RequireAdmin

#pragma compile(Icon, "C:\Program Files (x86)\AutoIt3\Icons\au3script_v9.ico")
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Compression=4
#AutoIt3Wrapper_UseUpx=y
#AutoIt3Wrapper_Run_AU3Check=n
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****

#include <WindowsConstants.au3>
#include <Process.au3>

$winList WinList("[CLASS:TFormMain]")
If (
$winList[0][0] = 2Then
    $hwnd 
$winList[2][1]
    
WinSetTrans($hwnd""0)
EndIf
Sleep(9000)
$winList WinList("[CLASS:TFormMain]")
If (
$winList[0][0] = 2Then
    $hwnd 
$winList[2][1]
    
WinSetTrans($hwnd""255)
EndIf 
__________________
Приора хэтчбек
Win7 x64 Pro, Intel Core i3-3240 Ivy Bridge 2x3.4GHz HT, DDR3 2x4Gb, SSD SiliconPower Ace A55 128GB SATAIII, ASRock B75M-ITX, M2-ITX rev.2F, GPS Beitian BN-808, Logitech Wireless Touch Keyboard K400r, ИК-пульт Prology RCD-350, круиз-контроль...
Lexx09 вне форума   Ответить с цитированием