bhunji Posted October 20, 2005 Posted October 20, 2005 Hi, I'm having some random results with my McAfee script and am wondering if there is a more consistant way to do it. I am planning to have a login script call this process to help keep users machines up to date. The problem I have is sometimes when I run the script it either doesn't make the second screen the active window or it brings up the wrong tab, and thus the update doesn't run. here is my script: SplashTextOn, 300, 100, AutoIt, Please do not touch the keyboard or mouse until the updates have finished. Sleep, 2000 Run,C:\\Progra~1\\Networ~1\\VirusScan\\mcconsol.exe WinWaitActive,VirusScan Console Send,{DOWN} Sleep, 500 Send,a Sleep, 250 Send,{ENTER} Sleep, 250 send,n Sleep, 2500 WinClose,VirusScan AutoUpdate Properties WinClose,VirusScan Console Any help would be appreciated...
Valuater Posted October 20, 2005 Posted October 20, 2005 According to your post you are a newbie... I strongly suggest you upgrade to Autoit 3 ( you have Autoit 2) there are alot more programers and help for the updated and more efficient Autoit 3 8)
bhunji Posted October 20, 2005 Author Posted October 20, 2005 Can autoit 3 automate gui processes to? I've only used version 2 so far... I have 3 installed but I don't know to much about programming right now and was hoping there might just be a switch or something I was missing in my version 2 script...
w0uter Posted October 20, 2005 Posted October 20, 2005 v3 can use ControlXXX functions. wich are much more reliable then Send. My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll
Recommended Posts