Jump to content

idbirch

Active Members
  • Posts

    43
  • Joined

  • Last visited

About idbirch

  • Birthday 12/06/1980

idbirch's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. I just found this topic because I noticed exactly the same thing. I have a script with no visible window which basically polls a network device every 10 seconds. I've set INetGet to background mode but I still see a busy cursor very briefly every 10 seconds when the script is running. Any way to stop that? I'm running Win7 x64 SP1 is that's relevant. Global $ResponseXMLpath = @TempDir & "PchResponse.xml" While 1 $oResponse = InetGet("http://192.168.0.5:8008/playback?arg0=get_current_vod_info",$ResponseXMLpath,1,1) Do Sleep(250) Until InetGetInfo($oResponse, 2) ; Check if the download is complete. InetClose($oResponse) ; Close the handle to release resources. Sleep(10000) WEnd
  2. I've recently revisited this and found the problem - Windows Server 2003 (and possibly other server OSs) can't seem to extract icons from within a DLL if the icon is referenced by name. I was using code like this: This resulted in no icon being displayed when the script was run on Server 2k3. XP, Vista, 7 etc were all fine. If I sub the icon name for the index, the icon appears so this is the working version for Server 2k3: Only problem now is that my 48x48 icons are showing up incredibly blurry (which I think is why I was using the icon names instead, that fixed the blur issue). Anyone have any ideas why referencing by name would give a pristine icon and using the index would cause blur?
  3. I thought it better to revive a relevant topic rather than start another about an already discussed one. Silly me.
  4. Unfortunately I seem to have found a case where none of the current methods for harnessing the 'Nothing' VB variable work. I'm porting a VB script which does a simple check on backup progress in Symantec Backup Exec System Recovery Manager 8.0.1. The original VB script looks like this: Option Explicit Dim oProgDlg Set oProgDlg = createObject("Symantec.VProProgress.ProgressDlg") Call oProgDlg.ShowProgress(Nothing,True,True,"") And my AutoIt version currently like this: Local $oVBS = ObjCreate("ScriptControl") $oVBS.language = "VBScript" Global Const $Nothing = $oVBS.eval("Nothing") $oVBS = $Nothing $oProgDlg = ObjCreate("Symantec.VProProgress.ProgressDlg") $oProgDlg.ShowProgress($Nothing,True,True,"") But it doesn't work, the Symantec app does nothing at all, no errors are produced either (which is exactly what happens when you replace 'Nothing' in the VB Script with anything else). In the AutoIt version, I've tried 0, "", Default, DIMing a variable with no value and passing that, and the method posted in this thread, nothing works. And when I say nothing works, I mean Nothing doesn't work I'm thinking I will have to just call the poxy VB script externally but that's just dirty, any other suggestions?
  5. I've always wondered why icons created with GuiCtrlCreateIcon don't appear if you run your script or compiled .exe in an RDP session. I though it might be the RDP experience settings but even with everything ramped up to max, icons in my GUI still don't show. Buttons which have ImageLists applied to them (_GUICtrlButton_SetImageList) look OK and icons in message boxes also appear correctly. Is there any way to fix this behaviour? btw, the RDP session is into a Server 2003 box from an XP machine, not sure if that has anything to do with it?
  6. Nice update zorphnog, great to see the gif89 dependency given the boot, is was indeed a pain in the ass. I'm have a bit of trouble running scripts with the new UDF from Scite. I'm running Win7 x64 and although if I compile the script (in x86) it works fine, running directly from Scite insists on using AutoIt3_x64.exe which crashes completely whenever the Busy aninamtion is switched off. Is there any way you can resolve the x64 crashing or alternatively, suggest a way to get Scite not to use AutoIt3_x64.exe? Thanks.
  7. No, I'm definitely using the right function. Here's the console output for the Win7 x64 network tray icon using your example script: I have no idea where it's getting that Tooltip text from as that's not what appears when I hover over it. EDIT: Ugh, turns out the Win7 network icon is a bit temperamental at best, the icon's status was no longer updating in my systray when the connection status changed. I rebooted and now the tips are being read correctly.
  8. One more question - the reason for using this was to retrieve the tooltip text from the network icon but instead of getting "Network - Internet Access", I'm getting "Network System Icon". When I hover the mouse over the tray icon, I see "Network - Internet Access" - is there any way to retrieve this text?
  9. Resolved the problem - I had to copy the UDF from a cached copy of the page yesterday as I was unable to reach autoitscript.com, now that I've re-copied it from the proper page, it's working correctly.
  10. Thanks for taking the time to update this UDF wraithd, it's extremely useful. I'm running Win7 x64 and some of the functions are't working for me. _SysTrayIconCount() works OK and returns the correct number of tray icons but when I try to get down to the interesting stuff, nothing works. For example, _SysTrayIconProcesses() returns an array of blank elements and _SysTrayIconTitles() returns 3 zeroes.
  11. I think I'm having the same problem to a lot of people in not being able to get past the 'xmlns=" line in my XML file I've tried the following workaround: _XMLFileOpen($XMLpath, 'xmlns="http://schemas.microsoft.com/win/2004/08/events/event"') Local $sNodes = _XMLSelectNodes('//Event/EventData') But I'm still getting nothing returned Any help?
  12. I'm having trouble parsing Windows 7 event log XML files with this UDF and I'm a bit lost to be honest. All I can get out of it is the Event child node and not much else. Here's the XML: <root> <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event"> <System> <Provider Name="Microsoft-Windows-Diagnostics-Performance" Guid="{CFC18EC0-96B1-4EBA-961B-622CAEE05B0A}" /> <EventID>100</EventID> <Version>2</Version> <Level>2</Level> <Task>4002</Task> <Opcode>34</Opcode> <Keywords>0x8000000000010000</Keywords> <TimeCreated SystemTime="2009-10-20T07:52:27.036203000Z" /> <EventRecordID>101</EventRecordID> <Correlation ActivityID="{00000000-8B28-0000-FEDE-D9C55751CA01}" /> <Execution ProcessID="1484" ThreadID="1740" /> <Channel>Microsoft-Windows-Diagnostics-Performance/Operational</Channel> <Computer>PC5685</Computer> <Security UserID="S-1-5-19" /> </System> <EventData> <Data Name="BootTsVersion">2</Data> <Data Name="BootStartTime">2009-10-20T07:34:35.687500000Z</Data> <Data Name="BootEndTime">2009-10-20T07:52:22.750290000Z</Data> <Data Name="SystemBootInstance">16</Data> <Data Name="UserBootInstance">12</Data> <Data Name="BootTime">122713</Data> <Data Name="MainPathBootTime">108413</Data> <Data Name="BootKernelInitTime">45</Data> <Data Name="BootDriverInitTime">1124</Data> <Data Name="BootDevicesInitTime">3734</Data> <Data Name="BootPrefetchInitTime">46413</Data> <Data Name="BootPrefetchBytes">392388608</Data> <Data Name="BootAutoChkTime">0</Data> <Data Name="BootSmssInitTime">12053</Data> <Data Name="BootCriticalServicesInitTime">877</Data> <Data Name="BootUserProfileProcessingTime">4283</Data> <Data Name="BootMachineProfileProcessingTime">71256</Data> <Data Name="BootExplorerInitTime">1775</Data> <Data Name="BootNumStartupApps">10</Data> <Data Name="BootPostBootTime">14300</Data> <Data Name="BootIsRebootAfterInstall">false</Data> <Data Name="BootRootCauseStepImprovementBits">4210688</Data> <Data Name="BootRootCauseGradualImprovementBits">0</Data> <Data Name="BootRootCauseStepDegradationBits">132</Data> <Data Name="BootRootCauseGradualDegradationBits">0</Data> <Data Name="BootIsDegradation">false</Data> <Data Name="BootIsStepDegradation">false</Data> <Data Name="BootIsGradualDegradation">false</Data> <Data Name="BootImprovementDelta">0</Data> <Data Name="BootDegradationDelta">0</Data> <Data Name="BootIsRootCauseIdentified">true</Data> <Data Name="OSLoaderDuration">2609</Data> <Data Name="BootPNPInitStartTimeMS">45</Data> <Data Name="BootPNPInitDuration">3798</Data> <Data Name="OtherKernelInitDuration">2242</Data> <Data Name="SystemPNPInitStartTimeMS">5533</Data> <Data Name="SystemPNPInitDuration">1060</Data> <Data Name="SessionInitStartTimeMS">7101</Data> <Data Name="Session0InitDuration">7509</Data> <Data Name="Session1InitDuration">1402</Data> <Data Name="SessionInitOtherDuration">3141</Data> <Data Name="WinLogonstartTimeMS">19154</Data> <Data Name="OtherLogonInitActivityDuration">11943</Data> <Data Name="UserLogonWaitDuration">869462</Data> </EventData> <RenderingInfo Culture="en-GB"> <Message>Windows has started up: Boot Duration : 122713ms IsDegradation : false Incident Time (UTC) : ?2009?-?10?-?20T07:34:35.687500000Z</Message> <Level>Error</Level> <Task>Boot Performance Monitoring</Task> <Opcode>Boot Information</Opcode> <Channel>Operational</Channel> <Provider>Microsoft-Windows-Diagnostics-Performance</Provider> <Keywords> <Keyword>Event Log</Keyword> </Keywords> </RenderingInfo> </Event> </root> I just want to pull all the EventData items into an array but can't figure out for the life of me how to go about this. Any pointers would be gratefully received.
  13. Hm, well I switched out the function but am getting exactly the same behaviour. Anyone know of a way to reference event logs other than the standard Application, System and Security logs? There must be a way.....
  14. I'm on 32-bit Windows 7 Enterprise (RTM). Yes, I saw in the AutoIt help file that the function will go for Application if the log specified can't be found but how can I get the AutoIt function to find the log? Or how do I get it to use the alternate function OpenEventLogW you mention?
  15. On the machine which fails to run the 2nd RunAs, what happens if you run an Explorer instance with your Domain Admin account and then try accessing \\server6.OurDomain.com\SHARE\Packages\NetAgent 6.0.1710\? Is it actually reachable?
×
×
  • Create New...