RSamel Posted March 26, 2007 Posted March 26, 2007 Hi all, I'm trying to make a few scripts that use winwaitactive, winactivate. The problem I have is some works and anothers not. I see the autoit is running in the taskbar, but doesn't respond to the windows. Thank you========================== NetMeeting =======================================BlockInput(1); Run the NetMeetingRun("C:\Program Files\NetMeeting\conf.exe"); Wait for the wizard of the NetMeeting become active - it is titled "NetMeeting" on English systemsWinActivate("NetMeeting") <=== The problem is hereWinWaitActive("NetMeeting"); Now that the NetMeeting window is active type your SettingsOpt("SendKeyDelay", 50)Send("^{TAB}"); Enter information about yourself for use with NetMeeting.WinWaitActive("NetMeeting")$var = "firstname"send($var) Send(@TAB)$var = "lastname"send($var) Send(@TAB)$var = "firstname.lastnamesend($var) Send("@domain.com")Send(@TAB)Send("My Company")Send("^{TAB}"); A directory server lists people you can call using NetMeeting. WinWaitActive("NetMeeting")Send("^{TAB}"); Specify the speed of your connection to the network you will be using...WinWaitActive("NetMeeting")Send("L")Send("^{TAB}"); Put or not a shortcut to NetMeeting on my desktop and my Quick Launch Bar.WinWaitActive("NetMeeting")Send("{-}")Send(@TAB)Send("{-}")Send("^{TAB}"); Audio Tunning Wizard. This wizard will help you tune your audio settings.WinWaitActive("Audio Tuning Wizard")Send("^{TAB}"); Audio Tunning Wizard. Testing your speakers.WinWaitActive("Audio Tuning Wizard")ControlClick("Audio Tuning Wizard", "&Test", 1001)WinWaitNotActive("Audio Tuning Wizard", "", 03)Send("^{TAB}"); Audio Tunning Wizard. The wizard will make sure that the microphone is working...WinWaitActive("Audio Tuning Wizard")Send("^{TAB}"); Audio Tunning Wizard. You have tuned your settings. WinWaitActive("Audio Tuning Wizard")Send("^{TAB}"); Audio Tunning Wizard. The wizard will make sure that the microphone is working...WinWaitActive("Audio Tuning Wizard")Send("^{TAB}"); NetMeeting is configured. WinWaitActive("Audio Tuning Wizard")Send("{ENTER}"); Now wait to close before continuingWinWaitActive("NetMeeting")WinClose("NetMeeting", ""); Finished!BlockInput(0)
herewasplato Posted March 26, 2007 Posted March 26, 2007 (edited) try:WinWait("NetMeeting") WinActivate("NetMeeting") WinWaitActive("NetMeeting")You need the script to wait for the window before it attempts to make it active.........MSP Edit: Welcome to the forum. Edited March 26, 2007 by herewasplato [size="1"][font="Arial"].[u].[/u][/font][/size]
amokoura Posted March 26, 2007 Posted March 26, 2007 HINT: WinWait("ReallyLongWindowTitle") WinActivate("ReallyLongWindowTitle") WinWaitActive("ReallyLongWindowTitle")
herewasplato Posted March 26, 2007 Posted March 26, 2007 HINT: WinWait("ReallyLongWindowTitle") WinActivate("ReallyLongWindowTitle") WinWaitActive("ReallyLongWindowTitle")oÝ÷ ÙÆ§mæ®¶sbvåvBgV÷Cµ&VÆÇÆöæuvæF÷uFFÆRgV÷C²¥vä7FfFRgV÷C¶Æ7BgV÷C²¥våvD7FfRgV÷C¶Æ7BgV÷C²Yes, thanks for that reminder - but only with AutoItSetOption("WinTitleMatchMode", 4) or Opt("WinTitleMatchMode", 4) ...I think... [size="1"][font="Arial"].[u].[/u][/font][/size]
KegRaider Posted March 26, 2007 Posted March 26, 2007 Hi RSamel, This is what i use in ALL my winwiat scripts and seems to work without fail. Run(@ComSpec & " /c " & 'ncpa.cpl', "C:\WINDOWS\system32\dllcache", @SW_HIDE) sleep (1000) WinWait ( 'Network Connections' ) if NOT WinActive ( 'Network Connections', '' ) then WinActivate ( 'Network Connections' ) endif WinWaitActive ( 'Network Connections' )
herewasplato Posted March 27, 2007 Posted March 27, 2007 Thank you Everyone!!! It is working now!You are welcome... hang around. [size="1"][font="Arial"].[u].[/u][/font][/size]
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now