tempo 0 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! Share this post Link to post Share on other sites
Jos 2,208 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. Share this post Link to post Share on other sites
tempo 0 Posted September 18, 2011 Fixed it, thanks! Share this post Link to post Share on other sites
MrVietA2 0 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 Share this post Link to post Share on other sites