Jump to content

Recommended Posts

Posted

What I would like to accomplish seems like it would be easy via AutoIt, but I'm sure there is more to it. Basically, I need to:

1) Disable the left mouse button (or even better, have the left mouse button take on the actions of the right mouse button)

2) Launch Windows Explorer (for file management)

3) Re-enable the left mouse button once Windows Explorer is closed.

At our company, Windows Explorer is notorious for the much too "quick and easy" way that files and folders can be accidentally moved from one part of the network drive to another causing much gnashing of teeth.

Any help would be greatly appreciated.

Thank you

Posted (edited)

What I would like to accomplish seems like it would be easy via AutoIt, but I'm sure there is more to it. Basically, I need to:

1) Disable the left mouse button (or even better, have the left mouse button take on the actions of the right mouse button)

2) Launch Windows Explorer (for file management)

3) Re-enable the left mouse button once Windows Explorer is closed.

At our company, Windows Explorer is notorious for the much too "quick and easy" way that files and folders can be accidentally moved from one part of the network drive to another causing much gnashing of teeth.

Any help would be greatly appreciated.

Thank you

Windows Explorer

Run("explorer.exe")

Disable mouse and keyboard ; that disable all i'm sorry....

Blockinput(1)

And your script :

ProcessClose("explorer.exe");The process doesn't exist so disable input
Sleep(2000);Sleep 2 seconds for test and run explorer for unblock
Run("explorer.exe")

While 1
Sleep(250)
If Not ProcessExists("explorer.exe") Then;If explorer exists then...
Blockinput(1);Block input
Else
Blockinput(0);Unblock input if explorer exists
EndIf
WEnd

Here you have code for block mouse button : http://www.autoitscript.com/forum/index.ph...mp;#entry495252

Edited by FireFox
Posted

What I would like to accomplish seems like it would be easy via AutoIt, but I'm sure there is more to it. Basically, I need to:

1) Disable the left mouse button (or even better, have the left mouse button take on the actions of the right mouse button)

2) Launch Windows Explorer (for file management)

3) Re-enable the left mouse button once Windows Explorer is closed.

At our company, Windows Explorer is notorious for the much too "quick and easy" way that files and folders can be accidentally moved from one part of the network drive to another causing much gnashing of teeth.

Any help would be greatly appreciated.

Thank you

If @OSVersion <> "WIN_98" And @OSVersion <> "WIN_ME" Then

BlockInput(1)

EndIf

Run("explorer.exe")

WinWaitActive("[CLASS:CabinetWClass]") ; you will need to know what the explorer.exe class name is ... this is the vista class name

;other code you need to run before unblocking inputs

BlockInput(0)

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...