Jump to content
AC Tool Forums

The WABBIT

Moderators
  • Content Count

    567
  • Joined

  • Last visited

1 Follower

About The WABBIT

  • Rank
    Forum Master
  • Birthday 02/03/1966

Profile Information

  • Gender
    Not Telling
  • Location
    Denver, Colorado

Contact Methods

  • Yahoo
    The_WABBIT1@yahoo.com

Recent Profile Visitors

15,428 profile views
  1. Do not use this command, as I had already told you. It is not needed for what you are doing.
  2. Each of those List commands as shown in the Help file has example code on how to use each and every one of them. So, you do not need example code. You just need to go and use them to learn the use of those commands.
  3. Okay, unfortunately AC Tool v5.5.1 is having problems connecting to Companion. So, what you need to do. Download the current version of Decal. Download AC Tool v5.4.0, you can find this in the download area of the forums. Install Decal. Install AC Tool v5.4.0, don't forget to select installing Companion. In order to get Companion to work properly with Decal v2.9.7.5. Merge the attached .reg file into your windows registry. (This will remove a Surrogate entry from the AC Tool Companion plugin settings in Decal.) Run Decal with Administrator Rights. Right-click on the Decal icon and Select Configure. You should see AC Tool Companion listed and has a version of 5.4.0.64. Click on the Update button. If you do not see AC Tool Companion specifically listed. Or you do not see the version number 5.4.0.64. Then something went wrong with the installation of either Decal or AC Tool & Companion. Now to use AC Tool and Companion, do the following: Run Decal, with Administrator Rights. Run AC Tool with Administrator Rights. Run ThwargLauncher with Administrator Rights. Connect to the server of your choice. Make sure to have Decal Injection checkmarked. NOTE: Once you are logged into the game. AC Tool/Companion will not send text to the game after you have arrived in the game. I do not know if this is a problem with ThwargLauncher injecting Decal into the game client. Or if this is a problem Companion originally being made for a version of Decal earlier than 2.9.7.5. I have to figure out where the problem is. But, it is kinda hard to do when there is no information available on creating plugins directly for, or connecting directly to, Decal. (The only information currently available is for the Virindi plugin system for Decal.) If anyone can point me to information on Decal and plugins, that does not use the Virindi system, I would be grateful. But, you can test that Decal and Companion is working. By using a new macro. Add the following and then run the macro: SendText 13, Test FaceHeading 0 Delay 1 sec FaceHeading 220 If you do not see a line of light blue text showing up in your chat box, and your character does not turn to face one way, and the another. Then you need to look into how you have Decal and AC Tool 5.4.0 w/ Companion installed. AC Tool Companion1.reg
  4. I have to say something about this. AC Tool was not created to allow it's users to by pass a website's feature, such as the captcha, to slow down the use of automated scripts, also known as BOTs, that are normally used to spam a website. All though I am sure that there are people to use AC Tool to do such a thing. I can not condone such use.
  5. AC Tool does not make a full-screen image when testing for Objects, or when testing for colors with the GetRed, GetGreen, GetBlue, IsBlack, IsBlue, IsGreen, IsGrey, IsRed, IsWhite or when using the LoadRGB to use the {RGBRed}, {RGBGreen}, {RGBBlue} constants. Normally AC Tool does all of it's testing directly from the screen as Windows creates it. There is one exception to the above, that is when using the ObjLoadWindow. ObjLoadWindow copies the current screen output to an image that is in memory. Then AC Tool uses this image when doing any of the testing listed above. This is to help AC Tool to perform those tests faster. There is one major downside to using ObjLoadWindow. ObjLoadWindow creates the image copy of the screen. With the screen at that very time. And this image is never updated. Basically what I am saying is: Once the image is created it never changes. The only way to get a updated image. You have to release the image by using the ObjRelease command. And the reload the image by using the ObjLoadWindow command again. Here is why using the ObjLoadWindow is a major downside. Because you have to release the current image. And then reloading the image with the current screen. Can add 100s of milliseconds to your testing because the loading and then releasing of the screen into a image for use in the testing. When testing for MOBs, or player characters, in games where 100s of milliseconds decides if your character lives or not. AC Tool does not save the coordinates of the screen or monitor, or even the placement and size of the App/Game window. This information is handled by Windows. And AC Tools just gets this information directly from Windows. There is no such thing as Global coordinates and Local coordinates. There is only screen resolution. If the game is being displayed in Full Screen. Then the screen resolution is the resolution that the game is being displayed in. If the game is being displayed in Window Mode. Then the screen resolution is the resolution of the Windows Desktop. The following example script shows this: Yes, you have created a Object to search for the MOB in the game. And unless you have created the Object either the exact same size and shape of the MOB. Or the Object is made small enough to only have a portion of the MOB. Then the Object being used will check pixels around the MOB that more than likely will not match what is in the Object. Causing the checking for the Object to fail. It doesn't matter what size the object being used is. The coordinates used to search for the Object. Will be at the upper left corner of the portion of the screen being checked. You can't just move the mouse to the exact same coordinates and try to click on the MOB. Because the MOB may actually not be at that spot. It might actually be a few pixels to the right of where the coordinates point to. And if the MOB is moving, it is guarantee that when the mouse is moved to the exact same coordinates used to find the MOB. The move will have moved. Because of that, you have to take the coordinates used with the Object to find the MOB. And then you have to make some adjustments to those coordinates to make sure that the mouse is at the right spot. So that when you attempt to click on the MOB. It is selected as you want it to be. Yes you can organize the search coordinates. And yes you can create a list. And there are 13 commands used to create and help to use a list. Those commands are ListAdd, ListAssign, ListClear, ListCount, ListDelete, ListFind, ListIndex, ListLoad, ListSave, ListSortOff, ListSortOn, ListToString and StringToList. Read the information for those commands. And examine the example code for each of those commands to learn how to create and use a list.
  6. When AC Tool creates a screenshot. It saves the screenshot as a .bmp file in the directory it is installed in. The easiest way to get to the directory that AC Tool is install in. Do the following: With a shortcut for AC Tool on your desktop. Right click on the AC Tool shortcut. Select "Open file location" In the AC Tool install directory you will see a file named ACSCREEN.BMP. This is the screenshot that AC Tool creates. If you need to save this screenshot. Then you need to rename the file to something else. But, you must keep the .bmp file extension. Now, if you are creating the screenshot by pressing the PrintScreen key on your keyboard. Then AC Tool does not save this screenshot. You have to save the screenshot into a file. You can do this using Paint, in windows. Load Paint Click on Paste button, to paste the screenshot on canvas. Click on Crop button, to resize the canvas to the screenshot. Then save the screenshot to a .bmp file.
  7. Okay, I am going to assume that you did not machine translate the Help file. Because if you had done so, then you would know that you would use the MousePos command to move the mouse. And then you need to use LeftClick, or RightClick depending on your mouse configuration, to click on the MOB. Here is an example: IsObject Golubyeglaza at 1116, 266 // if the Object is found // move the mouse MousePos 1116, 266 // wait 1/2 a second for the // mouse to move to the coordinats Delay 500 // Do a left click at the coordinats. LeftClick end There is no command in AC Tool to do all that you are asking for. What you have: You have IsObject that will check for a Object at a specific X, Y coordinate. You have MousePos to move the mouse pointer to a specific X, Y coordinate. And you have LeftClick, and RightClick, to click the left mouse button, or the right mouse button, at the coordinates that the mouse is currently at. What you need to do: You have to create the code that will generate the X coordinate to search for the Object. And then place it into a Constant. You have to create the code that will generate the Y coordinate to search for the Object. And then place it into a Constant. Then you need to use the two constants from Step #1 and Step #2 to search for the Object. You then have to create the code that once the Object is found. It will take the Constant from Step #1 to generate the X coordinate to move the mouse to. And then place it into another constant. You then have to create the code that once the Object is found. It will take the Constant from Step #2 to generate the Y coordinate to move the mouse to. And then place it into another constant. Then you need to use the two constants from Step #4 and Step #5 to move the mouse. Delay for 500 milliseconds to make sure that the mouse gets to the new coordinates. Click on the location with either the left mouse button or the right mouse button. How you go about doing Steps #1, #2, #4 and #5 is totally up to you.
  8. Now as you can see from my previous post. You need to rewrite your script to follow one of the two Structure Styles mentions. And to make sure that you have a end statements where they belong. I would recommend that you use the Structure Style 1. And from what I can see of your script. You do not need procedures to do what you are currently trying to do. The code in the Gipnoz should be placed in the Main Code Block inside the loop. And the code other two procedures needs to be placed in the IsObject ... End block. Below is your script rewritten to follow the Structure Style 1 structure: And here you will find a much simpler version of your script. It follows the Structure Style 1, but it does not use procedures:
  9. Okay, the problem with your script is that you structured your script wrong. As a rule of thumb for AC Tool. When creating your scripts you need to understand and follow a few things. (Question: Have you worked with the Java programming language? Well, if you haven't work with Java. Then I tell you this.) In Java there is what is called a Main procedure called main . (A procedure is a block of code that will be executed when the procedure is called.) But, in Java the code in the Main procedure is always executed when you run the Java program/app. In that Main procedure you will have various commands to perform what ever action you need. This include the calling of other procedures and/or functions. In AC Tool, you have something similar. You don't have an actual procedure called main. Instead you have what is called the Main Code Block. What is the Main Code Block. It is code, or commands, that it not in a procedure. All main code is grouped together in one place. And when you run your script in AC Tool. The Main Code Block is what is run. In the Main Code Block you will have calls to execute certain procedures. But, these procedures are not a part of the Main Code Block. For AC Tool scripts, the community has routinely structured their scripts as the following: Structure Style 1: Constants: Define your constants as the first thing in your single file script. Main Code Block: add the code that you want executed when you run the script. Procedures: Add any procedures you define after the Main Code Block. Objects: Place any Object definitions last. Structure Style 2: Constants: Define your constants as the first thing in your single file script. Procedures: Add any procedures you define after defining your constants. Main Code Block: add the code that you want executed after all the procedures you have defined. Objects: Place any object definitions last. In your script, you have procedures and objects mixed with in you Main Code Block. Also, in AC Tool you need to end certain blocks of code with an end statement. For which you did not do for certain things. The following list of commands has to have a end statement at then end of the block: procedure: procedure procedurename // code goes here end if: if conditionalexpression // code goes here end if ... else: if conditionalexpression // code goes here else // code goes here end isobject: isobject objectname at X, Y // code goes here end isobject ... else: isobject objectname at X, Y // code goes here else //code goes here end case: case // code goes here end loop: loop // code goes here end while: while conditionalexpression // code goes here end object: object objectname // object definition end One last thing to mention. You can not place a procedure with in a IF/IF... ELSE/ISOBJECT/ISOBJECT ... ELSE/While/Object blocks. AC Tool will give you an error, like the one you have already gotten, when you run the script. Now, below I will show you what each of the Structure Styles look like with actual code: Structure Style 1: // // define constants // constants b=Golubyeglaza end // // this is the Main Code Block // SetActiveWindow Drakensang Online: бесплатная онлайн-игра в стиле фэнтези - DSO Delay 5000 objvar 10 loop 10 call Gipnoz end // // add procedures here // procedure Gipnoz // the code that you want to execute goes here end; procedure first // the code that you want to execute goes here end procedure two // the code that you want to execute goes here end // // add Object definitions here // object Golubyeglaza // object definition goes here end Structure Style 2: // // define constants // constants b=Golubyeglaza end // // add procedure here // procedure Gipnoz // the code that you want to execute goes here end; procedure first // the code that you want to execute goes here end procedure two // the code that you want to execute goes here end // // this is the Main Code Block // SetActiveWindow Drakensang Online: бесплатная онлайн-игра в стиле фэнтези - DSO Delay 5000 objvar 10 loop 10 call Gipnoz end // // add Object definitions // object Golubyeglaza // object definition goes here end
  10. Okay, the actual command is ShowMessage not ShowMessage I. What it does is it displays a window to the user. That has a custom message for the user and allows the user to respond to the message by clicking on a button in the window. You really need to read, machine translate, the Help file to understand the various commands. No, you are not causing me to be bored. And you are not annoying me at all. And I was raised to believe that there is no such thing as a stupid question. And I am glad that you now fully understand Objects. Although Object are best used for Static parts of a game. They can also be used to Dynamically search for MOBs that move withing a game. All you need to do is place the IsObject command block within a loop. And as you change the X, Y coordinates to search for the Object of the MOB through out the screen. Basically you are scouring the screen looking for the MOB. But, when dealing with MOBs that moves but does not move in a set pattern. This can take quite a bit of time to find a single MOB on the screen. So, it might be better to use any of the GetRed, GetGreen, GetBlue, IsBlack, IsBlue, IsGreen, IsGrey, IsRed, IsWhite, LoadRGB commands to search for MOBs that don't move in a set pattern. I really don't know too much on how to do this. As I have not done this. So, I would suggest that @Ego chime in here. Because I believe he has done this several times before.
  11. How are you doing on testing the use of Objects?
  12. ** English ** Okay, you test script is a complete mess. So, I'll try to help you the best that I can. But, the first thing you need to do. Is you need to forget all about WObject and CreateObject, for now. I need you to understand what an Object is and how to create it and how to use it. Once that is done, then I'll help you to learn all about WObject and CreateObject. From what it looks like. You were able to learn how to create the Object. I assume this is because of what you had learned from the Object Primer article. That is good. But, let's briefly go over it here: 1. Get a screen shot by pressing the Print Screen button on your keyboard. 2. With AC Tool running. Go to an empty line at the bottom of your current script. 3. In the right panel, expand Object Commands and double click on Object .. End. 4. Click on the Paste button. 5. Change ObjectName to what you want to Object name to be. 6. In the image scroll, if necessary, until you find the part of the image that you would like to create an image of. 7. Click on the image at the point that is the upper left corner for the object. This will update the Coordinates {X, Y} with the coordinates for the object. 8. Change the values in Object Width and Object Height to match the width and height of the Object. 9. Just below the Object Width and Object Height will be a image showing the portion of the image that will be made into an Object. 10. Using the image of the object. Adjust the coordinates and width and height of the object. Until you get what you want the object to be. 11. Click on the OK button. 12. After this AC Tool will place the Object definition in the source code. Starting at the empty line that you had the cursor at. Below you will find a test script that uses the Object from your test script and the the SetActiveWindow is for the game or program you have used. I hope that this helps you to better understand Objects and how to use them. And what is in the Object Primer about Object, IsObject and ObjVar. ** Русский **- машинный перевод, поэтому следующее не имеет смысла. Я надеюсь, что вы понимаете, о чем идет речь. Хорошо, у вас тестовый сценарий - полный беспорядок. Итак, я постараюсь помочь вам как можно лучше. Но, первое, что вам нужно сделать. Вам нужно пока забыть о WObject и CreateObject. Мне нужно, чтобы вы понимали, что такое объект, как его создать и как его использовать. Как только это будет сделано, я помогу вам узнать все о WObject и CreateObject. Как это выглядит. Вы смогли узнать, как создать объект. Я предполагаю, что это связано с тем, что вы узнали из статьи Object Primer. Это хорошо. Но давайте кратко рассмотрим это здесь: 1. Сделайте снимок экрана, нажав кнопку Print Screen на клавиатуре. 2. При запущенном AC Tool. Перейдите к пустой строке внизу вашего текущего скрипта. 3. На правой панели разверните Object Commands и дважды щелкните Object .. End. 4. Щелкните кнопку Paste. 5. Измените ObjectName на то, что вы хотите для Object name. 6. При необходимости прокрутите изображение до тех пор, пока не найдете ту часть изображения, для которой хотите создать изображение. 7. Щелкните изображение в точке, которая является левым верхним углом объекта. Это обновит Coordinates {X, Y} координатами объекта. 8. Измените значения в Object Width и Object Height, чтобы они соответствовали ширине и высоте объекта. 9. Чуть ниже Object Width и Object Height будет изображение, показывающее часть изображения, которая будет преобразована в объект. 10. Использование изображения объекта. Отрегулируйте координаты, ширину и высоту объекта. Пока вы не получите то, что хотите, чтобы объект был. 11. Щелкните кнопку OK. 12. После этого AC Tool поместит определение объекта в исходный код. Начиная с пустой строки, на которой был установлен курсор. Ниже вы найдете тестовый сценарий, который использует Object из вашего тестового сценария, а SetActiveWindow предназначен для игры или программы, которую вы использовали. Я надеюсь, что это поможет вам лучше понять объекты и способы их использования. И что в Object Primer об объектах, IsObject и ObjVar. constants i= end delay 1000 SetActiveWindow Drakensang Online: бесплатная онлайн-игра в стиле фэнтези - DSO delay 5 sec objvar 10 // IsObject is used to check for the object. // You give the name of the Object to check for. // And you give the X, Y coordinates (the top // left corner of the object) to test for the Object. // IsObject используется для проверки объекта. // Вы даете имя Object для проверки. И вы даете // координаты X, Y (верхний левый угол Object) // для проверки Object. IsObject Zelenyjloot at 664, 417 // Code that is here is executed if the Object has been found. // Код, представленный здесь, выполняется, если объект был найден. //ShowMessage i = Information, OK, The Object was found. ShowMessage i = Information, OK, Объект был найден. Else // Code that is here is executed if the Object has not been found. // Код, представленный здесь, выполняется, если объект не был найден. //ShowMessage i = Information, OK, The Object was not found. ShowMessage i = Information, OK, Объект не найден. End // Test for this Object at 664, 417 Object Zelenyjloot // Тест для этого Object на 664, 417 110=0,0|125=0,2|137=0,4|90=0,6|112=0,8|158=0,10|96=0,12|141=0,14|138=0,16|139=0,18|137=0,20 125=2,0|140=2,2|143=2,4|92=2,6|150=2,8|114=2,10|116=2,12|140=2,14|140=2,16|140=2,18|137=2,20 138=4,0|142=4,2|119=4,4|135=4,6|168=4,8|98=4,10|144=4,12|141=4,14|142=4,16|133=4,18|139=4,20 136=6,0|138=6,2|135=6,4|157=6,6|113=6,8|119=6,10|146=6,12|143=6,14|143=6,16|142=6,18|137=6,20 138=8,0|132=8,2|137=8,4|150=8,6|101=8,8|149=8,10|146=8,12|143=8,14|145=8,16|143=8,18|137=8,20 133=10,0|122=10,2|127=10,4|107=10,6|155=10,8|146=10,10|147=10,12|143=10,14|143=10,16|140=10,18|132=10,20 125=12,0|135=12,2|114=12,4|116=12,6|152=12,8|145=12,10|144=12,12|141=12,14|143=12,16|142=12,18|129=12,20 186=14,0|111=14,2|113=14,4|155=14,6|150=14,8|142=14,10|144=14,12|142=14,14|140=14,16|125=14,18|137=14,20 112=16,0|114=16,2|150=16,4|150=16,6|147=16,8|144=16,10|141=16,12|142=16,14|132=16,16|134=16,18|141=16,20 116=18,0|152=18,2|150=18,4|147=18,6|144=18,8|141=18,10|138=18,12|134=18,14|136=18,16|139=18,18|145=18,20 147=20,0|147=20,2|147=20,4|144=20,6|136=20,8|138=20,10|135=20,12|141=20,14|141=20,16|138=20,18|145=20,20 End
  13. Hello @orlando800, It is nice to see a new user of AC Tool. And Personally I did not know about any videos on YouTube for AC Tool. I am sorry that I, and I believe most of the Moderators, don't speak Russian. But, we will try our best to help you. As for other Russian speaking AC Tool users. I assume that there is at least one or two others here. It is just a matter that they start posting here in the forums. So, hopefully they might be able to help. To help you to understand what Object is. The AC Tool Help file has a article called Object Primer, it was written by a user of AC Tool. This article talks about Object, IsObject and ObjVar. It tells you all that you need to know about what an Object is and how to create one and then use it. You will find the article in the AC Tool Help file. Go to General Information and then Object Primer. So, I would suggest that you go and read that article first. And create a few test scripts using what you have learned from that. If you have any questions as you create your tests scripts. Please ask here so that we can help you the best that we can. Now, once you have mastered the Object, IsObject and ObjVar commands. Let me know and I'll do my best to describe to you what WObject and CreateObject are and how to use them.
  14. Have you attempted to try to create a script to do this? But to answer you question. Yes, you can do this. So, I would suggest that you attempt to actually create the script to perform this. Then ask questions when you get stuck.
  15. @Lots of sand Obviously, the example is not complete and will not work for what it was attended for.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and to our Privacy Policy.