Jump to content
Sign in to follow this  
EdDyreen

VBScript commands in autoit

Recommended Posts

EdDyreen

I have a function named 'Func Process_List_Properties ( $process = "", $sComputer = "." )'

it uses this command: $oWMI.ExecQuery

I looked it up in the help but it isn't listed there ?

Why isn't this command listed in autoit help & what does it do ?

I would like to include this VBSCRIPT:

dim objShell

set objShell = CreateObject ( "Shell.Application" )

objShell.ControlPanelItem ( "main.cpl @0,2" )

So far, this is what i have:

$objShell = ObjCreate("shell.application")

I am using au3 in a virtual machine so i need to enable mousetrails otherwise mouse won't work !

Any suggestions ?


• Any number images • Images of any size • Any number of URLs • Any number of lines

Share this post


Link to post
Share on other sites
wakillon

You can open mouse properties with

Run ( "rundll32.exe shell32.dll,Control_RunDLL main.cpl,@0,2" )

but Mouse settings can be done via registry...Posted Image

RegWrite ( 'HKEY_CURRENT_USER\Control Panel\Mouse', 'MouseTrails', "REG_SZ", 1 )
RunWait ( "Rundll32.exe user32.dll,UpdatePerUserSystemParameters" )

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Share this post


Link to post
Share on other sites
Juvigy

$oWMI.ExecQuery is a WMI windows function. You can find the details for WMI via google.

It is not an native AutoIt function.

Share this post


Link to post
Share on other sites
EdDyreen

GREAT :-)


• Any number images • Images of any size • Any number of URLs • Any number of lines

Share this post


Link to post
Share on other sites
Andreik

Check function using WMI object to get process list informations.


When the words fail... music speaks

Share this post


Link to post
Share on other sites
EdDyreen

but Mouse settings can be done via registry...Posted Image

RegWrite ( 'HKEY_CURRENT_USER\Control Panel\Mouse', 'MouseTrails', "REG_SZ", 1 )
RunWait ( "Rundll32.exe user32.dll,UpdatePerUserSystemParameters" )

That seems to work, that is i can see the mouseclicks happenning but where is the mouse ???

If i use 'rundll32.exe shell32.dll,Control_RunDLL Main.cpl' to enable mousetrails the mouse won't vanish.

That's weird :)


• Any number images • Images of any size • Any number of URLs • Any number of lines

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.