EdDyreen Posted March 16, 2011 Posted March 16, 2011 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
wakillon Posted March 16, 2011 Posted March 16, 2011 You can open mouse properties withRun ( "rundll32.exe shell32.dll,Control_RunDLL main.cpl,@0,2" )but Mouse settings can be done via registry...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.0 - WIN 8.1 X64 - Other Example Scripts
Juvigy Posted March 17, 2011 Posted March 17, 2011 $oWMI.ExecQuery is a WMI windows function. You can find the details for WMI via google. It is not an native AutoIt function.
EdDyreen Posted March 19, 2011 Author Posted March 19, 2011 GREAT :-) • Any number images • Images of any size • Any number of URLs • Any number of lines
Andreik Posted March 19, 2011 Posted March 19, 2011 Check function using WMI object to get process list informations.
EdDyreen Posted March 19, 2011 Author Posted March 19, 2011 but Mouse settings can be done via registry... 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now