Jump to content
AC Tool Forums

All Activity

This stream auto-updates     

  1. Today
  2. Yesterday
  3. Last week
  4. Thank you very much. I'll try to figure it out.
  5. ** 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
  6. I really need to see how such scripts are designed with such objects. At least a few examples.
  7. delay 1000 SetActiveWindow Drakensang Online: бесплатная онлайн-игра в стиле фэнтези - DSO delay 5 sec constants Zelenyjloot = 664, 417// I'm not sure, but it seems that in the script description in your statement, the value of the constant is set with a comma end Procedure pervaya// two procedures to check the location of an object Delay 1000 Keys = ~F End Procedure vtoraya Delay 1000 LeftClick End Procedure rgb Set Zelenyjloot = Testy// where to put it in the procedure? The algorithm itself is unclear and its design. If there was a writing pattern, it would be easier. I wrote it once and checked it out. Went, wrote more, so comes the understanding. End Object Zelenyjloot 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 IsObject Zelenyjloot at 664, 417 call vtoraya Else call pervaya End Loop 1000 call rgb End // It is not clear how to measure the size of TestObject by x and y coordinates. Is it possible to do this in Photoshop? XCoord = // Coord for X axis. YCoord = // Coord for Y axis. XSize = // Size of the object, along the X axis. YSize = // Size of the object, along the Y axis. MinRed = 0 // Minimum value for Red. MaxRed = 255 // Maximum value for Red. MinGreen = 0 // Minimum value for Green. MaxGreen = 255 // Maximum value for Green. MinBlue = 0 // Minimum value for Blue. MaxBlue = 255 // Maximum value for Blue. Sample = // All = Every Pixel, Half = Every Other Pixel. FileName = // Name of file to place the object definition. // The following are not required settings. // So they do not need to be included in the list // In other words, if you do not wish to use them. // You can completely delete the following options. Black = // Include true black pixels? Yes, No SaveBMP = // Save a BMP of the object? Yes, No UseObject = // After getting the object, do you want to use it? Yes, No // NOTE: if you use the UseObject option. // The new object will not be saved to file. // But, it is immediately available for use, // from with in this same script/macro file. End //How do I collect this data? From photoshop?I really need to see how such scripts are designed with such objects. At least a few examples.
  8. Thanks for the answer. I received the information and am studying it. I'll post the script later if it doesn't work. If it goes, I'll post it to show you.
  9. 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.
  10. Good afternoon. I live in Moscow and came across your program on YouTube. I found a video on finding color. I used the information and wrote scripts for social networks, having mastered this topic from the video. They help me a lot in my work. Now I really want to understand how to use the AC Tool commands: Object, wObject, CreateObject. I understand from the description of the commands that they are divided into two sections for stationary and dynamic objects. I would like to get acquainted with the scripts in the video, because it is not clear how to build the initial algorithm, but you can repeat it yourself in the video and scroll through it many times if you don't understand something. If possible, give links to videos or articles with ready-made examples of writing these commands. I will think about how to apply them and make them work for my goals. It would also be very useful to know if there are Russian-speaking AC Tool specialists in Moscow. I write through a translator. Unfortunately, I don't know much English. I hope for your support. Thank you in advance for your response. Any information is very valuable to me. I collect all the information that can be found in AC Tool. But unfortunately there is very little of it. Alexey
  11. Show a script and a picture of what you are trying to sequence. Then something can be explained to help you work out your code.
  12. Earlier
  13. 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.
  14. hi everyone, I have a question, im tryng to do a specific sequence but i dont know if its possibile. If one pixel is green and another is red (the red can vary in position) , move ther cursor over the red pixel. i dont know if its possible. help me please
  15. Not I but the ones I used to know about the owners (private servers) were shut down as time went on.
  16. Does anyone know where to access/play Asheron's Call. Remember reading a few years back some people had made their own servers?
  17. @Lots of sand Obviously, the example is not complete and will not work for what it was attended for.
  18. constructs file1=file list1=list end constants unfortune_timer_txt=C:\Users\DZIUS\Desktop\AC_tool_data\unfortune_timer_txt.txt file_read=0 read_line=1 unfortune_timer=1 end fileopen file1, $unfortune_timer_txt filereset file1 while 1 = 1 fileread file1, $file_read if {LoopNo} = $read_line compute $unfortune_timer = $file_read fileclose file1 Break end end while 1=1 delay 360 end stop I was looking for something very similar and as I break through, here is a sample macro to read a specific line from text file. It can be used to save and read values and create a text file I guess.
  19. Looked at my macro that I tried first time (I save all examples, have a very big macro folder with sub folders) and I only used the # key, thought the square brackets was indicating what to type. That was my error, soon as I read what you typed, I went looking for my test macro, and did the classic slap hand on forehead.
  20. Glad I was able to help. On my end the Window Titles for all Sandboxed programs has the [#} prior to, and after, the program's default title. That is why I gave my examples. But, there is another way and it might be better, depending on your situation. To Use SetActiveWindow to do a partial match of the window title. In AC Tool can be used in the following was: SetActiveWindow FullWindowTitle SetActiveWindow PID SetActiveWindow PartialWindowTitle SetActiveWindow 1. Requires that you give the full window title. Just as move people do, because that is how its use is shown in the help file. SetActiveWindow [#] LaunchNet7 v2.2.0 [#] 2. Requires that you give the Windows' PID number. Which can be obtained from Windows Task Manager or the the Window List, from AC Tool menu under Tools . Which means that the program/game has to be running prior to use running the script. In order for you to get its PID number. SetActiveWindow 10960 3. With this version of SetActiveWindow, As long as the Window title's has the portion of text that you are using. Then that window will match and will be made the active window. This is a problem with this. Multiple of windows that contains the same portion of the window title. At which point the very first window that matches. Is the one that is set as the active window. Whether or not it is the window that you want as the active window. In order to use the partial Window title search. Give the portion of the title that you are looking for, with an asterisk/star at the end. SetActiveWindow LaunchNet7* 4. This does not have a Window Title or PID. And when executed will open the Window List window. Select the window title and then click on the OK button. This causes SetActiveWindow to use the PID for the window. NOTE: The use of the PID is for this particular SetActiveWindow instance. If you need to call SetActiveWindow at anytime after this one. Then you give the Window's PID number, or the Window's title full/partial. SetActiveWindow
  21. Rightclick on game icon and start in sandboxie. Normal icon start. setactivewindow [#] name [#] move on screen. setactivewindow name. move on screen. works well, thanks WABBIT. Once I sat down with a coffee and thought thru it with your examples, all works.
  22. Sorry about that, been a few very busy days with our foster child and meetings, I was frustrated and didn't compose my question properly. Will sit down and read thru in the next day or so and see how I go. Thanks for what you have done already.
  23. Well, you didn't give any details as to what you are experiencing. Even though I don't have ACE Online, I did download sandboxie and gave it a try with LaunchNet7 and E&B. And I did not have any problems with AC Tool v5.4.0/5.4.0.5/5.5.1, or Divide, using SetActiveWindow to make them the active window. Below is the SetActiveWindow commands that I used in AC Tool and then again in Divide. And since you did not specify how you started the game. I don't know if the way I started LaunchNet7, and then E&B, is different and if it may have any bearings on what you are experiencing. So I'll tell you how I started LaunchNet7, and then through it E&B. Start > Sandboxie > Sandboxie Start Menu DeskTop > LaunchNet7 and Start > Sandboxie > SandBoxie Start Menu Programs > Net-7 Entertainment > EnB Emulator > LaunchNet7 AC Tool: SetActiveWindow [#] LaunchNet7 v2.2.0 [#] SetActiveWindow [#] Earth & Beyond [#] Divide: SetActiveWindow('[#] LaunchNet7 v2.2.0 [#]'); SetActiveWindow('[#] Earth & Beyond [#]');
  24. Sandboxie.v5.30.exe Is it possible to use AcTools with Sandboxie. I cannot seem to find the right setactivewindow. I have attached the program to see if anyone can head me in the right direction. Trying to open 2 or more instances of Ace Online. Tried the names that are shown on the window and in Task Manager, no luck. Using Win 10 by Spectre Ghost. Info.txt
  25. @minimx Ok, I not sure as to why your DivObject definition, that you had created from the AC Tool Object definition, is not working. I don't know if it is because of the coordinates being used. Or if values that is being used for the test. But, I can say that after looking at a screen shot in Object Mapper 2. I was not able to find any of the values, in the exact same series, that you have in your test script for any portion of the Icon for Divide. So, from that point of view. You'll have to recreate the DivObject definition to look for Divide's Icon. So, plz check your PM as I sent you one.
  26. Windows 7, I don't know if I am using the Classic Windows theme or just turned off most of the enhancement of the visuals in windows.
  27. I have one question. What Windows are you running it on? And are you using the Classic Windows theme?
  28. are those test being done with Divide's window being smaller than the full screen? Both: full screen and smaller than fullscreen. The image was perfect in both tests. And is the image from the d_screen.bmp or from a screen capture of the window only, from another program? From d_screen.bmp, no other program, just opened the d_screen.bmp (divScreen).
  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.