Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal

Kavex

Members
  • Content Count

    18
  • Joined

  • Last visited

  • Days Won

    10

Kavex last won the day on September 26 2017

Kavex had the most liked content!

Community Reputation

11 Good

About Kavex

  • Rank
    Junior Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Nvm found the correct section https://wiki.scar-divi.com/Category:File_Functions
  2. I looked over the wiki really quick but nothing popped out at me, is there a function for opening external files? I'd like to write a script that opens a program and starts filling it out
  3. If you print out the Boolean what does it return? I'm guessing a 0
  4. Greetings from a very old member. It took me a while to remember the program name but I finally stumbled across it again so here I am yay! I wanted to throw out a thanks to LordJashin and Freddy for helping me with a script I was making to automatic tasks in a game back in 2012. It was my real first introduction into programming and they were very kind to help me and explain stuff as I worked on the script. Scar Divi opened doors I didn't know I had and I started to dive deeper into the rabbit hole and I came out the other side as a software engineer whom works for HP now. My programming passion started here by tinkering with Scar Divi and having a lot of fun while doing it. I just wanted to throw out a thanks to you guys and let you know that you changed my life. :3 Cheers
  5. Thats the example I needed to figure it out thank you
  6. Ok I've come across come coding issues and since it somewhat related to this current topic I might as well keep it in one spot. [scar] if FindBitmap(x, y, Chansey, 0, 0, ClientBox.X2, ClientBox.Y2) then begin if FindBitmap(x, y, Bait, 0, 0, ClientBox.X2, ClientBox.Y2) then MoveMouse(x, y); Wait(100); ClickMouse(x, y, mbLeft); Wait(1000); end; if FindBitmap(x, y, Chansey, 0, 0, ClientBox.X2, ClientBox.Y2) then begin if FindBitmap(x, y, Bait2, 0, 0, ClientBox.X2, ClientBox.Y2) then MoveMouse(x, y); Wait(100); ClickMouse(x, y, mbLeft); Wait(1000); end; if FindBitmap(x, y, Chansey, 0, 0, ClientBox.X2, ClientBox.Y2) then begin if FindBitmap(x, y, Ball, 0, 0, ClientBox.X2, ClientBox.Y2) then MoveMouse(x, y); Wait(100); ClickMouse(x, y, mbLeft); Wait(200); end; if FindBitmap(x, y, Chansey, 0, 0, ClientBox.X2, ClientBox.Y2) then begin if FindBitmap(x, y, Ball2, 0, 0, ClientBox.X2, ClientBox.Y2) then MoveMouse(x, y); Wait(100); ClickMouse(x, y, mbLeft); Wait(200); end; [/scar] So my current code works but I'm sure it very efficient and not knowing a whole a lot of programming and when I try to change something I'm finding it catching on scar divi's debugger. I'm looking for " if find Chansey then find and click on bait or bait2" then wait and do the same for ball or ball2 (bait and bait2 are two different color bitmaps as well as ball and ball2 I think I need to use a "else" or "or" conditional statement but I'm not sure how to go about that
  7. Kavex

    Tic Tac Toe

    the bot is smarter then me!!! edit: I won one
  8. Bejeweled in Scar that is awesome.
  9. Don't you think it would be wiser to just allow user to create account and start filling out the wiki? How else do you think wiki became wiki today. I guess I request more information TSCARBitmap.TranspColor
  10. Thank you for the information. This has been a very fun project on learning Scar. /looks at wiki and sighs about TSCARBitmap.TranspColor article
  11. The bitmap things is really really cool. I made a bot for pokemon with your help LordJashin. It will walk around and then when it gets into a fight and it will click on fight (of course) and then on different attacks. This is really fun. Thanks for taking the time to tutor a noob like myself. I think programs are only as good as the support you get from the community when your confused and stuck. Trust me I've been looking up tuts and others peoples work like crazy and try to edit or break it apart. Two Questions: 1. Someone told me that bitmaps take up a lot of memory. If this true? 2. When I was looking at the Bitmap Alpha Blending in the "All About TSCARBitmap" I saw Freddy changing the colors of the background. I'm looking if it's possible to ignore the back ground. [scar] Fight := TSCARBitmap.Create(''); Fight.LoadFromPng(ScriptPath + 'Fight.PNG');[/scar] (fight without the background) Because the background is transparent it will not find it at all. I have two backgrounds to worry about so I'm looking to have it just detect whats in the png and ignore any color background. Color 1: (Color: 7175130) Color 2: (Color: 5070016) Fight 1: Fight 2: lol soon this will be the go to infomation thread for TSCARBitmap
  12. Thanks for the explanation and i'm sure it will helps others as well I wish I could program a little better but I guess this is how it starts out. You find something you want to do and learn how to do it. Now if I can only figure out how to make it move mouse to another bitmap after the first one was found then repeat the whole script from the top and work all the way down again. I've looked at other peoples script and been trying to modify the one that was given to me by LordJashin. I'm sure I'll figure it out ... I hope Thanks again
  13. Wow that is a lot more complex then I thought it would be. Thanks! This will help a lot and now time to figure out 99% rest of everything else lol
×
×
  • Create New...