Jump to content

cxs

Members
  • Posts

    10
  • Joined

  • Last visited

Everything posted by cxs

  1. Well, thanks for all your help... Must be something related to my Vista 64bit then?, or perhaps some program or.. I don't know.. Anyway, I'm closing this and finding another way to solve it. Appreciate it .. I'll continue learning autoit, it is a great program.
  2. haha ... but it isn't. if I run it without the function the mouse starts moving around my screen and do stuff. If I add a function around it nothing happens. to me there should be no difference between the function or no function in this bit of code. I doubleclick the file with the function around it and exactly nothing happens. no mousemove, nothing. And I realy can't see why your making fun of me when I say it's not working. have any of you actually tested it???, because here on my side nothing happens... and this is the last bit of code I need before I have finished my program..
  3. Ok, I did post this: Hi, thanks for the fast replies. I have tried all I can think of. If I add test() to the top nothing happens. if I remove the "in bold" func test() code.. endfunc and just leave the middle code part and compile, then it works flawlessly. but why not inside the func? I have tried calling the function with test() Func test() code.. Endfunc I have tried nesting it into an test() Func test() $aa=1 If Not $aa=1 Then $aa=1 else the above code I can't get to work Endif Endfunc I know I'm not an autoit genious thats why I'm asking for help, it looks to me like it should be able to be run from inside an Func. but the only way I can get my code to run is making a script like: code.. and nothing else. I sismply can't understand why test() Func test() code.. Endfunc us not working.
  4. quote name='Manadar' date='Feb 26 2009, 10:31 PM' post='649779' Since you need everything repeatedly explained over and over and over. ; READ THE NEXT LINE!!!! test() ; <== PUT THIS HERE!!!!! ; READ THE PREVIOUS LINE!!!!! /quote I have tried that and it's not working. Kinda rude considering that your not helping !.
  5. Hi, thanks for the fast replies. I have tried all I can think of. If I add test() to the top nothing happens. if I remove the "in bold" func test() code.. endfunc and just leave the middle code part and compile, then it works flawlessly. but why not inside the func?
  6. Hi, I simply can't get this to run inside a Func. It runs fine if I remove the func test() and the endfunc and just run or compile it.. but not inside the function. I think I need some help on this one please. Func test() Opt("WinWaitDelay",100) Opt("WinTitleMatchMode",4) Opt("WinDetectHiddenText",1) Opt("MouseCoordMode",0) WinWait("Program Manager","") If Not WinActive("Program Manager","") Then WinActivate("Program Manager","") WinWaitActive("Program Manager","") MouseClick("left",122,959,2) WinWait("earth","") If Not WinActive("earth","") Then WinActivate("earth","") WinWaitActive("earth","") MouseMove(666,573) MouseDown("left") MouseUp("left") WinWait("Flowers","") If Not WinActive("Flowers","") Then WinActivate("Flowers","") WinWaitActive("Flowers","") MouseMove(97,194) MouseDown("left") MouseUp("left") MouseMove(277,595) MouseDown("left") MouseUp("left") MouseMove(427,392) MouseDown("left") MouseUp("left") MouseMove(485,605) MouseDown("left") MouseUp("left") WinWait("Barbarossa","") If Not WinActive("Barbarossa","") Then WinActivate("Barbarossa","") WinWaitActive("Barbarossa","") MouseMove(514,397) MouseDown("right") MouseMove(515,396) MouseUp("right") EndFunc
  7. quote name='monoceres' date='Feb 15 2009, 09:56 PM' post='644671' Thanks alot Monoceres
  8. Thanks to the both of you for your help. I'll go through your example and search some more and come up with a solution. Even if I didn't get what I needed I'm closing this topic. thanks
  9. the .jpgs are not meant to be displayed, the function need to check the actual jpg files. I've looked at pixelchecksum, but haven't found a way to load and compare 2 images. I've tried alot of different things but the actual solution have eluded me. So I hoped someone could help me with this one. I'll try searching again, but if someone know the solution to this one I'd appreciate it.
  10. Hi, I'd like a simple function that can compare 2 jpg images and return a true or false. something like If all pixels in c:\1.jpg = all pixels in c:\2.jpg then ToolTip("image 1 and 2 are the same", 0, 0, "Image Found", 1) Else ToolTip("image 1 and 2 are not the same", 0, 0, "Image Not Found", 1) EndIf I have spent several hours trying to find out how to do this and searched the forums etc, but I haven't been able to make anything that works.
×
×
  • Create New...