getting error in set oAutoIt = WScript.CreateObject("AutoItX3.Control")
#1
Posted 26 May 2012 - 04:10 PM
when i executed the below mentioned code in editor
set oAutoIt = WScript.CreateObject("AutoItX3.Control")
pid=oAutoIt.ProcessExists("notepad.exe")
If (pid) Then
MsgBox(0,"ashish","PRocess Exists")
Else
MsgBox(0,"ashish","Process does not open")
EndIf
error
error in line: set oAutoIt = WScript.CreateObject("AutoItX3.Control")
I m getting error "process_mgmt.au3 (4) : ==> Missing separator character after keyword.:"
Please tell me where i m incorrect
Thanks,
Ashish
#2
Posted 26 May 2012 - 04:32 PM
Can you please describe what you want to to.
BTW: You posted in the wrong forum. This kind of thread belongs to the "Help and Support" forum.
UDFs:
Active Directory (2012-10-12 - Version 1.3.0.0 released) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2012-10-07 - Version 0.9.0.0 released) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2013-01-21 - Version 0.3.1.1 released) - Download - General Help & Support - Example Scripts
WordEX (2012-12-29 - Version 1.3 released) - Download
ExcelEX (2013-05-11 - Alpha 4 released) - Download
#3
Posted 27 May 2012 - 01:39 PM
Edit: Wait are you trying to compile that source in AutoIt? That makes even less sense.
Edited by Richard Robertson, 27 May 2012 - 01:40 PM.
#4
Posted 28 May 2012 - 04:52 PM
I am not compiling my code I m just executing by pressing F5
Thanks for the replies Water, and Richard
#5
Posted 28 May 2012 - 04:57 PM
UDFs:
Active Directory (2012-10-12 - Version 1.3.0.0 released) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2012-10-07 - Version 0.9.0.0 released) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2013-01-21 - Version 0.3.1.1 released) - Download - General Help & Support - Example Scripts
WordEX (2012-12-29 - Version 1.3 released) - Download
ExcelEX (2013-05-11 - Alpha 4 released) - Download
#6
Posted 28 May 2012 - 05:34 PM
Dim $oShell
$oShell=ProcessExists("notepad.exe")
If ($oShell) Then
MsgBox(0,"ashish","Process Exists")
Else
MsgBox(0,"ashish","Process does not open")
EndIf
I executed and it is working.
Thanks to Dear Water and Richard for sincere n quick reply
Regards,
Ashish
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users




