Jump to content

darkmaster071

Active Members
  • Posts

    88
  • Joined

  • Last visited

Everything posted by darkmaster071

  1. Thank you Melba23, it works very good!
  2. Its just a simple MouseMove function. I want to make the speed of the cursor constant for better overview of tooltips that show up in its path. The speed of the cursor at start is good, the speed i want. But at the end it becomes annoyingly slow. HotKeySet("{NUMPAD0}", "MoveCursor") While 1 Sleep(50000) WEnd Func MoveCursor() MouseMove(1017, 752, 0) MouseMove(1016, 320, 60) EndFunc
  3. I'm having trouble with a simple mousemove function. The cursor seems to be moving fast at the start and then slowing down as it is reaching the destination. It is essential for me that the cursor is moving at the same speed at all time. Note that the speed variable in the function is not my problem, but the uneven speed of it. Help is much appreciated, thank you.
  4. I want to make hotkeys like Q+1, F+2. Can someone please explain if this is possible. Thanks, help greatly appreciated.
  5. Thanks, got it working by further conditioning and looping _IETagNameGetCollection(). Usefull stuff.
  6. Im having trouble clicking these buttons. I tried to use _IEgetobj functions but i cannot get it to work. Also: $oTDs = _IETagNameGetCollection($IEvar, 'div') For $oTD In $oTDs If $oTD.className = 'button1' Then _IEAction($oTD, 'click') ExitLoop EndIf Nextand it didnt find the button. Help greatly appreciated. Thanks. Uploaded a (modified)picture from firebug for easier readability =)
  7. I need to click some buttons that are type: <input type="hidden" value="1" name="id"> <input type="hidden" value="2" name="id"> <input type="hidden" value="3" name="id"> ... I have tried everything, and i still dont know how click these buttons. Help appreciated, thanks.
  8. I stripped down my code, showing you the thing that doesnt work. I want it to click through 5 links and wait for them to load, so i can continue with my code. If the tabs arent fully loaded my script could fail. So... Why doesnt _IELoadWait($IEvar) wait for opened tabs to load? I am seeing it cycle through the clicks, but tabs open over eachother when they are not loaded yet. #Include <IE.au3> $IEvar=_IECreate("www.url.com", 1, 1, 1, 1) $imagesclicked=1 While $imagesclicked<6 Switch $imagesclicked Case 1 _IEImgClick($IEvar, "image1.gif") Sleep(500) ;just in case... _IELoadWait($IEvar) Case 2 _IEImgClick($IEvar, "image2.gif") Sleep(500) _IELoadWait($IEvar) Case 3 _IEImgClick($IEvar, "image3.gif") Sleep(500) _IELoadWait($IEvar) Case 4 _IEImgClick($IEvar, "image4.gif") Sleep(500) _IELoadWait($IEvar) Case 5 _IEImgClick($IEvar, "image5.gif") Sleep(500) _IELoadWait($IEvar) EndSwitch $imagesclicked=$imagesclicked+1 WEnd
  9. I have more tabs opened in IE8 and _IELoadWait() starts to fail to wait on tabs, even if they are currently focused. Anyone can think of a reason why this happens and how to fix it (or maybe im the only one experiencing this?) Thanks.
  10. Ive come across a situation where i need to use _IEImgClick function and click on a certain random coordinate on that picture. Also i cant use ControlClick for what i need. I examined the function and found that it clicks the image using this: $img.click So can someone tell me what this .click even is, and if it can be assigned additional coordinates on that image? Help is greatly appreciated. Thanks.
  11. Question: Can you display a picture without saving it to a file and then opening it? Because in the _screencapture helpfile it says: "If FileName is blank, this function will capture the screen and return a HBITMAP handle to the bitmap image" But how to display it? Putting it into the GUICtrlCreatePic() function seems to do nothing. Help greatly appreciated.
  12. Yea i cant install it either. Maybe its outdated or something. Do i need to get an older version of firefox for it to work? Does anyone know?
  13. I have an application that shows absolutly no controls, i only have a window title. So i tried this: $hWin = WinGetHandle($title) $hButton=ControlGetHandle($hWin, "", "") ControlClick($hWin, "", $hButton, "left", 1, 830, 453) Controlsend works just fine with this, but controlclick is messy. It does click, but it doesnt click where i want it too. As the autoit windowinfo offers no control coords, i put the application in full screen and used my normal mouse coords in the code. I thought it would work out as the controlclick coords are the same as my windows pixel resolution coords. I dont know why it doesnt work. Does anyone know how i could do this and how should i get the coords? Help greatly appreciated. Thanks.
  14. So i have a big string and i need to search for a certain sentence in it. Then i need to get the line number in which this sentence was found and copy that entire line into another variable. I see that StringInStr gives me the position/number of chars where that substring is located. But i need a line number and a way to get that entire line. Is there a way to do this? Thanks, help greatly appreciated.
  15. Hi, im wondering if there is a function or any way to delete text content of a text file (.log file) without deleting the actual file. I have been searching through the help file and the forums but ive come across nothing usefull. Help much appreciated. Thanks.
  16. Hi, im searching for a UDF on this forum that i downloaded a long time ago and now i cant find it again. It made your Cheat engine pointer into a read function in Autoit by using clipboard. Anyone know where this is please link me. Help greatly appreciated. Thanks.
  17. I want to make a script that will do certain things when mouse4 or mouse5 gets pressed. So a simple question: Is there ANY way to define those mouse buttons in autoit? PS: I dont want to make hotkeys in the script and make the mouse driver point to them, its not very good with what i need.
  18. Yep, works. I knew that someday the autoit all-in-one variable will get to me Thanks for your help and your fast reply.
  19. I have a loop like this: While $count<=$total ... and when $count gets bigger then 1 it passes the loop. $total is always 14. 2<=14 -false 5<=14 -false ...? Anyone got any ideas? Weird thing is that the loop worked perfect until recently and i havent changed any of its content. I only changed how $count value gets set. That is from an .ini file. EDIT: Yeah it works if i just set a number like $count=5, but it does not work when i have $count=iniread... Why? Help greatly appreciated.
  20. ControlClick("Google - Mozilla Firefox", "", "[CLASS:MozillaWindowClass; INSTANCE:2]", "left", 1, 543, 763) I want to send control clicks to firefox window, but often firefox randomly changes its INSTANCE in control Class. Once its [CLASS:MozillaWindowClass; INSTANCE:2], next run is [CLASS:MozillaWindowClass; INSTANCE:6], then instance 5...... I tried WinGetClassList(); but it gave me nothing usefull. I also tried using functions from FF.au3 and MozRepl but the images-buttons im trying to click are tied to javascript code and i havent had luck even identifying them... Help greatly appreciated.
  21. Um, so i have embeded IE in a GUI and i want to scroll or set the embeded IE somehow so that it will show a certain area of a website, not the starting top left location. Is this possible? Help greatly appreciated. EDIT: think ive got it. its $obj.scrollIntoView()
  22. Cool, works nice. Thanks.
×
×
  • Create New...