Jump to content

Recommended Posts

Posted

Please help me for my new project. The function is: When the key is pressed, the script first checks to see if a file is selected in an active Windows Explorer window. If Windows Explorer is not the active window, or if a file is not selected, an error message should appear describing as much. “We can perform a power copy operation, because you do not have a file select.”

 

Z-Key.au3

Posted

#include <Array.au3>
#include <WinAPIFiles.au3>
#include <StringConstants.au3>
#include <FileConstants.au3>
#include <MsgBoxConstants.au3>

While 1

   SplashTextOn("Message Error", "We can perform a power copy operation, because you do not have a file select.", 300, 90, 60, 960, $DLG_TEXTLEFT, "", 12)
   Sleep(3000)
   SplashOff()
   Exit
WEnd

 

Posted

It's a typo but I mean is I want a script that first checks to see if a file is selected in an active Windows Explorer window. If Windows Explorer is not the active window, or if a file is not selected, an error message should appear like a splashtext.

Posted

I'd start here if I were you

All my code provided is Public Domain... but it may not work. ;) Use it, change it, break it, whatever you want.

Spoiler

My Humble Contributions:
Personal Function Documentation - A personal HelpFile for your functions
Acro.au3 UDF - Automating Acrobat Pro
ToDo Finder - Find #ToDo: lines in your scripts
UI-SimpleWrappers UDF - Use UI Automation more Simply-er
KeePass UDF - Automate KeePass, a password manager
InputBoxes - Simple Input boxes for various variable types

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
×
×
  • Create New...