Gấp - Cần AE thông thạo autoit xử lý lệnh có trả phí

mayback1

Junior
Joined
Nov 29, 2015
Messages
134
Reactions
10
MR
0.003
cần hỗ trợ có trả phí
Anh em nào thông thạo autoit mong hỗ trợ. Mình hiện tại có 2 file autoit làm nhiệm vụ check app. Nếu thỏa mãn thì sẽ close theo chỉ dẫn.
File 1:
====
Global $delayCheckProcess = 1000 * 10;
Global $delayTask = 1000 * 2;
Global $delayResetApp = 1000 * 3600 * 2;;1000 * 60 * 60 * 2;
Global $appName = "Smart.exe";
while 1 ;
$WinList= WinList()
$count=0
for $i=1 to UBound($WinList)-1
if StringInStr($WinList[$i][0],'SmartX') then
$count+=1
EndIf
next
if $count >=2 Then
ProcessClose($appName);
Sleep($delayTask);
EndIf
WEnd.
===


File 2:

Global $delayCheckProcess = 1000 * 10;
Global $delayTask = 1000 * 2;
Global $delayResetApp = 1000 * 3600 * 2;;1000 * 60 * 60 * 2;
Global $appName = "Smart.exe";
while 1 ;
$WinList= WinList()
$count=0
for $i=1 to UBound($WinList)-1
if StringInStr($WinList[$i][0],'Chrome') then
$count+=1
EndIf
next
if $count >=12 Then
ProcessClose($appName);
Sleep($delayTask);
EndIf
WEnd.

===

Làm sao để map 2 file thành 1 file autoit ạ
Mong ae hỗ t rợ
 
2 file này check điều kiện khác nhau. mình k rõ là 2 file này bác muốn dùng nó chạy check song song hay là điều kiện file 1 liên quan đến file 2. nếu muốn nó chạy cùng lúc thì đơn giản.
 
Đúng rồi bác ạ. e chỉ muốn nó check song song liên tục, hoặc check lần lượt hết cái 1 tới cái 2. chứ 2 cái đó ko liên quan gi nhau ạ
 

Announcements

Today's birthdays

Forum statistics

Threads
421,422
Messages
7,110,240
Members
173,593
Latest member
chuvivadientichh

Most viewed of week

Most discussed of week

Most viewed of week

Most discussed of week

Back
Top Bottom