brodie28 Posted September 21, 2006 Share Posted September 21, 2006 How is it done? I want to have this window minimised while autoit sends keystrokes into it. There are no controls or anything.... Link to comment Share on other sites More sharing options...
CoderDunn Posted September 21, 2006 Share Posted September 21, 2006 I don't think it possible with AutoIt's built in functions. If there are no controls, why do you want to send keystrokes to it? A screenshot of the window may help. Hallman Link to comment Share on other sites More sharing options...
brodie28 Posted September 21, 2006 Author Share Posted September 21, 2006 What I mean is the autoit window info tool doesnt detect any controls. Link to comment Share on other sites More sharing options...
CoderDunn Posted September 21, 2006 Share Posted September 21, 2006 Well then I don't think it's possible with AutoIt's current functions. Anyone correct me if I'm wrong. Hallman Link to comment Share on other sites More sharing options...
Jabberwock Posted September 21, 2006 Share Posted September 21, 2006 ControlSend("Untitled", "", "Edit1", "This is a line of text in the notepad window") Link to comment Share on other sites More sharing options...
CoderDunn Posted September 21, 2006 Share Posted September 21, 2006 Control send wont work ... as there is no standard windows control to send it to. Link to comment Share on other sites More sharing options...
MHz Posted September 21, 2006 Share Posted September 21, 2006 (edited) What I mean is the autoit window info tool doesnt detect any controls.AutoIt Forum members detect a lack of information. Edit:@Hallman, A window is one big control in itself. Edited September 21, 2006 by MHz Link to comment Share on other sites More sharing options...
Jabberwock Posted September 21, 2006 Share Posted September 21, 2006 care to give an example of what he's trying to send this text to? Link to comment Share on other sites More sharing options...
CoderDunn Posted September 21, 2006 Share Posted September 21, 2006 (edited) @Hallman, A window is one big control in itself.Well, in that case, what do you use as a control ID? I did a test with notepad and using the notepad window handel as the control ID but it didn't work ... Edited September 21, 2006 by Hallman Link to comment Share on other sites More sharing options...
MHz Posted September 21, 2006 Share Posted September 21, 2006 Well, in that case, what do you use as a control ID? I did a test with notepad and using the notepad window handel as the control ID but it didn't work ...I believe the logic is that Notepad does have controls, notably "Edit1". If you set no ControlID, such as "", then there is nowhere on Notepad to ControlSend the string. A cmd prompt in comparison has no ControlID's to use other then the window itself, so ControlSend will send the string to the window (control). ; Title may vary dependant on system $title = 'C:\WINDOWS' Run('CMD') WinWait($title) ControlSend($title, '', '', 'string of text') Link to comment Share on other sites More sharing options...
brodie28 Posted September 21, 2006 Author Share Posted September 21, 2006 Worked. Thanks alot. 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