Sign in to follow this
Followers
0
-
Recently Browsing 0 members
No registered users viewing this page.
-
Similar Content
-
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 ModemJunki
So there was a topic on the General Help and Support board where the poster mentioned it was not easy to check if the system was installed with UEFI or legacy mode and it got me looking down a rabbit hole. Apparently you can't just whip up a simple WMI query to find that out.
But I did find that you can read the output of bcdedit.exe to check if the system is using winload.efi or winload.exe, so then I got stuck because bcdedit doesn't play nice with StdoutRead. Finally I discovered that toggling Wow64DisableWow64FsRedirection would make it all work together.
I hope this helps someone. Maybe it can be simplified, I'm no expert. 🤨
DllCall("kernel32.dll", "int", "Wow64DisableWow64FsRedirection", "int", 1) $aArray = StringSplit(_getDOSOutput("bcdedit.exe"), @CRLF) DllCall("kernel32.dll", "int", "Wow64DisableWow64FsRedirection", "int", 0) For $i = 1 To UBound($aArray) - 1 Select Case StringInStr($aArray[$i], 'Windows Boot Loader') And StringInStr($aArray[$i + 3], 'device partition=C:') And StringInStr($aArray[$i + 4], 'winload.efi') ConsoleWrite("UEFI mode" & @CRLF) Case StringInStr($aArray[$i], 'Windows Boot Loader') And StringInStr($aArray[$i + 3], 'device partition=C:') And StringInStr($aArray[$i + 4], 'winload.exe') ConsoleWrite("Legacy BIOS" & @CRLF) EndSelect Next Func _getDOSOutput($command, $wd = '') ; https://www.autoitscript.com/forum/topic/190249-get-result-of-shellexecute/ Local $text = '', $Pid = Run('"' & @ComSpec & '" /c ' & $command, $wd, @SW_HIDE, 2 + 4) While 1 $text &= StdoutRead($Pid, False, False) If @error Then ExitLoop Sleep(10) WEnd Return StringStripWS($text, 7) EndFunc ;==>_getDOSOutput
-
By Skeletor
Hi All,
It has been bugging me for a while now.
Can you view the AutoIt code from within a compiled exe. Like how you can with most .Net exe's by using a certain program.
If this is possible, how then can I secure my program (if this method exists).
-
By LoneWolf_2106
Hi everybody,
i want to optimize my search code, because i don't think that my solution is "acceptable" from development perspective, it might be optimized.
I have a text file, i read it and i copy all the entries to an Array, then i have to start a search to see if a specific entry is present. I have about ten different strings to search.
Func FileSearch($file_content_array, $search) $j=0 For $i = 0 To UBound($file_content_array) - 1 $search_result=StringInStr($file_content_array[$i],$search) If $search_result<>0 Then ReDim $searchResultArray[UBound($searchResultArray) + 1] $searchResultArray [$j] = $file_content_array[$i] $j+=1 EndIf Next Return $searchResultArray EndFunc My solution would be ok for a single search, but in case of multiple searches? would it be still good?
I have thought to use a 2D Array, where the first column is the array-item and the second column is "yes" or "no". But what about the searches? Do i have to use 10 times the function?
In case of questions: I have to scan a directory and check whether some files are present or not and then write into another file:"yes, it is present", "no, it is not present".
Thanks in advance
-