Leaderboard
Popular Content
Showing content with the highest reputation on 12/25/2019 in all areas
-
Case $idButtonExport $tRect = _WinAPI_GetWindowRect (ControlGetHandle($hGUI, "", $idOutput)) $iLeft = DllStructGetData ($tRect,"left") $iTop = DllStructGetData ($tRect,"top") $iRight = DllStructGetData ($tRect,"right") $iBottom = DllStructGetData ($tRect,"bottom") _ScreenCapture_Capture ("Test.png",$iLeft, $iTop, $iRight, $iBottom)1 point
-
BotIt FindAndClick
ScrapeYourself reacted to Musashi for a topic
Fortunately, that's not my decision. I just wanted to inform (especially inexperienced) users not to start executables, if the origin is possibly uncertain .1 point -
autoit perfectionism at it's best!
TheAutomator reacted to water for a topic
For the sake of completeness: The wiki and the forum are a great source for good and efficient coding pactices Good coding practice in the wiki Good coding practice discussion1 point -
autoit perfectionism at it's best!
argumentum reacted to TheAutomator for a topic
Argumentum, I do my best to learn as much as possible and yes i still have much to learn, i'm sure you know not everyone on this forum started as a computer scientist 😉 Everything i know i had to teach myself, everything i code i want to program as smooth and efficient as possible. Focusing on even the little details.. that's what i mean with perfectionism. Sometimes the more you learn, the more you discover how little you know, so I'm grateful for all the tips and help1 point -
;create struct $struct =dllstructcreate("int;float[4];dword") ;fill struct with data dllstructsetdata($struct,1,123456);int dllstructsetdata($struct,2,4.80114160043301e+030,1);float dllstructsetdata($struct,2,3.68584191575527e+024,2);float dllstructsetdata($struct,2,7.71403089381636e+031,3);float dllstructsetdata($struct,2,8.24605444209785e-019,4);float dllstructsetdata($struct,3,0xDEADBEEF);dword ;read some data from struct at offset 4 $struct2=dllstructcreate("char[16]",dllstructgetptr($struct)+4) msgbox(0,":o)",dllstructgetdata($struct2,1))1 point
-
That string needs to be unique per script though. Here is another way to use the _Singleton command. $status = _Singleton("unique-name-here", 1) If $status = 0 Then ; Attempt to retore and activate a non-active or minimized window. If @Compiled = 1 Then $pid = ProcessExists(@ScriptName) $exe = @ScriptName Else $pid = ProcessExists("AutoIt3.exe") $exe = "AutoIt3.exe" EndIf $script = @AutoItPID If $script <> $pid Then $wins = WinList($Scriptname, "") For $w = 1 to $wins[0][0] $handle = $wins[$w][1] If WinGetProcess($handle, "") = $pid Then WinSetState($handle, "", @SW_RESTORE) WinActivate($handle, "") ExitLoop EndIf Next Exit EndIf EndIf or $exist = _Singleton("use-unique-name", 1) If $exist = 0 Then If @Compiled = 1 Then $pid = ProcessExists(@ScriptName) $exe = @ScriptName Else $pid = ProcessExists("AutoIt3.exe") $exe = "AutoIt3.exe" EndIf $script = @AutoItPID $ans = MsgBox(262177, "Close Running Instance Query", _ "This program is already running." & @LF & @LF & _ "Do you want to close it for this new instance?" & @LF & @LF & _ "NOTE - If all work has been saved, then OK" & @LF & _ "could be clicked, else click CANCEL." & @LF & @LF & _ $pid & " (" & $exe & ") " & $script & @LF & @LF & _ "(will default to CANCEL in 30 seconds)", 30) If $ans = 1 Then If $pid <> $script Then ProcessClose($pid) Else MsgBox(262192, "Close Error", "OK process failed!", 0) Exit EndIf ElseIf $ans = 2 Or $ans = -1 Then Exit EndIf EndIf Extracted from a couple of my programs, with slight modification.1 point
-
WELCOME To TheSaint's TOOLBOX DOWNLOAD SECTIONS can be reached quickly - scroll up from HERE (Post #2). However, if this is your first visit, then please pagedown past the News section below, and read the Disclaimer, Download Info, etc first. There are four titled download sections, in the following order - 1) AutoIt Tools, 2) Other Tools, 3) Utilities, 4) Games. Each section is arranged alphabetically by program name. ** Programs marked like this are in my new smaller package format. If you want to install them easily, with shortcuts, uninstall ability, etc then you will need to use my 'Universal Installer' program (now also available). However, they are only regular zip files that just contain an additional instruction file for that program. This new package format, is a new option in my 'Installer Creator v2.5' program (just updated). See latest NEWS. +============================================================+ || - MY IMPORTANT TOOLBOX ANNOUNCEMENTS & LATEST NEWS SECTION - || +============================================================+ * #104 #101 #100 #84 #81 #80 #78 #77 #76 #75 #74 #73 #72 #71 #70 #58 #57 #56 #55 #54 #53 #52 #49 #48 #47 #46 #45 #44 #43 #42 #41 #32 #31 #30 #29 #28 #27 #26 #24 #21 #20 #19 #18 #17 #16 #15 #14 #13 #9 #8 #7 * Above is my posts in order from latest to first (Latest are also in bold red below) The news index below, is only for those seeking further program information. +============================================================+ || Abbreviation Database - #72 #81 +===============================================+ || Admin File Management - #7 #71 +===============================================+ || Admin Rights - #7 #71 +===============================================+ || AutoIt Version Switcher - #17 #18 #32 #74 +===============================================+ || AVGBackup New - #73 +===============================================+ || AVGBackup Updater - #73 +===============================================+ || CDIni Database - #47 #77 #78 #84 +===============================================+ || Context Options - #13 +===============================================+ || Create Zip Within - #42 +===============================================+ || Declare All Variables - #16 #20 +===============================================+ || Dialog Maker - #9 +===============================================+ || DiscTray Control - #53 +===============================================+ || Folder From File - #27 +===============================================+ || Get CDPlayer Ini - #54 +===============================================+ || GUI Control Styler - #44 #45 #56 +===============================================+ || GUIBuilder - #74 +===============================================+ || Icon Browser - #13 #75 +===============================================+ || Installer Creator - #19 #21 #26 #45 #55 #75 #76 #101 +===============================================+ || Make It Pretty - #28 +===============================================+ || Msgbox Viewer - #8 +===============================================+ || Name Fix - #48 +===============================================+ || New Folders - #13 #24 #27 #48 +===============================================+ || Open Projects - #14 #41 #80 +===============================================+ || Path Duplicator - #45 +===============================================+ || Projects Backup - #8 #29 +===============================================+ || RGBColor Selector - #52 +===============================================+ || Search Assistant - #30 #43 +===============================================+ || SendTo Organiser - #27 +===============================================+ || SetAs Wallpaper - #80 #104 +===============================================+ || Shortcuts For All - #7 +===============================================+ || Shutdown Options - #48 +===============================================+ || Simple CDPlayer - #78 +===============================================+ || Tall Tales - #49 #57 #58 #70 +===============================================+ || Time Calculator - #45 +===============================================+ || Toolbar For Any - #15 +===============================================+ || Universal Installer - #45 #55 +===============================================+ || Update SciTE Values - #46 +===============================================+ || NEWS - #31 #55 #75 #100 +===============================================+ If you wish to discuss any of my programs in detail, and they have a separate Info (Topic) page, then please do that there. However, any generic comments, thanks, etc are welcome here. For various reasons, I've deemed it wiser to collect (Index) all my programs at this post - the simplest reason to give, is that most of my instructions, explanations, etc are pretty much identical, and so placing all that in one spot saves space - if I couple that with a date, then you can maybe jump to what you want and ignore my long ramble (if up-to-date with my latest info). Please don't pester me about some of the source code, read the NOTICE below and it will all be explained! PLEASE BE PATIENT, STILL UPDATING! You will eventually find all my AutoIt tools here and a link to their main pages (separate posts) for information about them and comments others and myself have made. DISCLAIMER! (last updated 16-09-2008) NOTICE! For the moment, I'm not including source code for any of my new programs that haven't been available at the Forum before. This is only an interim thing and done for a couple of reasons - 1) I want others to have a really good go at my programs, before others start modifying or incorporating them into their own and posting them (less feedback when that happens). 2) I really really want some feedback (as I've said above in the disclaimer). 3) With appropriate feedback, I can make changes that benefit all ... and maybe even discover some embarassments that I can remove ... before you get to see me naked (so to speak). I DO INTEND TO SUPPLY THE SOURCE CODE FOR ALL MY TOOLS - the more feedback (especially) I get and the more downloads, will make that sooner rather than later! NOTE! Some of the programs below are frontends only for a program made by someone else. DOWNLOAD & FILE INFORMATION * More information about my Installer and extracting can now be found here * Some of the Info links also lead to a download. (15-12-2008) ENJOY! 1. AUTOIT TOOLS Autoit Version Switcher v1.5 ** (updated 09-02-2009) AutoIt_Version_Switcher_Link.txt (197 kb) (Number of previous downloads: 80 odd + 85) Info (see Post #17 below) *(fixed) 9-10-2008 (see Post #18 #32 #74) Compile Options Info (also see ) Declare All Variables v1.2 Declare_All_Variables_Link.txt (0.99 Mb) (My latest program) (Number of previous downloads: 16) Info (also see Post #16 below) *(fixed) 12-10-2008 (see Post #20 below) Dialog Maker v1.8 Dialog_Maker_Link.txt (800 kb) Info (see Post #9 below) GuiBuilder v0.8 (my update to Cyberslug's program) ** (updated 09-02-2009) GuiBuilder_Link.txt (223 kb) (Support for newer AutoIt versions) (Number of previous downloads: 18) Info (For IMPORTANT Information see #74) GUI Control Styler v1.1 ** GUI_Control_Styler_Link.txt (220 kb) (Number of previous downloads: 30) Info (see Post #44 and #45 #56) (includes Screenshots) *(updated 22-12-2008) Icon Browser v1.2 Icon_Browser_Link.txt (902 kb) (Number of previous downloads: 208 + 168) (my update of the AutoIt example) Info (also see Post #13 #75) Installer Creator v2.7 ** (updated) 18-07-2009 Installer Creator Link.txt (454 kb) (Support for newer AutoIt versions) (Number of previous downloads: 323 + 203 + 221) See it's >own topic for latest update. Info (also see Post #19 and #21 and #45 #55 #75 #76 #101) Make It Pretty v1.5 Make_It_Pretty_Link.txt (891 kb) Info (also see Post #28 below) Msgbox Viewer v1.5 Msgbox_Viewer_Link.txt (855 kb) (Number of previous downloads: 286) Info (also see Post #8 below) Open Projects v1.8 ** (updated) 26-02-2009 Open_Projects_Link.txt (218 kb) (Number of previous downloads: 42 + 58) (Frontend for TrueCrypt drives for AutoIt project security) Info (see Post #14 below) (also Post #41 #80) Projects Backup v6.9 Projects_Backup_Link.txt (867 kb) (Number of previous downloads: 210 + 209 + 48) Info (also see Post #8 below) *(fixed) 22-10-2008 (see Post #29 below) RGBColor Selector v2.1 ** (added 20-12-2008) RGBColor_Selector_Link.txt (136 kb) (Number of previous downloads: 260 + 248) Info (also Info) (also see Post #52) Script Templates Info ToolBar For Any v2.2 ToolBar_For_Any_Link.txt (890 kb) Info (also see Post #15 below) Universal Installer v1.0 * (updated 16-12-2008) Universal_Installer_Link.txt (871 kb) (Number of previous downloads: 13) Info (also see Post #45 & #48 #55) Update SciTE Values v1.3 ** Update_SciTE_Values_Link.txt (216 kb) Info (see Post #46) (includes Screenshot) 2. OTHER TOOLS Admin File Management v1.1 (repackaged 23-01-2009) ** Admin_File_Management_Link.txt (198 kb) (Number of previous downloads: 562 + 175) Info (also see Post #7 below & #71) Admin Rights v4.3 (repackaged 23-01-2009) ** Admin_Rights_Link.txt (192 kb) (Number of previous downloads: 289 + 354 + 198) Info (also see Post #7 below & #71) Case Toggle Info (also see ) Change Case Info (also see ) Clipboard Joiner Info (also see ) Context Options v2.7 Context_Options_Link.txt (797 kb) (Number of previous downloads: 251) Info (also see Post #13 below) Create Zip Within v1.0 Create_Zip_Within_Link.txt (802 kb) Info (see Post #42 below) Date Shortcuts Info (also see ) Folder From File v1.6 Folder_From_File_Link.txt (894 kb) Info (see Post #27 below) Get Directory Listing Info (also see ) Name Fix v2.3 ** Name_Fix_Link.txt (199 kb) Info (see Post #48) (includes Screenshot) New Folders v3.6 ** (updated 16-12-2008) New_Folders_Link.txt (248 kb) (Number of previous downloads: 193 + 31 + 79) Info (also see Post #13 and #24 & #48) Path Duplicator v1.1 ** Path_Duplicator_Link.txt (214 kb) Info (see Post #45) (includes Screenshot) SendTo Organiser v1.2 SendTo_Organiser_Link.txt (880 kb) Info (see Post #27 below) Shortcuts For All v2.1 Shortcuts_For_All_Link.txt (789 kb) (Number of previous downloads: 303) Info (also see Post #7 below) StartUp Runner Info (also see ) TextFiles Joiner Info (also see ) Time Calculator v1.5 ** Time_Calculator_Link.txt (123 kb) (Number of previous downloads: 268 + 79) Info (also see Post #45) (includes Screenshot) Virtual Drive Info (also see ) 3. UTILITIES Abbreviation Database v2.9 (updated 04-03-2009) ** Abbreviation_Database_Link.txt (257 kb) (Number of previous downloads: 22) Info (see #72 #81) (includes Screenshots) Alert Timer Info (also see ) Author Updates & Database Viewer Info (also see ) AutoRunner Info (also see ) AVGBackup New v1.3 (new 27-01-2009) ** AVGBackup_New_Link.txt (193 kb) Info (important you read Post #73) AVGBackup Updater v1.4 (new 27-01-2009) ** AVGBackup_Updater_Link.txt (191 kb) Info (important you read Post #73) Camera Transfer Info (also see ) CDIni Database v3.6 (updated 09-03-2009) ** CDIni_Database_Link.txt (347 kb) (Number of previous downloads: 5 + 26 + 5 + 7) (New Features, Bugfixes, etc) Info (also see Post #47 & #48 #77 #78 #84) DiscTray Control v3.2 ** DiscTray_Control_Link.txt (212 kb) Info (also see Post #53) DvdA2Wav Info (also see ) Encrypted Text Reader Info (also see ) Enter Serial Info (also see ) Export To Nero Info (also see ) Fix Taskbar Info (also see ) Get CDPlayer Ini v1.2 ** Get_CDPlayer_Ini_Link.txt (215 kb) Info (see Post #54) (includes Screenshot) Iconoid Check Info (also see ) If Not Pressed Info (also see ) Internet Connection Info (also see ) Irfan Slideshow Info (also see ) Kill At Startup Info (also see ) Lplex GUI Info (also see ) M3UPath Editor Info (also see ) MediaRenamer Info (also see ) Nero Data Burn Info (also see ) Numerals To Numbers Info (also see ) Photo Renamer Info (also see ) Program Runner Info (also see ) Rename Long Filename Info (also see ) Resolution Start Info (also see ) Save Separate Tracks Info (also see ) Search Assistant v1.4 *(updated 30-11-2008) Search_Assistant_Link.txt (818 kb) (Number of previous downloads: 25) Info (also see Post #30 below)(see Post #43 below) SetAs Wallpaper v4.3 ** (Updated 15-12-2009) (Requires IrfanView for Jpegs) SetAs Wallpaper Link.txt (240 kb) (Number of previous downloads: 66) Info (see #80 #104) Shutdown Options v6.4 ** Shutdown_Options_Link.txt (910 kb) Info (also see Post #48) Simple CDPlayer v1.3 ** (NEW 18-02-2009) Simple_CDPlayer_Link.txt (216 kb) (Number of previous downloads: 282) Info (also see Post #78) Text Shuffle Info (also see ) Track To Graphic Info (also see ) Web Unzipper + Web Zipper Info (also see ) Wipe Recent Info (also see ) Wipe History Info (also see ) 4. GAMES Question Master (aka Code Breaker) Info (also see ) Tall Tales v1.5 (NEW) ** Tall_Tales_Link.txt (230 kb) Info (see Post #49 & #57 #58 #70) The Fantasy Realm (work in progress) Info1 point