Jump to content
AC Tool Forums

The WABBIT

Moderators
  • Content Count

    578
  • Joined

  • Last visited

Everything posted by The WABBIT

  1. The above information has been added to the Tutorials area of the forums. You can find addition tutorials for setting up Asheron's Call. And there are several ACE servers available. Some are already included in the ThwargLauncher. And others can be found on the ACE Discord channel. Or is you want you can host your own ACE server. You can find a tutorial for how to set that up in the Tutorials area.
  2. This thread is for reporting any issues of using AC Tool Companion with a emulated server. Please note that since I do not play Asheron's Call. It might take some time for me to look into this issue, or even to fix the issue. All issue reports must include all of the following: Which emulated server: GDLE or ACE? Location within the game. Give the in game coordinates. A full description of what you are trying to do in the game. A full description of what the problem is. A test script that reproduces the issue. Any issue report that is missing this information, or missing the test script. Will be deleted without the issue being looked into. In the future, more information may be required. As such this post will be updated to include that information above. And that additional information will only be required. starting from the date this post has been updated.
  3. For those that do not already know about it. I had created several Tutorials on how to setup and play Asheron's Call on a emulated server. You may find this tutorials in the Tutorials section of the forums.
  4. This tutorial is for AC Tool v5.4.0. (AC Tool v5.5.1, and AC Tool v5.4.0.5 by @Phinius, do not seem to work.) I would recommend that any user that wishes to place Asheron's Call to first follow the instructions in the tutorial: How to setup Asheron's Call to play on a emulated server. Installing Decal and AC Tool & Companion: If you have followed the How to setup Asheron's call to play on a emulated server tutorial. Then start with step #3 below. Download the current version of Decal. Install Decal. You can find this in the download area of the forums. Download AC Tool v5.4.0, you can find this in the download area of the forums. 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. OPTIONALLY: Once you have followed the steps above. You may replace the ACTP.dll file in the AC Tool install directory with the one attached to this tutorial. The only difference between the one installed and the one attached. Is that a single value was changed from a 2 to a 1. Thus allowing Companion to announce in the game chat that it is activated when you log into the game on a emulated server. MAJOR NOTE: Although, AC Tool & Companion do seem to work with Decal v2.9.7.5 with a emulated server. There may be things in Companion that may not work properly or work at all. AC Tool Companion1.reg ACTP.dll
  5. Version 2.9.7.5

    0 downloads

    This is the installation file for Decal v2.9.7.5 a.k.a. v3.0. This is the newest version of Decal to have been released. Although Decal does seem to work with the A.C. ACEmulator server. And although AC Tool & Companion do seem to work with Decal when connecting to a A.C. ACEmulator server. Do expect any support for Decal in any way beyond the setting up Decal and AC Tool & Companion when connecting to a A.C. ACEmulator server. As the developers of Decal had abandoned the project years ago, prior to Asheron's Call was closed down. And I have not found any forums, Discord channel or any website. Where there is any discussion of, let alone any support for, Decal. The following Tutorial well show you how to properly install the Asheron's Call game and Decal to play on a emulated server: How to setup Asheron's Call to play on a emulated server
  6. Sometime ago I created a Tutorial on how to setup and host your own ACEmulator server. It required Micro$ucks Visual Studio 2017 to compile the binaries and that it could only be deployed on a Windows system. Since that time the Devs of ACEmulator has made it easier to deploy the server. You no longer need Visual Studio and you can now deploy the server to Windows, Linux, even a Raspberry Pi 4 (64-bit). As such I thought it was time to create a new Tutorial. So, let's get to hosting our own Asheron's Call ACEmulator server. My full recommendation is that if you had used the previous Tutorial to create your ACEmulator host. That you completely uninstall Micro$ucks Visual Studio 2017, and all the packages and extensions that Visual Studio had installed, and the Database server software prior to your installing the current version of ACE and the Database. Then perform a complete fresh clean install following this Tutorial. ACE Hosting ACE consists of two main components. The database and the server (executable). ACE is very demanding on the database. This load increases with player count. For this reason, it is highly recommended your database be installed on the same instance as your server. Recommended System Requirements 1-10 Players 2 Threads 4 GB RAM 11-49 Players 4 Threads 8 GB RAM 50-499 Players 6 Threads 16 GB RAM 500+ Players 8 Threads 32 GB RAM 2 Mbps incoming network traffic 12 Mbps outgoing network traffic Now that we know the minimum required spec for the hardware. Let's move on to deciding our server setup. I created the following check list to help decide on software side of things. Database Operating System _____ Windows _____ Linux Database software _____ MySQL v5.7.17 or newer _____ MariaDB v10.2 or newer ACE Server Deploy on what Operating System _____ Windows (64-bit) _____ Linux (64-bit) _____ Raspberry Pi 4 (64-bit) Windows deployment _____ Using precompiled Binaries _____ Build the Binaries Download Now that we have decided on the software side of the server(s). We will now download what we need. Required AC DAT files: Here World data (for database): Latest release .Net Core 3.1.0 package Deployed on Windows Using precompiled Binaries: Runtime 3.1.0, Windows x64 Build Binaries: SDK 3.1.100, Windows x64 Deployed on Linux: .Net Core SDK ACE Server Latest Release (Source Code and Windows Binaries): Here Linux Users may use git to clone the project: git clone https://github.com/ACEmulator/ACE.git Database MySQL, minimum required 5.7.17 or newer Windows: Here Linux: Here MariaDB, minimum required 10.2 or newer: Here Optional: SQLYog editor (to help create the database): Here Installing the Server: ACE Hosting Windows ACE Hosting Linux Raspberry Pi 4 (64-bit): Here Instead of providing the information to install ACE on a Raspberry Pi 4. I provided the link original Wiki page for those few people that wish to install ACE on a Raspberry Pi 4. Database Host Agnostic Config.js Recommendation Host specific information can be found in both the Windows and Linux Specific Instructions above. The Config.js already has documentation. However, we have found the following settings pair well with typical servers of the given player counts: 1-10 Players WorldThreadCountMultiplier: 0.34 MultiThreadedLandblockGroupPhysicsTicking: false MultiThreadedLandblockGroupTicking: false 11-49 Players WorldThreadCountMultiplier: 0.5 MultiThreadedLandblockGroupPhysicsTicking: true MultiThreadedLandblockGroupTicking: false 50-499 Players WorldThreadCountMultiplier: 0.5 MultiThreadedLandblockGroupPhysicsTicking: true MultiThreadedLandblockGroupTicking: true 500+ Players WorldThreadCountMultiplier: 0.5 MultiThreadedLandblockGroupPhysicsTicking: true MultiThreadedLandblockGroupTicking: true Running the Server Start the server with the following commands: Windows: "C:\ACE\Server\ACE.Server.exe" Linux: In ACE/Source/ACE.Server/bin/x64/Debug/netcoreapp3.1, run the server with dotnet ACE.Server.dll Configuring the Server (Shard) Shard specific configurations are done in game, or on the console, using ACE Commands. Connecting to the Server Create your first account as an admin at the ACE prompt: accountcreate testaccount testpassword 5 Launch ACClient directly with this command: acclient.exe -a testaccount -v testpassword -h 127.0.0.1:9000 Resources View the ACE Wiki for additional and/or new information. ACE provides help for server operators. The ACE Discord can be a great resource with advice available from other server operators as well as developers.
  7. @Bear I just wanted to let you know that I had found what was causing the issue with AC Tool Companion not notifying you that it was active. The problem is within the following code from within the ACTP.pas unit file: $F74B: // Toggle Portal Animation begin ErrorMsg := '$F74B: Toggle Portal Animation'; pType := pMsg.Value['portalType']; if pType = $0408 then begin pLogins := pMsg.Value['loginPortals']; pChar := pMsg.Value['object']; if (pLogins = 2) and (pChar = GlobalData^._myid) then begin gd.bLoginComplete := True; s:= '=* AC Tool Companion ' + PROGRAMVERSION + ' ALPHA 8 for Decal 3.0 (Activated) *='; ACHook.AddChatText(s, 9, 0); gd.bLogToFile := False; GlobalData^._LoginComplete:= 1; end; end; end; The actual problem is with the second IF statement. It is looking for the value of pLogin, which is set three lines above, to be two. I don't know if this is because Live had two login portals, or just set the value as 2. But, in the ACE emulator this value is 1. So, a quick, and dirty, fix of this problem is just to change the (pLogins = 2) to (pLogins = 1). And then rebuild the actp.dll using Delphi 7. Once you done that, then backup your original actp.dll file and copy the new one in it's place. NOTE: This issue in no way causes AC Tool Companion from initializing and working. From my limited testing, Companion does initializes and works. (I just can't say how well it actually works due to what changes there are between Live and the Emulator.) as such you do not need to do anything.
  8. To follow up on what @Bear stated. There are Emulator servers for Asheron's Call out there. At first there were two different Emulator projects. They where Phat AC (Phat) and ACEmulator (ACE). Then sometime later a third server emulator appeared on the seen, GDLEnchanced (GDLE). Not to long after GDLE came onto the seen. Turbine, and it's parent company, served a Cease and Desist to the Developers of the Phat AC emulator. To shut down all development of the emulator and the destruction of any and all code for the Phat AC emulator. The Cease and Desist also included that any personal servers using the Phat AC emulator was also to brought down. And that any and all images and video content created from the Phat AC emulator and shared online. Had to also be deleted. From what I had read, the reason for this was because Phat AC was using server code that was leaked some years prior to AC's sunset. And that some how it was also using code that was generated from reverse engineering the actual AC server. (Personally, I do not see how this last was possible.) At this time the only Asheron's Call server emulators out there are ACE and GDLE. (I am quit sure that there might still be a few Phat servers out there too. But, they would be underground.) The Launcher that @Bear mentioned, will have a few ACE and GDLE servers setup to be able to log into. And I am sure that you can possibly find others with a search on Google. Or you can log into ACE's and GDLE's individuals Discords. And then be able to get addresses for any servers out there. Since I have never played the game when it was live. So, I can not say how close the emulators are to Live. Or if they will ever be as Live was at Sunset.
  9. Do not use this command, as I had already told you. It is not needed for what you are doing.
  10. 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.
  11. 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
  12. 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.
  13. 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.
  14. 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.
  15. 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.
  16. 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:
  17. 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
  18. 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.
  19. How are you doing on testing the use of Objects?
  20. ** 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
  21. 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.
  22. 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.
  23. @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.