xJilo Posted September 15, 2020 Posted September 15, 2020 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
xJilo Posted September 15, 2020 Author Posted September 15, 2020 #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
Danp2 Posted September 15, 2020 Posted September 15, 2020 Was there a specific issue that you wanted us to help you with? P.S. I think you meant to say "can't perform" 😉 Latest Webdriver UDF Release Webdriver Wiki FAQs
xJilo Posted September 15, 2020 Author Posted September 15, 2020 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.
xJilo Posted September 15, 2020 Author Posted September 15, 2020 and also I'm new here and still learning 😁
Danp2 Posted September 15, 2020 Posted September 15, 2020 That's nice... but we're here to offer assistance; not write scripts on demand. So you will need to put in some additional effort to solve this on your own. This isn't an area where I've done much work, but I imagine you will find some working examples if you search the forum. Latest Webdriver UDF Release Webdriver Wiki FAQs
xJilo Posted September 15, 2020 Author Posted September 15, 2020 But can you assist me for reference for this topic.
seadoggie01 Posted September 15, 2020 Posted September 15, 2020 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 functionsAcro.au3 UDF - Automating Acrobat ProToDo Finder - Find #ToDo: lines in your scriptsUI-SimpleWrappers UDF - Use UI Automation more Simply-erKeePass UDF - Automate KeePass, a password managerInputBoxes - Simple Input boxes for various variable types
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