JohnOne Posted August 9, 2011 Posted August 9, 2011 Looks like you might end up having to perform a pixelgetcolor() on the button. Dont forget PixelCoordMode if you go down that road. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
wakillon Posted August 9, 2011 Posted August 9, 2011 The state is always 0.There is another way to see if the button is activated.The button will color green if it's activated.Only problem then is, you can only see if the button is programmed by the text at the button.if you know ControlID try ControlgetPos with PixelgetColor. AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts
wakillon Posted August 9, 2011 Posted August 9, 2011 Something like this $_WinH = WinWait ( "Statics Control", "" ) $pos = ControlGetPos ( "Statics Control", "", "[CLASS:TStaticButton; INSTANCE:20]" ) PixelGetColor ( $pos[0]+ $pos[2]/2, $pos[1] + $pos[3]/2, $_WinH ) AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts
Erik. Posted August 9, 2011 Author Posted August 9, 2011 Weird, It can get the size of the button but not the position. The position are 2,2 that is not possible. I little problem, hard to find and fix
JohnOne Posted August 9, 2011 Posted August 9, 2011 How about a small pic of the window, or even the name of the application if its available for download. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
wakillon Posted August 9, 2011 Posted August 9, 2011 And this $_WinH = WinWait ( "Statics Control", "" ) $pos = ControlGetPos ( $_WinH, "", "TStaticButton20" ) $_Color = PixelGetColor ( $pos[0]+ $pos[2]/2, $pos[1] + $pos[3]/2, $_WinH ) MsgBox ( 0, "The hex color is", Hex ( $_Color, 6 ) ) AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts
Erik. Posted August 9, 2011 Author Posted August 9, 2011 Thats no problem, you can download the program here: http://www.martin.com/service/showpage.asp?id=4340&tit=Lightjockey+2+Software+%28without+Martin+One+Key%29 After installing you need to open the static control gui. In that gui you have 20 static buttons, would like to get the name of each button and if it's active. I little problem, hard to find and fix
Erik. Posted August 10, 2011 Author Posted August 10, 2011 Is it hard to get information out the program? I little problem, hard to find and fix
Erik. Posted August 11, 2011 Author Posted August 11, 2011 No reaction anymore? I little problem, hard to find and fix
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