Jump to content

Valkyrie

Members
  • Posts

    18
  • Joined

  • Last visited

Everything posted by Valkyrie

  1. Dear readers, I was wondering this: I'm playing a game, when you press "M" a world map opens. Now I want to be able to let AutoIT click somewhere on the map where I want. The map has names on it, is it possible for AutoIT to recognise a name and click on it or something?
  2. Ah oke i understand now so 640+320 means 640 pixels, add 320 pixels to that... and that's the final width. Thanks a lot for explaining!
  3. if $width = 1920 And $height = 1080 Then $coord = PixelSearch( 640, 220, 320, 320, 0xA54659 ) EndIf Does this mean: start at 640 pixels from the left and 220 from the top... then select all untill 320 pixels width and 320 pixels height further? Dutch: Wat ik bedoel is op een resolutie van 1920 x 1080 wil ik het midden selecteren met een bounding box van 320 x 320 pixels. Wat ik nu doe in bovenstaande code klopt dat? Dus op een resolutie van 1920x1080 begint hij met selecteren 640 pixels van links en 220 pixels van bovenaf, en dan selecteerd hij 320 pixels weider alles... ?
  4. It's not a excuse lol, having a normal conversation shouldnt be difficult for me but when it comes to the programming english where you have to uhmmm... what ever lol. It's harder for me to understand cause it is explained in a bit different way then a normal conversation. Dunno the right word for it lol lol. Anyways ill try to find it and look it up. Thank's for the help
  5. I need to know where the center point is of the following resolutions: 1920 x 1080 @ 2073600 pixels 1680 x 1050 @ 1764000 pixels 1280 x 1024 @ 1310720 pixels 1027 x 768 @ 786432 pixels I would like to select a pixel from a bounding box in the center. Can someone tell me what pixel rates I need? $coord = PixelSearch( 0, 0, 1024, 768, 0xA54659 )
  6. Oke, I checked out a lot and I have to say I am confused lol it is just to hard for me to fully understand it since it is in English. Ill explain what I want to archieve. I have game in which I need to click on certain items. This game will run in (sometimes) windowed mode, but sometimes in fullscreen. That's why I need something that will check the window with for example the name "my neat game". Then it should check what resolution it has been set, and click on the coordinates given by me in the script. Depending on the window size it should click on a different spot of course since we can run it 1024x768, 1680x150 and so on. Perhaps, someone could make me a sample script so I can copy & paste it, edit it and play around with it so I might learn to fully understand it? otherwise ill never make it I am afraid lol. Best regards P.S. what I also dont fully understand is the next example: $coord = PixelSearch( 0, 0, 1024, 768, 0xA54659 ) Does this means it takes the first hit it finds on a 1024x768 screen? Cause what I want is what I am showing in the picture... a small box in the center of my screen. the gray border = outside of the monitor lol, picture is the background, the RED rectangulair is the area I would like to use. My script currently is: ; info message MsgBox(0, "Valkyr's ", "Thanks!") ; configuration questions $count = InputBox("Valkyr's", "How many kills would you like to make?") $skill1 = InputBox("Valkyr's ", "Will you use skill slot (1) one? 1 for Yes, 2 for No") $skill2 = InputBox("Valkyr's ", "Will you use skill slot (2) two? 1 for Yes, 2 for No") $skill3 = InputBox("Valkyr's", "Will you use skill slot (3) three? 1 for Yes, 2 for No") ; get the desktop width and height $width = @DesktopWidth; $height = @DesktopHeight; ; start the loop for the count the user has prompted $i = 1 While $i <= $count ; find a Tigero Initiate $coord = PixelSearch( 0, 0, 1024, 768, 0xA54659 ) ; if it has been found and no error was returned If Not @error Then ; point at the Tigero MouseMove($coord[0], $coord[1]) ; select the Tigero MouseClick("left"); ; use the skill in skill slot 1 with a 2 second delay if $skill1 >= 1 Then Sleep(2000); Send("{1 DOWN}"); EndIf ; use the skill in skill slot 2 with a 3 second delay if $skill2 >= 1 Then Sleep(3000); Send("{2 DOWN}"); EndIf ; use the skill in skill slot 3 with a 2 second delay if $skill3 >= 1 Then Sleep(2000); Send("{3 DOWN}"); EndIf ; use the skill in skill slot 1 with a 2 second delay if $skill1 >= 1 Then Sleep(2000); Send("{1 DOWN}"); EndIf ; use the skill in skill slot 2 with a 3 second delay if $skill2 <= 1 Then Sleep(2000); Send("{2 DOWN}"); EndIf ; use the skill in skill slot 3 with a 2 second delay if $skill3 <= 1 Then Sleep(2000); Send("{3 DOWN}"); EndIf EndIf ; close the loop WEnd ; give a confirmation message ; script beeindigen MsgBox(0, "Valkyr's ", "Let us know!") ; webpagina openen ShellExecute("http://www.mysite.com/viewtopic.php?f=8&t=23") ; close the script Exit
  7. cool! I knew it was possible but couldnt find the function in the help anywhere lol, thanks a lot for the tip ill go and look it up right away
  8. Dear reader, My question; I have three computers. One runs at 1920x1280, one at 1650x1080 and one at a small resolution of 1280x1024. Is there a way so the script will automaticly see what resolution im using and correct the MoveMouse values? What I mean is for example: MoveMouse(299, 125); That works fine on my 1920x1280 resolution but when im at my 1280x1024 resolution it will click no where near the point where it should due a whole different size (resolution) of the screen. Anyway to fix this? Best regards
  9. Dear readers, Will I be able to make the mouse button click on a specified color? i.e. it should click on the screen where the color matches the #FFCC99 color code. Could someone provide me with some info or a link to a tutorial on how to do this? Best regards
  10. oke got it now, thanks a lot
  11. Dear readers, Mij code is as displayed here: $msgrand = 1 $text0 = "....." $text1 = "....." $text2 = "....." $text3 = "....." Now I do this: if $msgrand >= 1 Then $nr = Random(0, 9) ;WHAT HERE? EndIf The problem is, that it wont send the chosen text. Can someone tell me what I am doing wrong? I want to display (send) one of the random text that has been set with $text0 up to $text3. Best regards P.S. the ;WHAT HERE? part should need a code, but I dont know the correct one! something like Send($text[$nr]) maybe?
  12. Oke, I used a little bit of different code. This is exactly what I need just ONE problem. It only executes ONE time... then it stops (end of script) instead of looping. ; berichtenbox weergeven MsgBox(0, "Welkom! Valkyr zijn Auto Skinner v1.0", "Welkom in valkyr zijn Auto Skinner versie 1.0" & @CRLF & "Dit programma mag je gebruiken op EIGEN risico." & @CRLF & "Je kan hiervoor verbannen worden, maar tot op" & @CRLF & "heden is het nog NIET gedetecteerd!"); ; wraag de gebruiker hoe vaak deze wilt klikken $counter = InputBox("uhmmm...", "Hoe vaak wil je klikken?") ; loop starten $i = 0 While $i <= $counter ; muis OP de voeten van de character bewegen en klikken met de linker muisknop MouseMove(972, 550); MouseClick("left"); ; 1 toevoegen aan de counter $i = $i + 1 ; 20 seconden delay invoegen Sleep(20); ; loop afsluiten WEnd When I put in 10 in the box, it should loop the script 10 times, instead if runs the script one single time and that's it...
  13. i did so but still it wont continue somehow lol... mij code: ; berichtenbox weergeven MsgBox(0, "Welkom! Valkyr zijn Auto Skinner v1.0", "Welkom in valkyr zijn Auto Skinner versie 1.0" & @CRLF & "Dit programma mag je gebruiken op EIGEN risico." & @CRLF & "Je kan hiervoor verbannen worden, maar tot op" & @CRLF & "heden is het nog NIET gedetecteerd!"); ; wraag de gebruiker hoe vaak deze wilt klikken $counter = InputBox("uhmmm...", "Hoe vaak wil je klikken?") ; loop starten For $i = 1 to $counter ; muis OP de voeten van de character bewegen en klikken met de linker muisknop MouseMove(972, 550); MouseClick("left"); Sleep(20); ; verder gaan Next and the log message: >"C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "C:\Users\Angelo\Desktop\pikken.au3" /autoit3dir "C:\Program Files\AutoIt3" /UserParams +>22:25:19 Starting AutoIt3Wrapper v.2.0.0.1 Environment(Language:0413 Keyboard:00020409 OS:WIN_VISTA/Service Pack 1 CPU:X64 OS:X86) >Running AU3Check (1.54.14.0) from:C:\Program Files\AutoIt3 +>22:25:19 AU3Check ended.rc:0 >Running:(3.3.0.0):C:\Program Files\AutoIt3\autoit3.exe "C:\Users\Angelo\Desktop\pikken.au3" +>22:25:27 AutoIT3.exe ended.rc:0 +>22:25:28 AutoIt3Wrapper Finished >Exit code: 0 Time: 9.525
  14. EDIT: Dusnt work lol, no error BUT when I am in the program it self (where it needs to click) it will only click once, then it stopt and does nothing anymore. Does the loop not work? ; berichtenbox weergeven MsgBox(0, "Welkom! Valkyr", "Welkom!"); $counter = InputBox("uhmmm...", "click how many times?") For $i = 1 to $counter MouseMove(972, 550); MouseDown("left"); Sleep(20); ; verder gaan Next
  15. lol i do NOT want to keep repeating a inputbox!!! I want to do a simple mousemove + click. So i.e. the user fills in the number 10 in the input box, $counter = InputBox("Hoe vaak pikken?", "Aantal keren dat je wilt pikken: ", "1"); then the script MouseMove(972, 550); MouseDown("left"); Sleep(15); should be executed 10 times...
  16. I get errors for($i = 0 to $counter) { MouseMove(972, 550); MouseDown("left"); Sleep(15); } Says: C:\Users\Angelo\Desktop\pikken.au3(8,4) : ERROR: syntax error for( ~~~^ C:\Users\Angelo\Desktop\pikken.au3 - 1 error(s), 0 warning(s)
  17. so this should work?: ; vragen hoe vaak we zullen pikken $counter = InputBox("times??", "times: ", "1"); ; de loop maken maal het aantal van de inputbox for($start = 1 to $counter) { ; muis OP de voeten van de character bewegen en klikken met de linker muisknop MouseMove(972, 550); MouseDown("left"); Sleep(15); } oh and another question if i may, is it possible to set 1 or 2 colors which the mouse should automaticly click on? i.e. if(color="#FF88CC") { MouseClick("left"); } do not watch the language, its just gibberisch but you know what i mean right?
  18. Dear readers, I have a pop-up box (inputbox) where someone should fill in a number i.e. 5. Then the script should execute (loop) 5 times... can someone tell me how to do it? Ive been reading forums and manuals for 3 days but i cant figure it out... my script is as follow: ; berichtenbox weergeven MsgBox(0, "blablabla", "blablabla!"); ; vragen hoe vaak we zullen pikken InputBox("times?", "how many: ", "1"); ; HERE SHOULD BE THE LOOP FOR THE SCRIPT UNDERNEAT HERE! ; muis OP de voeten van de character bewegen en klikken met de linker muisknop MouseMove(972, 550); MouseDown("left"); Sleep(15); Hopefully someone can help me out Best regards
×
×
  • Create New...