
Amaruq
Active Members-
Posts
23 -
Joined
-
Last visited
Everything posted by Amaruq
-
Hello KaFu, You are right it doesn't. But the help file states that an adlid function needs to be kept 'simple'.I'm not an experienced scripter and it's been awhile since I had the need to use AutoIT so as I can't tell what 'simple' is for AutoIT. The triggered function has several things to do, including connecting to and altering databases, so I choose the safe way. Anyway, I hope this helps clear things up.
-
Well, it helped . Thanks again!
-
Hello BrewManNH, It doesn't. I wrote that SadBunny's version does everything I need and that is because he did another, for me, more correct interpretation of what I needed.More specifically about how the function is being called without the need to loop _MyFunction.
-
First of all my thanks to all who contributed! By the looks of it I was searching in a too difficult direction. I've tested with all supplied scripts and it looks like only SadBunny's versions does everything that I need. So I'll be going with that one. Once again, thanks to all who took the time to have a go at this!
-
Hello all, I'm using a script that consist of several functions, so far so good. Now I have received a request to delay the execution of one function by 5 minutes, once it is called, without delaying the rest of the script. If the same function should be called again within these 5 minutes it should 'ignore' this most recent call and continue with the previous one. The function uses an array as parameter and gets called upon when the modified date of a file changes. Can anyone point me in the right direction on how to properly handle this please? Thanks in advance.
-
How to get a segment from an Ip adress?
Amaruq replied to franzmicquelini's topic in AutoIt General Help and Support
Try with: StringSplit ( "string", "delimiters" [, flag ] ) This returns an array, the first element ($array[0]) contains the number of strings returned, the remaining elements ($array[1], $array[2], etc.) contain the delimited strings. $array = StringSplit("ip",".") $array[3] would be 3rd segment. -
Hi, I have a generated message, consisting of several lines, that has to be inserted as a new event in the event viewer. I tried with both logevent.exe and eventcreate.exe, and both work BUT ... If I use @LF or @CRLF to create the new lines then the message is cut after the first LF. If I use only @CR, I get the complete message but as one line of text, the CR is ignored. Does anyone have an idea on how to get multiple lines in there ?
-
Thanks gafrost ! I haven't been able to check that cause I haven't been able to select a PC yet due to the problem posted. But good to know it is in there
-
Hello RagnaroktA, I was looking for a pstools GUI but stumbled on this great piece of work. But ... (always that but) I can't seem to work with the filters. There are over 15000 PC's on our AD-domain and every time I refresh it seems to start digging up every single PC. When I enter a single IP or computername in the search field I get Unable to locate computer. Any idea what might be going wrong ? Is it possible to add the option to specify a login and password for pstools ? When I use these I need to log on as local administrator ... Thanks for reading this
-
Here I am ... bumping again The PC where this is running on got a service pack update. Now it is running on Office 2003 SP2 ... and the objget is failing: "Error getting an active Excel object. Error Code: 800401E3" I googled for the error code but I didn't get much wiser. Anyone else having a problem with ObjGet ? Or an idea on how to resolve this ?
-
Thanks to everyones input I have been able to cook up this working test script WinWait("Microsoft Excel");Excel is being launched elsewhere $oExcel = ObjGet("","Excel.Application");Get the excel object if @error then Msgbox (0,"ExcelTest","Error Getting an active Excel Object. Error code: " & hex(@error,8)) exit endif ExcelReady() MsgBox(0,"Status","Excel is now ready !") Func ExcelReady() If $oExcel.Ready = False Then Sleep(1000) ExcelReady() EndIf Return EndFunc Thanks all !
-
Aha ! Looking much better now. Thanks randallc !
-
As I said I'm new to this COM-functionality so please bare with me :"> I get an error on the first line : $MyObject = ObjCreate("Excel.Application"); Create an Excel ObjectError : Unknown function name Do I have to use an include to be able to use these COM functions ? I'm using version v3.1.1 from 7th Apr, 2005
-
I have been trying with ControlGetText and so. Never used COM but will have a look. Thanks Stumpii !
-
Sorry for bumping this but I'm having the same problem. Any idea if this can be done ?
-
Thanks JdeB ! I will do it like that.
-
I'm trying to get the hang of V3, so far so good untill ... I have to display several msg boxes based on variables, something like MsgBox(0,$Title,$Msg) Both variables are being read from an ini-file. The line reads = "Text" & @CRLF & "Text" When I use this and call the MsgBox I get an exact quote as what I entered. Can you tell me what I'm doing wrong ?
-
Thank you very much Holger and Jon !
-
I have also downloaded the lastest release and now wondering if I can download the sample mentioned in the quote somewhere.(assuming this is the screenshot Jon has used here and there to illustrate gui's functions)More perticular I'm looking for an example with a changed color font. Just like the 'Date control expands in to a calendar ...' I just can't seem to figure it out myself
-
Seems like a very handy tool. However the shutdown is triggered from within the exe and the exe keeps running untill the shutdown forces all running applications to close. So this would not give me enough time to let my script run. I have managed to pull it off by monitoring the reg key. Thanks all for the replies !
-
I'm afraid not :/ The problem is that I have to monitor an EXE that will reboot up to 12 times. But it can also be 10 or 11 times. I'm trying another route now and that is monitoring the AutoAdminLogon key in the registry. Hopefully that will work. Thanks for the replies so far !
-
The problem is that I don't control the shutdown parameters. There is a sequence of maximum 12 reboots and only the last one has an altered message => "you must logon to finish" is added. So I'm trying to detect the last reboot by looking at the complete window text.
-
Hello all, I'm trying to detect the following window : >>>> Window Title <<<< System Shutdown >>>> Window Dimensions <<<< X: 631 Y: 455 Width: 282 Height: 251 >>>> Mouse Co-ords (relative to active window) <<<< X: -465 Y: -268 >>>> Window Text <<<< This system is shutting down. Please save all work in progress and log off. Any unsaved changes will be lost. This shutdown was initiated by DOMAIN\USER Time before shutdown : Message Your system will now restart to complete the installation,you must logon to finish But I'm not having any luck at the moment. Any tips or hints ?