Jump to content

amokoura

Active Members
  • Posts

    307
  • Joined

  • Last visited

Everything posted by amokoura

  1. Check out manual -> UDF -> IE. There might be some helpers for enumerating website buttons and inspecting their properties.
  2. I've had the same problem sometimes. I recall there was a unfixable bug in Scite that caused the behaviour. There were some threads about the problem also.
  3. A very nice function collection, thank you! I had to calculate the full desktop area minus taskbar's dimensions. Therefore I needed _TaskBarGetSide() and _TaskBarGetPos(). Feature request: A function to tell whether Autohide is on or off. Maybe the info is found from registry somehow.
  4. Works brilliantly, thank you!
  5. Impressing! Anyone else think this could be attached to the official UDF collection?
  6. Thanks, it'll make the code cleaner. Apparently the actual implementation is similar, though.Anyways, the UDF look very nice. Don't have to remember the hex codes anymore. It should be attached to the official UDF collection!
  7. Keyboard Beep Prank: On every key press, PC beeps with a random frequency. I'll install this to my co-workers pc before I leave the company. The implementation feels quite poor, any improvement ideas? #NoTrayIcon #include <Misc.au3> $dll = DllOpen("user32.dll") While 1 for $i=1 to 221 If _IsPressed(Hex($i, 2), $dll) Then beep(random(100,1000,1), 100) ExitLoop EndIf Next Sleep ( 100 ) WEnd DllClose($dll) EDIT: Changed the beep frequency to random instead of a calculation based on the key hex. Cooler effect.
  8. The answer is in the manual
  9. A wild guess: They're "special" icons. Their visibility should be checked from the registry.
  10. If it's true, the function should return a Collection object. Probably the Count property isn't set then. As the manual says, using @EXTENDED should also give the link count. But i don't know, error checking by evaluating the link count sounds tricky. Maybe the page should be checked some other way before going any deeper.
  11. OK I guess _IELinkGetCollection failed and didn't return any object at all. How about checking _IELinkGetCollection's errors (Check out from manual) before using its data.
  12. I presume the links object is a normal collection object. You could then use the Count property: if $IE_Links.Count = 0 then MsgBox(0,0,'Link count zero!') endif
  13. I guess Autoit's goal is to be a simple scripting and automation tool. No radical changes like OO is needed....Although I'd love that feature If autoit feels too simple, it might be time to move to another language.
  14. A very fascinating idea! However, I'd rather use some true OO language with AutoItX. Then you get two things at their best combined.
  15. Try using Excel ActiveX control.
  16. I'm just guessing, but could you use VB scripting objects inside AutoIt? If VBScript supported ByRef, then you could create some kind of a hack...
  17. Use COM error handling. Manual: Obj/COM Reference -> errors The forum should also have some nice COM error handling examples.
  18. Check out manual: "Obj/COM Reference" Then you can create Office objects. Google for example "excel object model" for more information about the structure and methods. Search the forum also, there are gazillion examples.
  19. Thank you for sharing your experiences. I was really attracted to the regree solution and was about to use it. Seems that the best approach is to use the plain dll. At least then I wouldn't have to struggle with the same problems as you have been fighting with..
  20. Does this help at all?: RegFreeCOM Au3X Example, Use RegFree to Solve DLL Hell, Even With COM Clients
  21. Could a tabbed window have another tabbed window inside? As a child window, I mean.
  22. Glad to help! AutoIt requires parentheses every time when calling functions/procedures/methods. One exception: COM object's method without parameters can be left without parentheses. So these are the same thing: $oObject.SomeMethod() $oObject.SomeMethod
  23. Use the Default keyword for an empty parameter. adAsyncExecute seems to be some constant, I'll use number 5 just for example. So try this: $objCommand.Execute(Default, 400, 5)
  24. Wrap the code that Martin gave inside a function and there you have an uber Ubound
  25. This dude had also some AutoItX WinExist problems: http://www.autoitscript.com/forum/index.ph...c=78395&hl=
×
×
  • Create New...