WilliamasKumeliukas Posted March 6, 2014 Share Posted March 6, 2014 Hi, Is it possible to find an specific checkbox in an screen region or in a active windows? if it is, wich function I have to use? Best Regards, AutomateLover Sorry if it's quite challenging to understand me sometimes, there is 2 possible reasons to this: Spoiler #1. I am a native French speaker and learned English mainly from chatting with others players in online games. #2. I have a developmental disorder mainly affecting my social abilities, way of thinking, understanding stuffs and explaining myself in which it can seem ironic of seeing me here, but I been working on getting better every days for an dozens of years now ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Do not like my dirty code? It's fine, but in my opinion, the dirty codes are unique and I believe it's a good glimpse of how the mind of the person who wrote it thinks, and that, that's what I call a psychological deduction step by step in all its splendor. ~WilliamasKumeliukas Link to comment Share on other sites More sharing options...
Valiante Posted March 6, 2014 Share Posted March 6, 2014 Hi AutomateLover, It depends what you mean by "find" and what information you already know about the control. If you already know the control handle, this is easy. If you know its relative xy position in the window, it can also be done. Otherwise things get a little trickier. However, in order to help you, we'll need a little more information about what it is you're trying to achieve, what you have tried so far, etc. Help us to help you Rgds, Val. Link to comment Share on other sites More sharing options...
WilliamasKumeliukas Posted March 6, 2014 Author Share Posted March 6, 2014 Hi AutomateLover, It depends what you mean by "find" well, I am refering to the Find function used into Java scripts wich i most of the times used on another script maker called: "Sikuli" Sorry if it's quite challenging to understand me sometimes, there is 2 possible reasons to this: Spoiler #1. I am a native French speaker and learned English mainly from chatting with others players in online games. #2. I have a developmental disorder mainly affecting my social abilities, way of thinking, understanding stuffs and explaining myself in which it can seem ironic of seeing me here, but I been working on getting better every days for an dozens of years now ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Do not like my dirty code? It's fine, but in my opinion, the dirty codes are unique and I believe it's a good glimpse of how the mind of the person who wrote it thinks, and that, that's what I call a psychological deduction step by step in all its splendor. ~WilliamasKumeliukas Link to comment Share on other sites More sharing options...
Valiante Posted March 6, 2014 Share Posted March 6, 2014 Hi AutomateLover, Sorry, I'm not familiar with "Sikuli". How about the rest of my post? What information do you already know about the control in which to "find" it? Rgds, Val. Link to comment Share on other sites More sharing options...
WilliamasKumeliukas Posted March 6, 2014 Author Share Posted March 6, 2014 since the function name of "Find" is different I don't know at all wich function does the same. I'll give an example of what I was doing when i used Find function on sikuli. Example: Find autoitv3.exe if exists then: run autoitv3.exe else: exit(1) regards, AutomateLover Sorry if it's quite challenging to understand me sometimes, there is 2 possible reasons to this: Spoiler #1. I am a native French speaker and learned English mainly from chatting with others players in online games. #2. I have a developmental disorder mainly affecting my social abilities, way of thinking, understanding stuffs and explaining myself in which it can seem ironic of seeing me here, but I been working on getting better every days for an dozens of years now ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Do not like my dirty code? It's fine, but in my opinion, the dirty codes are unique and I believe it's a good glimpse of how the mind of the person who wrote it thinks, and that, that's what I call a psychological deduction step by step in all its splendor. ~WilliamasKumeliukas Link to comment Share on other sites More sharing options...
Valiante Posted March 6, 2014 Share Posted March 6, 2014 (edited) Hi AutomateLover, I'm sorry, that doesn't really answer my question. I'm trying to ascertain what you already know about the checkbox control in order to be able to find it. What information do you already have? Rgds, Val. Edited March 6, 2014 by Valiante Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted March 6, 2014 Moderators Share Posted March 6, 2014 This: Example: Find autoitv3.exe if exists then: run autoitv3.exe else: exit(1) would be something like this: If FileExists(@ScriptDir & "\autoitv3.exe") Then Run("autoitv3.exe") Else SetError(1, 1) EndIf But I do not see what this has to do with finding a checkbox? Please spell out exactly what you are trying to do, including the application you're trying to find the checkbox in. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
WilliamasKumeliukas Posted March 6, 2014 Author Share Posted March 6, 2014 Well, sorry i explained pretty much outside of the subject... by the way I want to find to find an specific checkbox ( with x,y position ) and verify if it is checked or not, if not then check it then continue next line. Sorry if it's quite challenging to understand me sometimes, there is 2 possible reasons to this: Spoiler #1. I am a native French speaker and learned English mainly from chatting with others players in online games. #2. I have a developmental disorder mainly affecting my social abilities, way of thinking, understanding stuffs and explaining myself in which it can seem ironic of seeing me here, but I been working on getting better every days for an dozens of years now ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Do not like my dirty code? It's fine, but in my opinion, the dirty codes are unique and I believe it's a good glimpse of how the mind of the person who wrote it thinks, and that, that's what I call a psychological deduction step by step in all its splendor. ~WilliamasKumeliukas Link to comment Share on other sites More sharing options...
Valiante Posted March 6, 2014 Share Posted March 6, 2014 Ok, so the answer to my question is: You know the location of the control. Great! Now we can look for it in the window.. If you check out >this thread (which a quick search would have found) you can see this has been asked and answered before, utilising _WinAPI_WindowFromPoint. Best of luck. Val. Link to comment Share on other sites More sharing options...
WilliamasKumeliukas Posted March 6, 2014 Author Share Posted March 6, 2014 I'm really not an fan of Silent tasks because I want to see at ANYTIME the progress since I really want to make the script act like an human because i'll make several scripts for most of my repetitive tasks I'm doing everydays. Sorry if it's quite challenging to understand me sometimes, there is 2 possible reasons to this: Spoiler #1. I am a native French speaker and learned English mainly from chatting with others players in online games. #2. I have a developmental disorder mainly affecting my social abilities, way of thinking, understanding stuffs and explaining myself in which it can seem ironic of seeing me here, but I been working on getting better every days for an dozens of years now ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Do not like my dirty code? It's fine, but in my opinion, the dirty codes are unique and I believe it's a good glimpse of how the mind of the person who wrote it thinks, and that, that's what I call a psychological deduction step by step in all its splendor. ~WilliamasKumeliukas Link to comment Share on other sites More sharing options...
Valiante Posted March 6, 2014 Share Posted March 6, 2014 Ok. I'm really not sure what you're referring to here, but the links I've posted give you ample examples of how to achieve what you've asked.. how to find a checkbox using its relative (x, y) position in the window. 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