Jump to content

user101

Active Members
  • Posts

    27
  • Joined

  • Last visited

Everything posted by user101

  1. yes very nice thank you, but one question when I change my cursor will that effect work that when its hovered over an item the items listener will not react to it?
  2. hello, from what I can tell this opens autoit info but what I really need is just the finder tool cursor that is inside the autoit info tool
  3. I like the finder tool in the autoit window info script is there a way that I can implement it into a hotkey? or at least its function that lets your cursor hover over an item without activating a programs listener if there is a cursor hovering that certain item.. you know like buttons that change in appearance when your mouse is hovering over it.. I want to avoid those that
  4. oh I would like something like this too
  5. yea but I need somewhere to start I need an example so I know how I will use it
  6. I read it but the example doesn't seem to work are there any other examples
  7. no no let me try to rephrase my words, I already know about mouseclick, but you see when you run that it utilizes the mouse cursor to make it move to that location and then click, what I want is something that won't manipulate the mouse cursor and will just send a click internally to the OS that a click has occurred at this location without the mouse cursor having to go to that location I hope you can understand what I am really trying to say
  8. you can probably try armadillo on your exe after to encrypt it
  9. is it possible to have autoit send a click at a x y position by code? instead of by using the mouse cursor to manually click the location? basically I want to free my mouse from my auto clicker script so that I can use it for other purposes while I autoit still runs itself on my program
  10. thanks it works, I tried it on a short script finally its working the way I wanted it to, now im reading in to the mouse on event thing but im thinking how will I make it into an array like you did since each click will be the same unlike hotkeys each one has a different assigned key..
  11. wow I can't believe you rewrote the code for me , I was just hoping for some advice on what I should do haha, thank you, Ive run thru it so many times now but even with your quotes I have a hard time understanding it haha, there are so many parts that Ive never seen before its like I just got done with addition and then you hand me a quadratic equation rofl, but still thank you so much for actually wasting your own time to help me on this im really grateful : ) I will play around with your script a bit until I get what each and every part does exactly , it seems that the step by step part really works but failed in my logic for the program I use it on hahaha but I still need it, all I need to do is take some parts out that will be repeated until the next step is found and then proceed with the step by step procedure , also about the mousesetonevent thing, O_o I read it haha but it only confuses me even more so I will have to stick with hotkeys for now until I learn more about setting them to gui buttons.. maybe you know about this but can you teach me about the idle thing? like lets say the script cannot find any of the pixels it recorded because the program hung (not the script) and it has been idle for a certain amount of time no mouse movement or clicks have been performed for about 1min, how do I get it to press f5 after the idle time is up? Ive really thought this thru haha I tried searching idle on the help topic but find so many random codes that dont apply to what I need it to do... do you know of anything?
  12. hi thank you for your help I appreciate it, ive done a little experementing with what you told me and removed the aReturn variable completely and fixed it just a little bit, so this is my current code after editing it all, and it works for me, but is there any way to make it shorter? I know about multidimentional arrays but when I try to use it I end up with a lot of errors everywhere, I was hoping to shorten my variable's to just 2 multiDimentional arrays, and also im kind of confused with switch and case but some say its better than the if statement, I was kind of hoping for something that proceeds thru the if's by steps, like find do the first if until it is found before moving to the next if statement and so on.. here so far is the code I completed HotKeySet("{ESC}","close") HotKeySet("1","c1") HotKeySet("2","c2") HotKeySet("3","c3") HotKeySet("4","c4") HotKeySet("5","c5") HotKeySet("6","c6") HotKeySet("7","c7") HotKeySet("8","c8") HotKeySet("9","c9") HotKeySet("0","c10") HotKeySet("q","c11") HotKeySet("z","start") ;mouse positions Local $a1[2], $a2[2], $a3[2], $a4[2], $a5[2] Local $a6[2], $a7[2], $a8[2], $a9[2], $a10[2], $a11[2] ;colors Local $b1, $b2, $b3, $b4, $b5 Local $b6, $b7, $b8, $b9, $b10, $b11 Local $v while 1=1 While $v=True If $b1=pixelGetColor($a1[0],$a1[1]) Then MouseClick("left", $a1[0], $a1[1], 1, 5) Sleep(50) If $b2=pixelGetColor($a2[0],$a2[1]) Then MouseClick("left", $a2[0], $a2[1], 1, 5) Sleep(50) If $b3=pixelGetColor($a3[0],$a3[1]) Then MouseClick("left", $a3[0], $a3[1], 1, 5) Sleep(50) If $b4=pixelGetColor($a4[0],$a4[1]) Then MouseClick("left", $a4[0], $a4[1], 1, 5) Sleep(50) If $b5=pixelGetColor($a5[0],$a5[1]) Then MouseClick("left", $a5[0], $a5[1], 1, 5) Sleep(50) If $b6=pixelGetColor($a6[0],$a6[1]) Then MouseClick("left", $a6[0], $a6[1], 1, 5) Sleep(50) If $b7=pixelGetColor($a7[0],$a7[1]) Then MouseClick("left", $a7[0], $a7[1], 1, 5) Sleep(50) If $b8=pixelGetColor($a8[0],$a8[1]) Then MouseClick("left", $a8[0], $a8[1], 1, 5) Sleep(50) If $b9=pixelGetColor($a9[0],$a9[1]) Then MouseClick("left", $a9[0], $a9[1], 1, 5) Sleep(50) If $b10=pixelGetColor($a10[0],$a10[1]) Then MouseMove($a1[0],$a1[1], 5) Sleep(50) If $b11=pixelGetColor($a11[0],$a11[1]) Then MouseMove($a2[0],$a2[1], 5) Sleep(50) WEnd WEnd Func start() if $v = False then $v = True MsgBox(0,"","STARTED") Else $v=False MsgBox(0,"","STOPED") EndIf EndFunc Func c1() $a1 = MouseGetPos() $b1 = PixelGetColor($a1[0],$a1[1]) $b1 = "0x" & hex($b1, "6") EndFunc Func c2() $a2 = MouseGetPos() $b2 = PixelGetColor($a2[0],$a2[1]) $b2 = "0x" & hex($b2, "6") EndFunc Func c3() $a3 = MouseGetPos() $b3 = PixelGetColor($a3[0],$a3[1]) $b3 = "0x" & hex($b3, "6") EndFunc Func c4() $a4 = MouseGetPos() $b4 = PixelGetColor($a4[0],$a4[1]) $b4 = "0x" & hex($b4, "6") EndFunc Func c5() $a5 = MouseGetPos() $b5 = PixelGetColor($a5[0],$a5[1]) $b5 = "0x" & hex($b5, "6") EndFunc Func c6() $a6 = MouseGetPos() $b6 = PixelGetColor($a6[0],$a6[1]) $b6 = "0x" & hex($b6, "6") EndFunc Func c7() $a7 = MouseGetPos() $b7 = PixelGetColor($a7[0],$a7[1]) $b7 = "0x" & hex($b7, "6") EndFunc Func c8() $a8 = MouseGetPos() $b8 = PixelGetColor($a8[0],$a8[1]) $b8 = "0x" & hex($b8, "6") EndFunc Func c9() $a9 = MouseGetPos() $b9 = PixelGetColor($a9[0],$a9[1]) $b9 = "0x" & hex($b9, "6") EndFunc Func c10() $a10 = MouseGetPos() $b10 = PixelGetColor($a10[0],$a10[1]) $b10 = "0x" & hex($b10, "6") EndFunc Func c11() $a11 = MouseGetPos() $b11 = PixelGetColor($a11[0],$a11[1]) $b11 = "0x" & hex($b11, "6") EndFunc Func close() Exit EndFunc it does the following pressing the hotkey's from the numbers 0-9 sets the pixel searcher and mouseposition locator of each corresponding if statement, then when z is hit it will execute, I know its really messy but I organized it as simply as possible, im really new to programming all I have to go with really was the help file and a few tutorial videos on youtube haha but I hope you can understand it
  13. shortly after Ive figured how to do this you post the answer T_T but thank you so much still for this, its much better than what I wrote and ive discovered the use of functions being used in codes by dissecting this, with the tut I thought functions can only be used thru hotkeys hahaha, Im sorry I dont expect anyone to write the program for me I want to do it myself all I need is help like what codes I need to be looking at, about the mouseclicking thing it can be done because that is exactly what au3recorder tool does it saves the inputed clicks you make, if only there was a way to take a look at the code in the au3recorder it would be great and probably help solve my answers.. by the way since your more experienced than me this is the code I just completed going on your advice earlier, Im pretty confused about using the return function and it kept on giving errors so I took it out here is what I wrote HotKeySet("x","_as") Local $a[3] while 1=1 Local $v while $v=0 MsgBox(0, "Mouse x,y:", $a[0] & "," & $a[1] & " color ," & $a[2]) $v=$v+1 WEnd WEnd Func _as() Local $as = MouseGetPos(), $aReturn[3] = [$as[0], $as[1], Hex(PixelGetColor($as[0],$as[1]), 6)] $a[0]=$as[0] $a[1]=$as[1] $a[2]=$as[2] $v=0 EndFunc it's supposed to do exactly what your code (that you just posted) does, and it works for mouse position but when I try to add in the color at $a[2]=$as[2] this is my error Array variable has incorrect number of subscripts or subscript dimension range exceeded.: what did I do wrong?
  14. does no one know how to do this? 70+ views but no replies, im trying here but I cant seem to figure it out on my own.. Ive started with this so far, this is what I want this code to do but doesn't seem to work HotKeySet("z","getmousepos") Local $a[2] Local $b Func getmousepos() MsgBox(0,"wow","hello please click a pos",2) if MouseClick("left") then $a = MouseGetPos() $b=1 EndFunc While 1=1 WEnd if $b=1 then MsgBox(0, "Mouse x,y:", $a[0] & "," & $a[1]) $b=0 EndIf I click z to activate the function, a msgbox pops up telling me to click anywhere on my screen, I then click a any place on my screen and then a message box will pop up that tells the x,y position of that click I made.. can anyone see whats wrong with my code?
  15. I know about those two, and have used them but I tried using the mousegetpos code but it doesn't seem to work when I use the variable it gets saved into, mayber there is something wrong with my code, can you please take a look and spot out my errors http://www.autoitscript.com/forum/index.php?showtopic=108056
  16. thank you so much this is exactly what I needed
  17. okei thanks for the code, but what I want to do is implement the position of the mouse coordinates I click into var3 and also into mouseclick("left", x, y, 1, 5) so this is what will happen, I will make a message box saying please click the item, then the user will click the item on his screen, and then the x,y position of that click will be inputed into the x and y coordinates here mouseclick("left", x, y, 1, 5) and here $var = PixelGetColor (x,y)
  18. Global $xyPos HotKeySet("{ESC}", "Terminate") HotKeySet("z","xyPos") Func Terminate() Exit ToolTip("") EndFunc Func xyPos() $xyPos = MouseGetPos() EndFunc While 1 $var3 = PixelGetColor($xyPos[0], $xyPos[1]) $closeit2 = PixelGetColor(849, 369) If $var3 = $var3 Then MouseClick("left", $xyPos[0], $xyPos[1], 1, 5) Sleep(500) WEnd here is the code ive tried out so far but I keep getting errors i deleted all the other parts and left the main parts to focus on
  19. oh this is good it seems to be part of something I was thinking about, lets say we have a never ending while 1 = 1 code running is it possible to implement this timer outside of my main while loop to refresh my browser every lets say 5mins? I already have my code set to auto login etc but the problem is sometime the browser freezes and needs to be refreshed, even better how can I implement this inorder to do the following? if no clicks or mouse movement is taking place the timer will start to countdown from 30 seconds if there is movement the idle state is canceled but if the 30seconds are up without any movement then it will refresh the browser.. this is great lol ive only been at this reading tutorials and stuff and I already have lots of ideas to make my script full proof haha, my logic is all good but how to implement it is my only problem
  20. oh I know about virtual os but thats definetly not an option for me haha my laptop is already slow as it is >,<.. Im reading about tcp but it the basics are about connecting to a server haha and im already lost on how to get the server ip etc >,< I wonder tho if the server will recognize that its only packets thats being sent to it and not the user personally clicking the items instead..
  21. While 1 $var = PixelGetColor (300,100) If $var = 0xFF0404 Then MouseClick("left", 300, 100, 1, 5) else MouseClick("left") EndIf WEnd ok basically I have read the help file but I just cant figure out how to do this, I have underlined the position value of the pixelgetcolor and mouseclick code also the color of the variable.. What I would like to know is how do I input these manually without having to include them in the code, basically kinda like what the autoitinfowindow does, I wish I could decode it but its too complicated for me as of now.. when you point your mouse at a position it gets its x,y coordinates and also its color hex code, what I want to do is have those value's inputed into the place of the underlined parts of the example code above once I click a certain spot on the screen, can anyone give me some advice?
  22. I was just wondering if anyone knows how to set a pixel search variable manually, I mean like this start program msgbox pops up saying to click a certain position on your screen and the spot you clicked the program will record to a variable its color and then it will be used in the auto clicker program
  23. thank you I will check it out then
  24. thank you so much for your reply, how about my second idea is it possible with autoIt to be able to write a program that sends a certain packet when another packet is received? example: server sends packet A to client client receives and reply's with user chosen packet ? server sends packet b client reply's again with a different user made packet
  25. just one answer would be fine thank you
×
×
  • Create New...