mary Posted February 25, 2009 Share Posted February 25, 2009 (edited) Hi ! as you know all compiled autoit scripts have a hiden main window with an edit control. is the a way to get handle of it ? thanks Edited February 25, 2009 by mary Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted February 25, 2009 Moderators Share Posted February 25, 2009 Hi !as you know all compiled autoit scripts have a hiden main window with an edit control. is the a way to get handle of it ?thanksWhy would you need it? Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
mary Posted February 25, 2009 Author Share Posted February 25, 2009 Why would you need it?why ?? Why not lol ...many reasons:-Knowledge;-use it to store same text...-to communicate with other script...(better than registry, ini, TCP..etc)... Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted February 25, 2009 Moderators Share Posted February 25, 2009 why ?? Why not lol ...many reasons:-Knowledge;-use it to store same text...-to communicate with other script...(better than registry, ini, TCP..etc)...How would you use the main autoit window (the hidden one) to communicate?Don't get me wrong, it's trivial to get, and if you thought about it, you'd have it in no time. I just think the reasons you gave are pretty lame. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
mary Posted February 25, 2009 Author Share Posted February 25, 2009 (edited) How would you use the main autoit window (the hidden one) to communicate? Don't get me wrong, it's trivial to get, and if you thought about it, you'd have it in no time. I just think the reasons you gave are pretty lame. ok i get it. thanks ! i use the edit control to store some values (variables) and others script can read write there (more fast than registry our ini or tcp...) just as a shared memory but it is less complecate for me $hWnd = _GetHwndFromPID(@AutoItPID) Edited February 25, 2009 by mary Link to comment Share on other sites More sharing options...
jvanegmond Posted February 25, 2009 Share Posted February 25, 2009 SmOke_N, I can't think of any reasons not to ever want the window handle. Care to elaborate? github.com/jvanegmond Link to comment Share on other sites More sharing options...
Richard Robertson Posted February 25, 2009 Share Posted February 25, 2009 I think he's complaining that the programmer already has access to it. WinGetHandle(AutoItWinGetTitle()) Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted February 25, 2009 Moderators Share Posted February 25, 2009 SmOke_N, I can't think of any reasons not to ever want the window handle. Care to elaborate?I'm not speaking of the handle itself. I'm speaking of why you need the AutoIt hidden window handle specifically.The idea of using it to intercommunicate doesn't seem like a reasonable request to me. Using SendMessage() to that window may have undesirable results.It's much easier to use your own GUI that you can control for the situation IMHO. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
jvanegmond Posted February 25, 2009 Share Posted February 25, 2009 I see. I'm just curious what can be done with the AutoIt window that normally people tend to avoid for a reason yet unknown. github.com/jvanegmond Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted February 25, 2009 Moderators Share Posted February 25, 2009 I see. I'm just curious what can be done with the AutoIt window that normally people tend to avoid for a reason yet unknown.Well, I know I've locked up a few apps messing with it in the past myself . Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. 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