Jump to content



Photo

WMI ScriptOMatic tool for AutoIt


  • Please log in to reply
101 replies to this topic

#81 M a k a v e l !

M a k a v e l !

    Seeker

  • Active Members
  • 37 posts

Posted 16 February 2009 - 01:50 PM

For an April 16 2005 topic, this is great SvenP.

Thanks for sharing this.wmi.script
M a k. a v e L !Posted ImagePosted Image





#82 VirtualRider

VirtualRider

    Seeker

  • New Members
  • 3 posts

Posted 15 July 2009 - 04:40 PM

Receiving the following errors when trying to launch AutoIT Scriptomatic (AutoIT 3.3.0.0 and SciTE 1.78 installed):

C:\Documents and Settings\Administrator\Desktop\scriptomatic.au3(27,117) : WARNING: $WS_OVERLAPPEDWINDOW: possibly used before declaration. GuiCreate("AutoIt Scriptomatic Tool", 684, 561,(@DesktopWidth-684)/2, (@DesktopHeight-561)/2 , $WS_OVERLAPPEDWINDOW + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Documents and Settings\Administrator\Desktop\scriptomatic.au3(27,131) : WARNING: $WS_VISIBLE: possibly used before declaration. GuiCreate("AutoIt Scriptomatic Tool", 684, 561,(@DesktopWidth-684)/2, (@DesktopHeight-561)/2 , $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Documents and Settings\Administrator\Desktop\scriptomatic.au3(27,149) : WARNING: $WS_CLIPSIBLINGS: possibly used before declaration. GuiCreate("AutoIt Scriptomatic Tool", 684, 561,(@DesktopWidth-684)/2, (@DesktopHeight-561)/2 , $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Documents and Settings\Administrator\Desktop\scriptomatic.au3(27,117) : ERROR: $WS_OVERLAPPEDWINDOW: undeclared global variable. GuiCreate("AutoIt Scriptomatic Tool", 684, 561,(@DesktopWidth-684)/2, (@DesktopHeight-561)/2 , $WS_OVERLAPPEDWINDOW + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Documents and Settings\Administrator\Desktop\scriptomatic.au3 - 1 error(s), 3 warning(s)


#83 GEOSoft

GEOSoft

    Sure I'm senile. What's your excuse?

  • MVPs
  • 10,563 posts

Posted 15 July 2009 - 04:54 PM

Receiving the following errors when trying to launch AutoIT Scriptomatic (AutoIT 3.3.0.0 and SciTE 1.78 installed):

C:\Documents and Settings\Administrator\Desktop\scriptomatic.au3(27,117) : WARNING: $WS_OVERLAPPEDWINDOW: possibly used before declaration. GuiCreate("AutoIt Scriptomatic Tool", 684, 561,(@DesktopWidth-684)/2, (@DesktopHeight-561)/2 , $WS_OVERLAPPEDWINDOW + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Documents and Settings\Administrator\Desktop\scriptomatic.au3(27,131) : WARNING: $WS_VISIBLE: possibly used before declaration. GuiCreate("AutoIt Scriptomatic Tool", 684, 561,(@DesktopWidth-684)/2, (@DesktopHeight-561)/2 , $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Documents and Settings\Administrator\Desktop\scriptomatic.au3(27,149) : WARNING: $WS_CLIPSIBLINGS: possibly used before declaration. GuiCreate("AutoIt Scriptomatic Tool", 684, 561,(@DesktopWidth-684)/2, (@DesktopHeight-561)/2 , $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Documents and Settings\Administrator\Desktop\scriptomatic.au3(27,117) : ERROR: $WS_OVERLAPPEDWINDOW: undeclared global variable. GuiCreate("AutoIt Scriptomatic Tool", 684, 561,(@DesktopWidth-684)/2, (@DesktopHeight-561)/2 , $WS_OVERLAPPEDWINDOW + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Documents and Settings\Administrator\Desktop\scriptomatic.au3 - 1 error(s), 3 warning(s)

You will have to figure out what *constants files to #include. This script is very old and the files have changed.

I think it's just
#include<WindowsConstants.au3> #Include<StaticConstants.au3> #Include<GUIConstantsEx.au3>

Or you can just use the compiled version in my signature.
GeorgeQuestion about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else."Old age and treachery will always overcome youth and skill!"

#84 delme

delme

    Seeker

  • Active Members
  • 30 posts

Posted 16 July 2009 - 02:47 PM

This looks cool, and looking at the positive feedback I will definatly try this out when I have some time. Thanks for the share :)

#85 VirtualRider

VirtualRider

    Seeker

  • New Members
  • 3 posts

Posted 16 July 2009 - 03:29 PM

You will have to figure out what *constants files to #include. This script is very old and the files have changed.

I think it's just

#include<WindowsConstants.au3> #Include<StaticConstants.au3> #Include<GUIConstantsEx.au3>

Or you can just use the compiled version in my signature.

GEOSoft:
Thanks for the #includes, they worked perfectly. You absolutely rock for including the compiled version in your signature, I downloaded that as well.

#86 jokke

jokke

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 393 posts

Posted 26 August 2009 - 10:58 AM

Anyone actually able to download the file?
UDF:Crypter a file encrypt / decrypt tool with no need to remember a password again. Based on Caesar cipher using entire ASCII Table.Script's: PixelSearch Helper, quick and simple way to create a PixelSeach.Chatserver - simplified, not so complicated multi-socket server.AutoIT - Firewall, simple example on howto create a firewall with AutoIt.Posted Image

#87 pixeldoc

pixeldoc

    Seeker

  • New Members
  • 1 posts

Posted 25 October 2009 - 12:42 AM

You may also include "#RequireAdmin" as its required on Windows VISTA/7.

This is what you need to add:
Tested with AutoIt v3.3.0.0 on Windows 7 RTM.

Change it to look like this:

AutoIt         
; AutoIt ScriptOMatic ; ------------------- ; ; AutoIt's counterpart of Microsoft's Scriptomatic ; ; Author:       SvenP ; Date/version: 2005-04-17 ; See also:     <a href='http://www.microsoft.com/technet/scriptcenter/tools/scripto2.mspx' class='bbc_url' title='External link' rel='nofollow external'>http://www.microsoft.com/technet/scriptcenter/tools/scripto2.mspx</a> ; Requires:     AutoIt beta version 3.1.1.8 or higher (COM support!!) ; ; GUI generated by AutoBuilder 0.5 Prototype #RequireAdmin   ; <--- required for AutoIt 3.3.0.0+ #include <GuiConstants.au3> #include <WindowsConstants.au3>   ; <--- required for AutoIt 3.3.0.0+ ;************************ ;* Global State Variables ;************************ $g_strCurrentNamespace    = "\root\CIMV2" $g_iCurrentNamespaceIndex = 0 $g_strWMISource           = "localhost" $g_strOutputFormat        = "Dialog" ... ...

Edited by pixeldoc, 25 October 2009 - 12:47 AM.


#88 Tlem

Tlem

    Universalist

  • Active Members
  • PipPipPipPipPip
  • 279 posts

Posted 05 April 2010 - 01:52 AM

Here is the version of ScriptOmatic.au3 that I updated for the French forum.
After 5 years, the met bugs are corrected (see details on script) and I took advantage of it to add the translation for French.

Here is thus my contribution.
I know that he can be still improved. :(

Attached Files


Best Regards.Thierry

#89 bluechipps

bluechipps

    Seeker

  • Active Members
  • 12 posts

Posted 09 April 2010 - 03:51 PM

Here is the version of ScriptOmatic.au3 that I updated for the French forum.
After 5 years, the met bugs are corrected (see details on script) and I took advantage of it to add the translation for French.

Here is thus my contribution.
I know that he can be still improved. :(

thanks Tlem!

#90 jazzyjeff

jazzyjeff

    Universalist

  • Active Members
  • PipPipPipPipPip
  • 283 posts

Posted 29 October 2010 - 01:59 AM

Is it possible to add these classes to the script?
MSNdis_80211_BaseServiceSetIdentifier
MSNdis_80211_ServiceSetIdentifier


Great tool by the way!

#91 GEOSoft

GEOSoft

    Sure I'm senile. What's your excuse?

  • MVPs
  • 10,563 posts

Posted 29 October 2010 - 04:16 AM

Is it possible to add these classes to the script?
MSNdis_80211_BaseServiceSetIdentifier
MSNdis_80211_ServiceSetIdentifier


Great tool by the way!

No it isn't possible and the last Sven was seen around these parts is almost 4 years ago so you can pretty much figure that he isn't working on it any longer. I have a modified (Compiled version) available and someday I may get around to fixing some more bugs in it but it's not high on my priority list. Also Tlem has a version that he was working on but I have not looked at it yet.
GeorgeQuestion about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else."Old age and treachery will always overcome youth and skill!"

#92 Morthawt

Morthawt

    Music Maker

  • Active Members
  • PipPipPipPipPipPip
  • 350 posts

Posted 29 November 2012 - 11:34 AM

Sorry to revive a thread thats not new, but I was told this would help with WMI. The only issue is I tried it and it is complaining about variables not being declared. Is there any updates or new versions of similar things that I could check into?

#93 water

water

    ?

  • MVPs
  • 10,663 posts

Posted 29 November 2012 - 11:54 AM

Not that I know of. Can you show us your error messages?

UDFs:

Active Directory (2012-10-12 - Version 1.3.0.0 released) - Download - General Help & Support - Example Scripts - Wiki

OutlookEX (2012-10-07 - Version 0.9.0.0 released) - Download - General Help & Support - Example Scripts - Wiki

ExcelChart (2013-01-21 - Version 0.3.1.1 released) - Download - General Help & Support - Example Scripts

WordEX (2012-12-29 - Version 1.3 released) - Download

ExcelEX (2013-05-11 - Alpha 4 released) - Download


#94 Morthawt

Morthawt

    Music Maker

  • Active Members
  • PipPipPipPipPipPip
  • 350 posts

Posted 29 November 2012 - 04:15 PM

C:UsersWindowsUsernameDesktopscriptomatic.au3(27,117) : WARNING: $WS_OVERLAPPEDWINDOW: possibly used before declaration.

#95 water

water

    ?

  • MVPs
  • 10,663 posts

Posted 29 November 2012 - 04:20 PM

Click F1 in SciTe, Tab "Search" and enter "$WS_OVERLAPPEDWINDOW". Click on result "GUI control styles" and you will see that you need to add "#include <WindowsConstants.au3>" to your script.
The Sciptomatic script is quite old and AutoIt has changed a lot since then. One of those script breaking changes was that constants were moved to separate include files.

UDFs:

Active Directory (2012-10-12 - Version 1.3.0.0 released) - Download - General Help & Support - Example Scripts - Wiki

OutlookEX (2012-10-07 - Version 0.9.0.0 released) - Download - General Help & Support - Example Scripts - Wiki

ExcelChart (2013-01-21 - Version 0.3.1.1 released) - Download - General Help & Support - Example Scripts

WordEX (2012-12-29 - Version 1.3 released) - Download

ExcelEX (2013-05-11 - Alpha 4 released) - Download


#96 Morthawt

Morthawt

    Music Maker

  • Active Members
  • PipPipPipPipPipPip
  • 350 posts

Posted 29 November 2012 - 04:56 PM

Thanks, that worked. Now I just have to figure out how on earth to even use it.

#97 water

water

    ?

  • MVPs
  • 10,663 posts

Posted 29 November 2012 - 05:06 PM

Start Scriptomatic and wait a minute. it takes some time to collect all the necessary data.
When the message "Select a WMI class" is displayed in the "WMI Class" dropdown select one and click "Run".

UDFs:

Active Directory (2012-10-12 - Version 1.3.0.0 released) - Download - General Help & Support - Example Scripts - Wiki

OutlookEX (2012-10-07 - Version 0.9.0.0 released) - Download - General Help & Support - Example Scripts - Wiki

ExcelChart (2013-01-21 - Version 0.3.1.1 released) - Download - General Help & Support - Example Scripts

WordEX (2012-12-29 - Version 1.3 released) - Download

ExcelEX (2013-05-11 - Alpha 4 released) - Download


#98 JLogan3o13

JLogan3o13

    Down to 98

  • MVPs
  • 2,070 posts

Posted 29 November 2012 - 06:10 PM

Thanks, that worked. Now I just have to figure out how on earth to even use it.


Definitely worth the effort. There isn't much you cannot do with a machine through WMI, and Scriptomatic is a great place to start.
J.I spent 10 minutes reviewing code and thinking "What kind of drugs is this guy on?" before realizing it was something I wrote.My Scripts:Include Source with Compiled Script, Disk Maintenance for Windows XP, "Deal-A-Day" Sites, SCCM 2007 Front End, Windows Firewall UDF

#99 Morthawt

Morthawt

    Music Maker

  • Active Members
  • PipPipPipPipPipPip
  • 350 posts

Posted 30 November 2012 - 12:14 AM

It certainly looks interesting and it might just be the thing to help coax me into even giving WMI a slight try.

#100 SlowCoder74

SlowCoder74

    Wayfarer

  • Active Members
  • Pip
  • 85 posts

Posted 30 November 2012 - 01:03 AM

Being a 2005 app, how up to date is it for editing WMI? As in, how much has WMI matured with additions?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users