kindalazy Posted October 16, 2011 Share Posted October 16, 2011 (edited) I found this sample on the site: If Not WinActive("Untitled - Notepad","") Then WinActivate("Untitled - Notepad","") WinSetState("Untitled - Notepad","",@SW_HIDE) If Not WinActive("Untitled - Notepad","") Then WinActivate("Untitled - Notepad","") ControlSend("Untitled - Notepad","","","{CTRLDOWN}a{CTRLUP}Some{SPACE}text.") sleep(2000) MouseMove(491,408) MouseDown("left") MouseUp("left") If Not WinActive("Untitled - Notepad","") Then WinActivate("Untitled - Notepad","") WinSetState("Untitled - Notepad","",@SW_SHOW) What line would I need to apply it to in my code (sorry I'm a novice, I've been borrowing a lot). Also, it functions perfectly the way I need it to, but if you guys have any suggestions on how to clean up my code, all help will be greatly appreciated. Thanks <removed> Edited October 17, 2011 by Valik Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted October 16, 2011 Share Posted October 16, 2011 Hi and Welcome to the forums!! Please read the Forum Rules and then punch yourself in the face for not reading them before posting. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
Valik Posted October 17, 2011 Share Posted October 17, 2011 Hi and Welcome to the forums!! Please read the Forum Rules and then punch yourself in the face for not reading them before posting.I have nothing to add to this superb comment except the obligatory topic lock. Link to comment Share on other sites More sharing options...
Recommended Posts