brodie28 Posted September 21, 2006 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....
CoderDunn Posted September 21, 2006 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
brodie28 Posted September 21, 2006 Author Posted September 21, 2006 What I mean is the autoit window info tool doesnt detect any controls.
CoderDunn Posted September 21, 2006 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
Jabberwock Posted September 21, 2006 Posted September 21, 2006 ControlSend("Untitled", "", "Edit1", "This is a line of text in the notepad window")
CoderDunn Posted September 21, 2006 Posted September 21, 2006 Control send wont work ... as there is no standard windows control to send it to.
MHz Posted September 21, 2006 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
Jabberwock Posted September 21, 2006 Posted September 21, 2006 care to give an example of what he's trying to send this text to?
CoderDunn Posted September 21, 2006 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
MHz Posted September 21, 2006 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')
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