tempo Posted September 18, 2011 Share Posted September 18, 2011 Hi All, I'm trying to make my first script work, here is what I have: GUICreate("Test") WinActivate("Untitled - Notepad") Send("8") When I run it by double clicking the script icon, Notepad window is activated and "8" is printed in it, but GUI window doesn't appear and I don't see any error messages. Can anyone please tell me what I'm doing wrong? Thanks! Link to comment Share on other sites More sharing options...
Developers Jos Posted September 18, 2011 Developers Share Posted September 18, 2011 Open the Helpfile and look at the example for the GUICreate and you will see that you are missing some code there. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
tempo Posted September 18, 2011 Author Share Posted September 18, 2011 Fixed it, thanks! Link to comment Share on other sites More sharing options...
MrVietA2 Posted September 18, 2011 Share Posted September 18, 2011 #include <GuiConstants.au3> #include <WindowsConstants.au3> GUICreate("Test") Run("Notepad") WinWaitActive("Untitled - Notepad") Send("8") GUISetState(@SW_SHOW) While 1 $msg = GUIGetMsg() Switch $msg Case $GUI_EVENT_CLOSE ExitLoop EndSwitch WEnd Link to comment Share on other sites More sharing options...
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