Jump to content

Bonchen

Members
  • Posts

    10
  • Joined

  • Last visited

About Bonchen

  • Birthday 05/24/1992

Profile Information

  • Location
    Sweden

Bonchen's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. You're an angel! Thank you.
  2. Hi! I'm really new at this and I need some help translating a php-code, if it's possible. $q = "SELECT id, name, kat FROM prod WHERE kat = '$kat' ORDER BY 'name'"; $r = mysql_query($q); while (list($id, $name, $kat) = mysql_fetch_array($r)) { ;---code here } I would really appreciate if someone could look into this.
  3. 5,8 Is The coordinate of the top left corner of World of Warcraft. 1277,968 Is The coordinate of the bottom right corner of World of Warcraft. PixelSearch searches after the color between these two coordinates. If you want the script to use other coordinates you can use this scritp: #Include <misc.au3> $Dll = DllOpen("User32.Dll") HotKeySet("{ESC}","qt") While 1 IF _IsPressed("01", $Dll) Then $pos = MouseGetPos() MsgBox(0, "Mouse x,y:", $pos[0] & "," & $pos[1]) EndIf WEnd DllClose($Dll) Func qt() Exit EndFunc This works exactly as the Color script.
  4. First you need to run the color script i gave you. Then go ingame and press mouse1 on the red color. When a window called "The decimal color is" pops up, you go to you'r script and type in the numbers that are shown in the popup window on this line: $Color =. So the code will look like this. $szTitle = "World of Warcraft" WinWaitActive($szTitle);Wait for WoW window WinMove($szTitle, "", 0, 0, 1570, 1000);Move and resize WoW window $Color = TheNumbersYouGot While 1 = 1;While always True Sleep(random(1000, 2000, 1)) $c=PixelSearch(5,8,1277,968,$Color) If IsArray($c) Then MouseClick("Left",$c[0], $c[1],1,0) Sleep(random(1000, 2000, 1)) Send("{SPACE}") WEnd I hope you understand. I'm not very good at explainig. Oh and by the way, the script I posted should work.
  5. The MsgBoxes are there to help you, however you can remove all the MsgBoxes except MsgBox(0,"The decmial color is", $var) and MsgBox(0,"The hex color is", Hex($var, 6)), Because you need the color. Oh and by the way, you can save this script as "Color.au3" I think you can but the PixelSearch whereever you want.
  6. #Include <misc.au3> $Dll = DllOpen("User32.Dll") HotKeySet("{ESC}","qt") MsgBox(0,"HowTo","Hold your mouse over the color you want, then click mouse1") While 1 IF _IsPressed("01", $Dll) Then $pos = MouseGetPos() $var = PixelGetColor( $pos[0] , $pos[1] ) MsgBox(0,"The decmial color is", $var) MsgBox(0,"The hex color is", Hex($var, 6)) MsgBox(0,"Exit","Press ESC if you are done") EndIf WEnd DllClose($Dll) Func qt() Exit EndFunc This Script will give you the HEX and Decimal of the color. Sleep(1000) $c=PixelSearch(7,77,1245,922,4936024) If IsArray($c) Then MouseMove($c[0], $c[1]) This script will Move the mouse to the selected color. For more info lookup PixelSearch in the help file.
  7. $Coord = PixelSearch( 404, 314, 317, 415, 7039590 ) If IsArray($Coord) Then MouseClick("Left",$Coord[0], $Coord[1],1,0) $Coord = PixelSearch( 404, 314, 317, 415, 7039590 ) If IsArray($Coord) Then MouseClick("Left",$Coord[0], $Coord[1],1,0) This will work.
  8. I know about the PixelSearch and MouseMove. I will tell you once again i want the script to do. The script is going to move the mouse over the screen, and when it moves over a spot a color comes out, and when the color comes out I want it to press the color. Hope you understand.
  9. I'm trying to make a script that moves the mouse to the sides. EX. From top left to top right and then it moves the mouse down like 50pixels and then moves to the left side and so on. While the mouse is moving it will be using PixelSearch and when it finds the pixel it will click two pixels below. The only problem i have is that I don't know how to make it move and search at the same time. Any help is appreciated.
×
×
  • Create New...