
amokoura
Active Members-
Posts
307 -
Joined
-
Last visited
Everything posted by amokoura
-
How to click button in IE without ID and Name
amokoura replied to __closed's topic in AutoIt General Help and Support
Check out manual -> UDF -> IE. There might be some helpers for enumerating website buttons and inspecting their properties. -
Opening AutoIT Help runs script
amokoura replied to Cusem's topic in AutoIt General Help and Support
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. -
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.
-
Works brilliantly, thank you!
-
IsPressed_UDF ! v2.3 | Advanced keypress
amokoura replied to FireFox's topic in AutoIt Example Scripts
Impressing! Anyone else think this could be attached to the official UDF collection?- 104 replies
-
- _ispressed
- key
-
(and 2 more)
Tagged with:
-
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!
-
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.
-
The answer is in the manual
-
A wild guess: They're "special" icons. Their visibility should be checked from the registry.
-
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.
-
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.
-
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
-
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.
-
A very fascinating idea! However, I'd rather use some true OO language with AutoItX. Then you get two things at their best combined.
-
Try using Excel ActiveX control.
-
!Help - Return Value From a COM object
amokoura replied to oktoberfest2's topic in AutoIt General Help and Support
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... -
Use COM error handling. Manual: Obj/COM Reference -> errors The forum should also have some nice COM error handling examples.
-
How to control office in AutoIT with VBA command?
amokoura replied to TerryHuangqiuguang's topic in AutoItX Help and Support
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. -
How to create multi layered Tabs
amokoura replied to JohnRichard's topic in AutoIt General Help and Support
Could a tabbed window have another tabbed window inside? As a child window, I mean. -
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
-
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)
-
This dude had also some AutoItX WinExist problems: http://www.autoitscript.com/forum/index.ph...c=78395&hl=