Nino Posted April 7, 2007 Share Posted April 7, 2007 Hello, I'm trying to send text to a minimized/hidden notepad. Is this possible? I don't have much done, but I don't know where to really go from here: WinWaitActive("note.txt - Notepad","") Sleep(2000) WinSetState ( "note.txt - Notepad", "", @SW_HIDE) Is it possible to use the Send command but maybe have it send to a non active window? Many thanks for any help, Nino Link to comment Share on other sites More sharing options...
Developers Jos Posted April 7, 2007 Developers Share Posted April 7, 2007 Look at the Control???? commands in the helpfile.... 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...
Nino Posted April 7, 2007 Author Share Posted April 7, 2007 What if the program has no Control ID? Leaving it blank results in an error for me. Link to comment Share on other sites More sharing options...
GaryFrost Posted April 8, 2007 Share Posted April 8, 2007 (edited) #include <GUIConstants.au3> opt('MustDeclareVars', 1) Dim $s_Text = "This is a test" Run("Notepad") WinWaitActive("Untitled - Notepad") Sleep(2000) WinSetState ( "Untitled - Notepad", "", @SW_HIDE) Sleep ( 1000 ) ControlSetText("Untitled - Notepad","", "Edit1", $s_Text) Sleep ( 1000 ) WinSetState ( "Untitled - Notepad", "", @SW_SHOW) Edited April 8, 2007 by gafrost SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
Nino Posted April 8, 2007 Author Share Posted April 8, 2007 Ya, I figured that part out but now i'm working on doing it for a game - World of Warcraft. But the only problem is that when I try and find a Control ID/Class name, nothing shows up, that whole portion is empty. I thought I could also find it by doing a CTRL+ALT+DELETE and finding the Control ID through the list of processes, but that value didn't work. Any ideas? Link to comment Share on other sites More sharing options...
Bert Posted April 8, 2007 Share Posted April 8, 2007 It always seems like everyone and their brother is trying to make a bot for that game. DO a search for WOW, and you should find everything you need. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
BrettF Posted April 8, 2007 Share Posted April 8, 2007 It always seems like everyone and their brother is trying to make a bot for that game. DO a search for WOW, and you should find everything you need.I can't see whats so good about it.... Mind you I haven't tried it so I cant talk. Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
xcal Posted April 8, 2007 Share Posted April 8, 2007 It's actually quite a good game. I couldn't imagine what you'd want to use Autoit for, though, unless it was something bad. WoW has some powerful scripting options already built in to it. How To Ask Questions The Smart Way 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