Jump to content

need help with simpel function


Guest distel
 Share

Recommended Posts

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

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 by Matt @ MPCS
Link to comment
Share on other sites

  • Administrators

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
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...