Jump to content

fry

Active Members
  • Posts

    22
  • Joined

  • Last visited

Everything posted by fry

  1. Mwuhahaha,I like the way you think sccrstvn93.
  2. Very nice work and another great example of what AutoIt is capable of in the right(competent) hands.This little program could probably have many different uses,from programming to trouble shooting.Thanks for sharing it with us and for showing those of us that are still struggling with the simple things(*cough*me*cough*,what is possible.
  3. If i'm not mistaken there is already some script(s) for dragonfable,although i'm not posative.As for the 1012 resolution,ya i'm still perplexed by that,I know my card(ATI) doesn't support it.
  4. I was trying to test this,but my comp doesnt support that resolution. Maybe in your next release(if there is one),you could convert,add a setting option,or make a version that works with 1024X768 resolution as I think thats the closest "normal" resolution setting to the one you use and require for your script to run properly.Thanks for sharing the code and allowing others to learn from it. :">
  5. Maybe a looping search around cursor when the cursor is over a certain color.For example if your cursor is over a red area have it seach for a checksum or color within 50 pixels in all directions and if it matches left click.Only problem I see with that is to me it seems it would lag behind a bit when you move the cursor fast,not to mention you might have to make the loop so short it would take up crazy amounts of cpu,but thats the first/only idea I can think of,then again more than likely you know more than I about autoit and it's capabilities.
  6. Well I have a few current projects and one is basically some web automation wich ive done fairly succsesfully but thought If I could learn enough to understand the above code maybe I could make it a bit better.I'm sure theres alot of more appropriate methods that could/should replace pixelsearch and the like but for people such as myself it's just the easiest starting point.So in short my point in this thread was nothing more than to see exactly how franks above code works and then why I couldn't get the two into one script,but now I can look at it for hours and scratch my head until I figure it out or get miffed and do something else until my heads clears up a bit. Edit:Oh and if you meant what i'm trying to do next,after I figure this out i'm gonna look into a way to list multiple results,meaning it'll return the x,y of each found,not just the first found.It'll be tough but i'll figure it out sooner or later and actually although this will be of use in one project it's just part of my "Find an AutoIt project to keep you busy and learn from in the process".
  7. Thanks a bunch larry,it's times like this I wonder if some steps got skipped when I was made,you know kinda like those little lego kits,the box shows a car and I manage to make a plain with one wing shorter than the other.Anywho thanks again and for creating and maintaining this language. P.S. I'm fairly sure most of the above is misspelled,sadly english is my first and only language,i'm just stupid...stupid and tired wich is a dangerous combination.
  8. Granted it's probably just me seeing how I didn't sleep a wink lastnight,but for the life of me I can't make the PixelAreaRecord and the PixelAreaFind into one fully working script.It's not a big deal or anything,but I was just tired of all the open tabs in scite and i'm also trying to learn from larry's example/scripts and it's tedious switching back and forth.Yes I renamed the variables that would conflict with eachother and edited the tooltips but other than that I don't see where/what is stopping it from working correctly.Anywho if anyone has any ideas or has already accomplished the same thing maybe you could give me a few pointers.Try not to be too brutal as i'm at most an idiot on good days and today is not a good day.
  9. Thanks for the new koda version and for sharing it with the community.I'm just now starting to mess with some of the newer and more complex GUI functions/commands and i'm sure koda will be of great help.
  10. I think what he was trying to point out,if im not mistaken is that pxelsearch only goes top to bottom and left to right so your giving it arguments it cant use.if you want to start at 546,460 you can only search from that point on to the right and bottom. http://www.autoitscript.com/forum/index.ph...;hl=pixelsearch This may help us more visual learners,some of use need a visual along with the explanation in order to understand a subject fully.So your first two coordinates in pixelsearch() are your starting x,y and the second coordinates are your finishing coordinates,and since pixelsearch only goes left to right,top to bottom your use was trying to use it in revers,or basically you told autoit to look for a pixel in a way/place it didn't/couldn't understand.Hope this helps and that you understand my remarks
  11. I'm not one of the guru's here or anything,infact im a perpetual n00b but it seems to me that theres an error in your included IE udf,since your snippet that you posted has neither 311 lines nore any case statement.Also it could be that your trying to use beta only funtions while using/running normal autoit,not wich as i've just recently pickeded up autoit again and dont know/remember if the current non beta release uses/includes the IE.au3.Either way try redownloading the IE.au3 and if thast doesnt work download,install,then beta run your current example again. p.s. as I said i'm a perpetual n00b so I could be completely wrong,but atleast I tried to help by giving you my opinion.
  12. I hope you dont mind if i try to learn from this,although more than likely i'll get discouraged and use this instead.Either way thanks for sharing your code with us.
  13. Okies,as i've gotten the last part worked out and running fine thanks to many kind members on this forum,it's time to move on to the one I figured would be the hardest.Same project different part.I need to add to large numbers together and then use the result in an equation.Whats horrible is first of all I can't figure out the equation on paper/in my head much less codeing it.But since I can;t even get the 2 values to add together and it show correctly it's not worth worying about at this point.Below is an example of what i'm now trying to do.I first need to round these two numbers by 2.I know that the rounding of the 2 numbers by 2 is part of the equation,I just can't get the rest lol.Now after the two numbers have been rounded they need to be added together and this is the bad part,they are huge.Example 25766891049 + 4038030212 .If i'm not mistaken both of those numbers are too large to handle in autoit,that is unless one of you know of a way to break down the numbers and then somehow reassemble the answer correctly.If anyone can help me with this problem it would be greatly appreciated.
  14. Ahh,I was looking only at 48 and 57 not 48-57 or i woulda picked that up,go figure.Thanx again,now i'm stuck on the math,but thats another thread
  15. Before Valik posted "his method" i also was using the stringinstr and had some success.Valik could you do me a favor and explain why $i = 48 and the $i = 57 I know it's to make it skip numbers but i'm trying to learn here,not just copy and paste,so could you explain what the 48 and 57 are for/represent?I'm more than likely reading something wrong and god knows i'm no genious and I didn't sleep lastnight,but it seems that the if $i = whatever is the part that is used to compare against,like if 48 or 4 or 8,but obviously thats not it because this code works perfectly.I also checked the ASCII codes and niether 48 or 57 are something you could use to tell that the rest of the thread up to this point has been filtered and after this point is numbers.Basicaly,since i'm making no sense whatsoever just maybe comment explain your code a bit more for this ignorant n00b.
  16. Thanx Valik,I had just realized I could do it that way and was reading through the help to pin down exactly how i wanted to do it and how it would best be done and you showed me a great way.Sadly this is only the first handful of lines in this "little" project thats growing like crazy.
  17. I can try that I guess,i'm new to autoit 3,so you'll see why I never even thought about that as all the if then else stuff is new in v3.If thats the best way to do it then i'll try it out and thanks for the quick reply. Oh I just thought about your method and if I do it that way i'll have the numbers 64 infront of the rest,so then i'd have to make it alway remove the first two numbers wich are 6 and 4
  18. Basicaly I've got a line written to a text file.Now I want to clean that same line of all non numeric characters or do the stringtrimleft/right thing.Example of what I need to do is below. blah^&@toishnfnf5643456hjdlasnbf_+!~dhfue*# I want to filter that line down to just 5643456 and then right it to a file.I already know how to right it to a file,but just cant get past the filtering part.Just so you guys don't think i'm doing anything evil i'll tell you exactly what i'm doing.I'm copying,then renaming a XML file to a txt,then copying a few lines out of that text file.The reason I only want numbers and nothing else is it contains the download and upload totals of the program.Then i'm going to have to make some simple(i hope) math equations and then right the correct amounts of uploaded/download and total amount in Gigabytes.All that comes later though rightnow i'm stuck on filtering a few lousy lines
×
×
  • Create New...