Jump to content
AC Tool Forums

All Activity

This stream auto-updates     

  1. Past hour
  2. Yesterday
  3. Last week
  4. Earlier
  5. Why? Need some input as to what game you wish to use what you want to do.
  6. Hi guys, i would like to know how to make a very simple macro,i need to spam the key "K", possibly every 0,1 - 0,2 seconds (anything that is between in the range of 5-10 press per seconds is fine) so,i need to spam "K", infinite loop that and having another key to start/stop the macro. Thanks to everyone in advance! Big hugs from Italy! P.s. I promise I'll start studying how the program works,but right now i'm a little bit in a hurry and i never used it
  7. Thanks. I got the script, I'll try it in action.
  8. Threw this code together a few minutes ago. cursor runs across the screen and then down. I will use this myself as a starter for finding mobs etc on screen. Not sure if it is what you are looking for, but, better than nothing. Good luck with it. Would like to see your final macro when you are finished with it, to add to my collection. constants TempLeftPos = 0 TempTopPos = 0 TLeftPos = 0 TTopPos = 0 end set TempTopPos = {WindowTop} set TempLeftPos = {WindowLeft} compute TTopPos = $TempTopPos + 200 compute TLeftPos = $TempLeftPos + 100 loop 7 loop 15 compute TLeftPos = $TLeftPos + 100 mousepos $TLeftPos, $TTopPos // shows where cursor is. delay .05 sec End set TLeftPos = {WindowLeft} compute TTopPos = $TTopPos + 55 set TempTopPos = $TTopPos End
  9. http://www.ac-tool.com/forums/index.php?/forum/3-cdelphivb-development/
  10. clearly, i'm experimenting on my own. If you have any questions, I will write. Thank you for your answers. Can you tell me which programming language is close to writing AC Tool scripts?
  11. Never used the list commands in my coding, one day I might look into it, but everything I need to do, I can.
  12. Do not use this command, as I had already told you. It is not needed for what you are doing.
  13. 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.
  14. with these basic code commands, everything is clear. But with the team objloadwindow TRUE/FALSE nothing is clear. do you have any examples of writing code with it? And Examples of writing code with The list command? ListAdd, ListAssign, ListClear, ListCount, ListDelete, ListFind, ListIndex, ListLoad, ListSave, ListSortOff, ListSortOn, ListToString. Example of writing code with these commands?
  15. This is a basic macro in a game that looks at the screen for an object called 100. When the code finds the object 100, moves to the next part of the code, which checks if the object 100 has gone. When the object 100 has gone, the code stops. As you can see the object 100 is 5 pixels by 5 pixels. SetActiveWindow Earth & Beyond delay 4 sec ObjVar 3 call WaitForSector //XXXXXXXXXXXXXXXXXXXXXXX Wait For Sector XXXXXXXXXXXXXXXXXXXXXXX Procedure WaitForSector while 1 = 1 IsObject 100 at 608, 795 delay .2 sec Break Else Delay 1 sec End End while 1 = 1 Delay 1 sec IsObject 100 at 608, 795 Delay 1 sec Else Break End End End //XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX Object 100 // 608, 795 Size: 5, 5 width x height 66=0,0|241=2,0|93=4,0 47=0,2|120=2,2|84=4,2 24=0,4|109=2,4|71=4,4 End //XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  16. I'm on my laptop as my tower stopped working, has all my scripts on it. When I get it fixed, I can find a basic macro using object searching to upload for you to look at.
  17. Here's how with the objloadwindow TRUE/FALSE command. I need to put it in my creak and it is not clear to me to put it at the beginning of the script or in the current process procedure Gipnoz. Where it will function properly. or instead of the isobject golubyeglaza at 1116, 266 command. From the very beginning is Botanica, because I don't know where you want to place the command. This creak is working. If you run it on the test, it passes. constants b=Golubyeglaza end SetActiveWindow Drakensang Online: бесплатная онлайн-игра в стиле фэнтези - DSO Delay 5000 objvar 10 loop 100 call Gipnoz end procedure Gipnoz ObjLoadWindow TRUE IsObject Golubyeglaza at 1116, 266 ShowMessage i = Information, OK, Объект был найден. call First else ObjLoadWindow FALSE call Two ShowMessage i = Information, OK, Объект был найден. end end procedure first Delay 1000 keys ~B Delay 1000 RightClick Delay 1000 RightClick end procedure two Delay 1000 Keys ~N Delay 1000 end ObjLoadWindow TRUE/FALSE object Golubyeglaza 192=0,0|198=0,2|198=0,4|198=0,6|178=0,8|136=0,10|94=0,12|74=0,14|60=0,16|59=0,18|66=0,20 194=2,0|198=2,2|198=2,4|198=2,6|194=2,8|163=2,10|119=2,12|87=2,14|69=2,16|65=2,18|69=2,20 197=4,0|197=4,2|197=4,4|198=4,6|198=4,8|180=4,10|138=4,12|100=4,14|85=4,16|77=4,18|74=4,20 194=6,0|197=6,2|197=6,4|197=6,6|198=6,8|198=6,10|155=6,12|124=6,14|92=6,16|88=6,18|81=6,20 197=8,0|197=8,2|197=8,4|197=8,6|197=8,8|198=8,10|178=8,12|139=8,14|108=8,16|94=8,18|87=8,20 196=10,0|197=10,2|197=10,4|197=10,6|197=10,8|197=10,10|195=10,12|152=10,14|124=10,16|100=10,18|95=10,20 196=12,0|196=12,2|197=12,4|197=12,6|197=12,8|197=12,10|197=12,12|160=12,14|132=12,16|108=12,18|102=12,20 196=14,0|196=14,2|196=14,4|197=14,6|197=14,8|197=14,10|197=14,12|168=14,14|133=14,16|115=14,18|109=14,20 194=16,0|196=16,2|196=16,4|196=16,6|197=16,8|197=16,10|197=16,12|169=16,14|138=16,16|121=16,18|117=16,20 189=18,0|196=18,2|196=18,4|196=18,6|196=18,8|197=18,10|190=18,12|168=18,14|136=18,16|128=18,18|122=18,20 179=20,0|196=20,2|196=20,4|196=20,6|196=20,8|196=20,10|183=20,12|161=20,14|142=20,16|134=20,18|130=20,20 end I tried to deal with the List commands? i didn't succeed. We need examples of writing a script. The script does not accept constants, writes that I need to define Type. How the type is determined, i have no idea and did not find any information.
  18. Wabbit - thank you so much! Not only for the quick response, but for all the details you listed. I am now up and running with AC Tool Companion. The script worked and changed my heading. Very exciting to have this working once again. Thank you very much for all of your efforts and those that are also working to support you and the development of this great tool!!
  19. I'll see what I can come up with. Short code that does what I want. Did you look at making a macro on this forum?
  20. 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
  21. Hi, First, I'll start by saying I love the tool and have been using it for many years but only recently came back to AC (regular version, not ac2) to a private server and am having some issues. I have a non-installed copy of AC Tools (5.5.1) and I cannot seem to use the "UseItem" and "HaveItem" commands. I get an error, which is cryptic but leads me to believe that I either do not have the AC Tool Companion installed or it isn't the right version. So, with that said... On to my questions. 1) How do I verify whether or not the AC Tools Companion (that is used by many scriptable commands such as "UseItem" and "HaveItem") is installed? 2) How can I verify the version of AC Tool Companion versus that of just AC Tool? 3) Would this process be easier in one of the 'installed' versus 'just lazily zipped' versions? In other words - is there an installer option for the AC Tool Companion? Thanks for everything you do, hopefully I provided enough information here to get some help. I've been reading as much as I can on the subject and frankly, I just couldn't locate the answer on my own, which is really what is forcing the question here. Apologies if I've missed something obvious or left something out. In those cases, feel free to chime in and tell me everything that's wrong with my life.
  22. Hello Ego. There are two lists of x and y coordinates. The data is arbitrary. Even and odd numbers, for convenience. x = 1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41 Yes = 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42 There is a search function for the color AC Tool Example: loadRGB 967, 594 If {RGBRed} = 245 and {RGBGreen} = 246 and {RGBBlue} = 247 MousePos 967, 594 Delay 1000 call me again Or another object search: Blue Eye isobject in 1116, 266 / / if the object is found / / move the mouse MousePos 1116, 266 // wait 1/2 second for the mouse / / to move to the coordinates Delay 500 // make a left click on the coordinates. Finite Coordinates and their values are given in both cases with the Load RGB operation and with the Object operation. I can't organize a search for an object in game mode in the active game window, because the script will be very long. So I want to make a grid of coordinates for searching. I was advised to use the List commands. ListAdd, ListAssign, ListClear, ListCount, ListDelete, ListFind, ListIndex, ListLoad, ListSave, ListSortOff, ListSortOn, ListToString My task is to make a list of coordinates and give the command AC Tools, take the coordinates from the list. With the desired offset. I found a description of the List commands and translated their contents. In the description of the command, there are and are examples of how these commands work. Here is an example of how one of the help commands works. ListAdd Description ListAdd adds a new item to the list item. Parameters Name of the list to add the item to Value to add to the list Example Constants Const1= end of NoValue Rig up List1= end of list ListAdd List1, TestB ListAdd List1, TestC ListAdd List1, TestA ListSortOn List1 SayPaste List1[2] ListSortOff List1 SayPaste List1[2] ListCount List1, Const1 Let's Say $Const1 ListSave List1, c:\somefile.txt ListDelete List1, 2 ListCount List1, Const1 Let's Say $Const1 ListLoad List1, c:\somefile.txt I don't understand two things. 1. How do I learn the commands in the description? I need advice and an example. I can't get a string from the description, insert it in AC Tools, and let this function show its work. 2. I don't understand the algorithm of the script that will change the coordinates of points in the search procedure. How to include the List command in the Load RGB procedure. I really want to first understand how to work with the command descriptions in the Help AC Tool section. I speak Russian and use machine translation. I'm happy with the translation. I translated all the instructions and commands, everything I could find. Unfortunately, there is no principle of detailed study of commands and the main video with step-by-step instructions. It's hard for me to master it. And I asked: "what steps would you take in my situation?" I need an algorithm to learn instructions. You can see what I could see and repeat from my correspondence with WOBBIT. Any help. I will be grateful for any response. I started checking the manual. And this is what it gives out. It doesn't accept constants from me. Any that I replaced with this one. I would have understood this problem with the team description section and would have already studied it myself. Without asking too many questions. From this video, I learned how Load RGB works. I write my own scripts. I gave the examples above. The link to the video. Maybe you have something similar or examples of working with the List command in the form of a ready-made script.
  23. What are you trying to do with your script? Maybe we might be able to help.
  24. I'm confused. How to build an algorithm. Give a simple sample. The lists of x and y coordinates are shown below. I have your description of these commands, but I don't really understand how to build a script. Constants x=List1 y=List2 End Constructs List=List1 List=List2 end ListAdd x, Test A ListAdd y, Test B procedure coordinate: x = n y = n+1 List1=[1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41] List2=[2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42] Coordinates, given randomly, even and odd numbers, so that the correct connection would be visible in the pair. And how do I see that it connects the coordinates? Through the message? Or it is better to make a txt, where it will throw everything. x = [1] y=[1:] coordinate: x, $y+1 You gave a description of the team. And everything was done in order for me to understand her work. I do not know how to learn this command. If you were in my place without knowing anything. What would be the order of studying your description from yourself? Would you transfer this to the Tool and test it? Then what would you do first? To understand and start using this information yourself? I look at your description, I understand that it is optimal, but I don't know how to study it and look at the progress of this command((. You have a lot of information that you wrote at the expense of your time, and I can't use it. I don't know how. ListAdd Description ListAdd adds a new element to a list item. Parameters The name of the list to add an element The value to add to the list Example Constants Const1=NoValue end Constructs List1=List end ListAdd List1, TestB ListAdd List1, TestC ListAdd List1, TestA ListSortOn List1 SayPaste List1[2] ListSortOff List1 SayPaste List1[2] ListCount List1, Const1 Say $Const1 ListSave List1, c:\somefile.txt ListDelete List1, 2 ListCount List1, Const1 Say $Const1 ListLoad List1, c:\somefile.txt ListCount List1, Const1 Say $Const1 Here is your description. What are your steps to learn it? There are different commands and each one needs to be tested to make it work through the AC tool. If you are strong enough, recommend something. I give other constants it does not accept. somefile.txt
  25. Thank you for the information. I will think and experiment.
  26. 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.
  27. 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.
  1. Load more activity

Announcements

×
×
  • Create New...

Important Information

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