Guest distel Posted September 12, 2004 Share Posted September 12, 2004 Func manaregain() If PixelGetColor (59, 720) = 0x8C8A8C Then Send ({F4}); Sleep(2000); Send ({F3}); Sleep(10000); EndIf EndFunc ok problem is that its running on some computers and on others not, is there a reason 4 it, or not ? Link to comment Share on other sites More sharing options...
Matt @ MPCS Posted September 12, 2004 Share Posted September 12, 2004 (edited) Func manaregain() If PixelGetColor (59, 720) = 0x8C8A8C Then Send ({F4}); Sleep(2000); Send ({F3}); Sleep(10000); EndIf EndFunc ok problem is that its running on some computers and on others not, is there a reason 4 it, or not ? <{POST_SNAPBACK}>It appears to me that at that location, on some computers the pixel color is not 0x8C8A8C so it doesn't execute. Is the screen resolution different for the computers that it doesn't work on compared to the computers it does? Have you tried adding temporary debugging code to see what the color is at that location at that time? Try providing an else that sends a message box to the screen to make sure it is even entering the function. Without knowing the circumstances where it does and doesn't work... or even knowing what you are trying to acomplish with this function there is no way for us to help you fix it. *** Matt @ MPCS Edited September 12, 2004 by Matt @ MPCS Link to comment Share on other sites More sharing options...
w_sp8er Posted September 12, 2004 Share Posted September 12, 2004 Func manaregain() If PixelGetColor (59, 720) = "0x8C8A8C" Then Send ("{F4}") Sleep(2000) Send ("{F3}") Sleep(10000) EndIf EndFunc Link to comment Share on other sites More sharing options...
Administrators Jon Posted September 12, 2004 Administrators Share Posted September 12, 2004 Func manaregain() If PixelGetColor (59, 720) = 0x8C8A8C Then Send ({F4}); Sleep(2000); Send ({F3}); Sleep(10000); EndIf EndFunc ok problem is that its running on some computers and on others not, is there a reason 4 it, or not ? If people are running the script uncompiled then make sure you are all using the same version - the way colours are represented is different in 3.0.102 Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ 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