Jump to content

Scriptie

Members
  • Posts

    6
  • Joined

  • Last visited

Everything posted by Scriptie

  1. I tried use Fraps in order to make a timelapse. There's a setting where I can make it shoot a screenshot every chosen second. For this time I used every 3rd second to shoot a screenshot. Then I will use Vegas to import these as image sequences. And here's a screenshot on the problem: http://prntscr.com/35mwe1 Problem is simply that Fraps are naming those files as the window title (the game in this case) AND date+time. Vegas doesn't recognize the order somehow and therefor I can't make timelapse out of it. I can fix this manually by just naming all the files in order, to something like File_0001, File_0002, File_0003 and so on. This of course will take loads of time when I have houndreds of images. Therefor I wonder if there's any script out there, that can help me? Or atleast if you may say if this is possible using AutoIT? or however I do this? The images in the folder is in order, and I can just order them by name and it will be fine. However vegas seems not to be able to make this a sequence even though windows 7 that I use, can do it. Tips of how I can do?
  2. Hello, I been using AutoIT for several years ago, got some basic knowledge in the basic programming. I just want this code to work, the mouse is going to click 10 times, each time will be a minus 35 pixels on width. To do this, my code is this: sleep(5000) reset() Func reset() $startX = 857 $startY = 675 $count = 0 start1() EndFunc start1() Func start1() If $count =< 10 Then Mouseclick("left",$startX,$startY) $startX = $startX - 35 $count = $count + 1 start1() Else Exit EndIf EndFunc I don't understand what the fault is? At first I put a sleep. Then I tell it to go to reset function, right? In reset function I reclare my variables. It end the function with going to the start1 function, where it simply just watches so the count is 10 or smaller, and if it is, it will click on a location. After that it will minus the width with 35 px, and the count will make an addition of 1. Then it will loop this, until it's up on 11 at count, at that time it will exit the script. So, what is really wrong here? I even tried to put the variables on top of the sleep but nothing really happends then. Thanks in advance.
  3. I remember for years ago when I first used AutoIT I'd a code where I could make the script wait for a site. Not by title, but by the HTML page itself by choosing a word or code that's on the page. If I remember correct it shall be WinWait? Though I've tried to use both WinWaitActive and WinWait, with one word of the title (not the whole) and then a word that I've on the HTML page. But it doesn't seem to work! Do anybody know what function I'm looking for?
  4. Aahh alright thanks!
  5. Hey, how can I check a range of colors with PixelSearch command? The helpfile says PixelSearch ( left, top, right, bottom, color [, shade-variation [, step [, hwnd]]] ) But I don't seem to get it right. $5 = PixelSearch(457, 579, 520, 600, 0xd9d1d5, [100]) $5 = PixelSearch(457, 579, 520, 600, 0xd9d1d5[100]) $5 = PixelSearch(457, 579, 520, 600, 0xd9d1d5 [,100]) All of these gives error, I don't understand the helpfiles describes
×
×
  • Create New...