Functions Speed Comparator
-
Recently Browsing 0 members
No registered users viewing this page.
-
Similar Content
-
By jiaojiaodubai
I plan to write an Au3 script to automatically install a PPT plug-in.
Because the button on the installation wizard of the PPT plug-in is not a standard control, I consider writing a while loop to constantly judge the color of a specific location on the installation wizard. When the plug-in is successfully installed, a blue "Start Software" button will appear at this location, so that I can let the script close the installation wizard window.
But when I used the PixelGetColor function, the script did not get the color of the button on the installation wizard. On the contrary, it went through this foreground window and got the color of my desktop background! However, Au3's window information tool can correctly return the color of this position.
The following is my script code (due to different configurations, some coordinates may need to be changed when testing on other devices):
;~ Run plug-in installation package #RequireAdmin run(@ScriptDir & "\FocoSlide.exe") ;~ In each installation, the number behind this class is different, so you need to use wildcards to match the window. $tittle = "[REGEXPCLASS:HwndWrapper*]" WinWait($tittle) ;~ Change the installation path WinActivate($tittle) Send("+{TAB}") Send("+{TAB}") Send("+{END}") Send("{DELETE}") ControlSend($tittle, "", "", "C:\Program Files (x86)\OfficePlugins\Foco") ;~ Switch focus to "Install" button and enter to confirm Send("+{TAB}") Send("{ENTER}") $wh = WinGetHandle($tittle) ;~ Wait for the "Start Software" button to appear (installation is complete) ;~ Activate the window before each color acquisition to avoid potential errors. WinActivate($tittle) $s = PixelGetColor(763, 533, $wh) ConsoleWrite("color is " & Hex($s, 6) & @CR) While Hex($s) <> "0267EC" Sleep(3000) $s = PixelGetColor(763, 533, $wh) ConsoleWrite("color is " & Hex($s, 6) & @CR) WinActivate($tittle) WEnd ;~ When the blue Start Software button is detected, the installation is completed and the installation wizard is closed. MouseClick("left", 1043, 350) Exit Au3 version: 3.3.16.1
Operating system: Win11
-
By BillDennis
I was having problems with dates so I copied the example for _DateAdd from the docs, and THAT wouldn't compile. Am I missing a library or something?
-
By Dan_555
Hi,
i'v just uploaded my latest project: Simple Snippet Manager to the Downloads. area :
The intended usage is to select a Snippet, and to copy it's contents into your favorite Editor.
The Copy/Paste process happens over the (windows)Clipboard.
The previous clipboard content is not restored.
There is a time limit of 60 seconds, in which the pasting of the text is allowed (starting when the App window gets inactive).
The Hotkey is reenabled, when the main Window is activated.
This is a File/Folder based manager.
The App is configured to hold 4000 files and 400 folders with searching depth of 5 sub-folders.
The root folder is freely selectable, but it should be a Folder with writing permission.
Please install the App in a folder with Writing permission, too.
This App only uses an .ini file to save it's configuration, which has to be in the same folder as the App.
First configuration:
1. Open the config Window.
2. Enter the Language name, create or seek a root folder, enter an extension.
3. Click on Set button.
4. Click on the Exit button.
The Language configuration is done, adding files or folders are needed:
1. Select the language from the dropbox list, and click on Get Lang button.
2a. Right Click on the root folder, chose New folder to add categories.
2b. or chose New/Edit file to open the builtin text editor
3. Paste or Write a snippet-code, enter a filename and save it.
(Repeat the 3. as needed)
Usage:
Select a language, then click on Get Lang button.
Choose a file with the left mouse button.
Check if the code was loaded in the Textarea at the bottom.
Switch to your Sourcecode editor, and press the Hotkey (default= Ctrl/Strg b) to copy and paste the text.
There is a time limit of 60 seconds, after the main window gets inactive, in which the copy&pasting is allowed.
Changelog:
V1.02 (24.06.2020)
Addition: Undocumented ini setting: StartLoadLastUsedLanguage
Setting this to 1 (default value) will now reload the Last used language at start.
Last used language counts for the Language, selected with [Get Lang] button. The [Config] button will delete the last used language.
LastUsedLanguageNr, LastUsedLanguageName ini settings are used internaly for the above function.
Added version string to the main Window title.
V1.01 (23.06.2020)
Bugfix : Starting the App without the ini file now sets the correct starting Hotkey (Ctrl b)
Addition: Clipboard is saved, before pasting, and restored after pasting. (May work with text data only. p.s. untested!)
-
By Dan_555
Simple Snippet Manager (AutoIt v3.3.14.5)
The intended usage is to select a Snippet, and to copy it's contents into your favorite Editor.
The Copy/Paste process happens over the (windows)Clipboard.
The previous clipboard content is not restored.
There is a time limit of 60 seconds, in which the pasting of the text is allowed (starting when the App window gets inactive).
The Hotkey is reenabled, when the main Window is activated.
This is a File/Folder based manager.
The App is configured to hold 4000 files and 400 folders with searching depth of 5 sub-folders.
The root folder is freely selectable, but it should be a Folder with writing permission.
Please install the App in a folder with Writing permission, too.
This App only uses an .ini file to save it's configuration, which has to be in the same folder as the App.
First configuration:
1. Open the config Window.
2. Enter the Language name, create or seek a root folder, enter an extension.
3. Click on Set button.
4. Click on the Exit button.
The Language configuration is done, adding files or folders are needed:
1. Select the language from the dropbox list, and click on Get Lang button.
2a. Right Click on the root folder, chose New folder to add categories.
2b. or chose New/Edit file to open the builtin text editor
3. Paste or Write a snippet-code, enter a filename and save it.
(Repeat the 3. as needed)
Usage:
Select a language, then click on Get Lang button.
Choose a file with the left mouse button.
Check if the code was loaded in the Textarea at the bottom.
Switch to your sourcecode editor, and press the Hotkey (default= Ctrl/Strg b) to copy and paste the text.
There is a timelimit of 60 seconds, after the main window gets inactive, in which the copy&pasting is allowed.
The Download includes:
32 + 64bit exe, sourcecode, icon, read me text and 2 Instructional Helpfiles in Html and PDF format.
-
By Emmhor1
Hi All,
MAIN QUESTION:
Is it possible to Call specific function within a GUI
So I have a script with multiple functions although I don't want to use every function every time.
My Idea is to create a simple GUI which allows me to select what functions I want to use then run the funtions by clicking a button.
I have already made a GUI which allows me to select specific .exe's I would like to run after selection it runs the .exe one by one.
This script is on my work laptops and cannot access it right now.
Who can help me with this?
GUIcreate
Func1
Func2
Func3
Then have a boxes which allows me to select the specif Func.(I used GUIChecked and Unchecked in my other script)
Then a button which executes/calls the selected functions
-
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