Jump to content

Krustbox

Members
  • Posts

    8
  • Joined

  • Last visited

Krustbox's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Thank you very much for taking the time to post these, I should be able to piece together a working script from all of this to suit my need. Thanks again I'll post an update or question as I go along
  2. So I'm trying to build a function into my script which will verify someone's copy of the program online somehow. I first looked up a MySQL UDF however I see this requires a driver to be installed, and I assume that the user themself would also have to install this driver on their own computer? That's way too much of a hassle, so i'm wondering if there is a way to have an autoit script connect to a php script in any way and use the PHP to do the MySQL verification process, then read the result back into the autoit script? I don't need a complete answer just wondering if this is possible and if so does anyone know of any examples of this? I've been searching for a while now but haven't come across anything. It should also be noted that I'm looking for this to be a completely behind the scenes type of verification, within the script itself only and not having a browser open or anything like that. Thanks. As a simple example all i need is the autoit script to connect to example.com/example.php, and this page displays a simple "yes" or "no" text on a blank page which the script can then read into a variable for use. Hope this clears things up.
  3. I had a quick question about how the if statement works. Say i want to do something like if $a=1 and ($b=2 OR $b=3). Would that statement as is work? Or would it need to be "if $a=1 and $b=2 OR $a=1 and $b=3"? In other words, when trying to use BOTH "and" as well as "or" in the same if statement, what is the proper way to break it down and lay it out? Is there a nice and short way of doing it?
  4. This sounds like it could be my problem, because it's definitely a pixel problem with pixelgetcolor and pixelchecksum. I m not using any themes though. All i know is it is 100% for sure a 64bit vs 32bit issue. And like i said compiling or running scripts in either version both do not work properly on windows 7, but work perfectly on 32-bit vista.
  5. I've actually been able to determine that it is because of 32-bit vs 64-bit operating systems. It works on all 32-bit systems but fails to work properly on 64-bit system. I have no idea how to fix this, i've tried compiling and running the script in both modes and it makes no difference. It will not work in 64-bit. Any ideas?
  6. So i made a script that includes a reactionary type of thing, using functions like pixelchecksum or pixelgetcolor inside loops with sleep(50) or so to free up some processing power. The script works flawlessly as designed on MY computer, however I've tested the exact same script on TWO other computers and have the same problem on both. The script is not reacting as precisely on the other computers to changes in pixels with pixelchecksum or finding colors with pixelgetcolor. Even though i use sleep(50) inside my loops it's taking like a full second. So when a color appears on my computer it will take 50 milliseconds to notice it, but on the other computers it takes like an entire second, as if i was using a larger sleep() than i have in there, which is 50. I'm clueless at this point. Anyone had this problem before with scripts working on the computer that they built the script on, but not on others? It is for sure NOT anything to do with resolution sizes, and both of the other computers are actually faster than mine, so it's not a processor issue. As far as i can tell everything is the same and should work the same. Any help is appreciated, thanks. EDIT: It's 100% for sure a 64bit vs 32bit problem. Works fine on vista 32-bit machines, does not work on windows 7 or vista 64-bit machines.
  7. Well all the colors are based off the same program, no wallpaper involved. both computers using 32 bit color and everything. I don't see why the color should be any different. it's the exact same program and color pixel location.
  8. I made myself a program which is heavily based on checking pixel colors in different locations, and when i tried it on another computer it doesn't work, as if the colors on the other computer aren't the same? What is the cause of this? Is there a better way of programming something instead of using pixelgetcolor?
×
×
  • Create New...