Register for your free account! | Forgot your password?

You last visited: Today at 19:47

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



new to autoit

Discussion on new to autoit within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2006
Posts: 34
Received Thanks: 12
new to autoit

Hello i have a simple question i just started playing with autoit and im having a problem already this is the very simple script i have so far

Run("notepad.exe")
WinWaitActive("Untitled - Notepad")
Send("Whatever.")
WinClose("Untitled - Notepad")
WinWaitActive("Notepad", "Do you want to save")
Send("!n")
i got it to work but i can not get it to close. is ! not the cmd for the ALT key?
thanks for any help.
LivingDead is offline  
Old 09/01/2008, 20:50   #2
 
xxcoderxx's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 18
Received Thanks: 19
1) Check that the confirmation msg window is the same as ur title
2) if u think that everything is correct and u donno where is the error then i will tell u, u need to try to get focus on the window that u will send "!n" to. do that by WinActivate(),
that will be the code u need.
Quote:
Run("notepad.exe")
WinWaitActive("Untitled - Notepad")
Send("Whatever.")
WinClose("Untitled - Notepad")
WinWaitActive("Notepad", "Do you want to save")
WinActivate("Notepad", "Do you want to save")
Send("!n")
xxcoderxx is offline  
Thanks
1 User
Old 09/02/2008, 03:51   #3
 
elite*gold: 0
Join Date: Mar 2006
Posts: 34
Received Thanks: 12
thanks
LivingDead is offline  
Reply




All times are GMT +1. The time now is 19:48.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.