Leaderboard
Popular Content
Showing content with the highest reputation on 03/01/2017 in all areas
-
mesale0077 asked me whether I could code some CSS loading animations from different web sites. These are the results using GDI+ (AutoIt v3.3.12.0+ required!): _GDIPlus_MonochromaticBlinker.au3 / _GDIPlus_RotatingBokeh.au3 _GDIPlus_SpinningCandy.au3 / _GDIPlus_SteamPunkLoading.au3 _GDIPlus_IncreasingBalls.au3 / _GDIPlus_PacmanProgressbar.au3 _GDIPlus_StripProgressbar.au3 / _GDIPlus_RingProgressbar.au3 _GDIPlus_LineProgressbar.au3 / _GDIPlus_SimpleLoadingAnim.au3 _GDIPlus_TextFillingWithWater.au3 / _GDIPlus_MultiColorLoader.au3 _GDIPlus_LoadingSpinner.au3 / _GDIPlus_SpinningAndPulsing.au3 _GDIPlus_TogglingSphere.au3 / _GDIPlus_CloudySpiral.au3 _GDIPlus_GlowingText.au3 (thanks to Eukalyptus) / _GDIPlus_HypnoticLoader.au3 _GDIPlus_RotatingRectangles.au3 / _GDIPlus_TRONSpinner.au3 _GDIPlus_RotatingBars.au3 / _GDIPlus_AnotherText.au3 (thanks to Eukalyptus) _GDIPlus_CogWheels.au3 (thanks to Eukalyptus) / _GDIPlus_DrawingText.au3 (thanks to Eukalyptus) _GDIPlus_GearsAnim.au3 / _GDIPlus_LEDAnim.au3 _GDIPlus_LoadingTextAnim.au3 / _GDIPlus_MovingRectangles.au3 _GDIPlus_SpinningAndGlowing.au3 (thanks to Eukalyptus) / _GDIPlus_YetAnotherLoadingAnim.au3 _GDIPlus_AnimatedTypeLoader.au3 / _GDIPlus_Carousel.au3 Each animation function has a built-in example how it can be used. AiO download: GDI+ Animated Wait Loading Screens.7z (previous downloads: 1757) Big thanks to Eukalyptus for providing several examples. Maybe useful for some of you Br, UEZ PS: I don't understand CSS - everything is made out of my mind, so it might be different from original CSS examples1 point
-
Analyzing COM objects
misrepresentative reacted to water for a topic
Just for the records: MS provides an easy method to retrieve the methods, properties, events of COM objects by using PowerShell. Open powershell. Create the object. The syntax is: $variable = New-object -ComObject "ProgID" Type the variable name to retrieve the properties of the object Use "Get-Member" to retrieve all properties, methods, collections and events of the object Example: $IE = New-object -ComObject "InternetExplorer.Application" $IE $IE|Get-Member PS> $object = New-Object -COMObject "InternetExplorer.Application" PS> $object Application : System.__ComObject Parent : System.__ComObject Container : Document : TopLevelContainer : True Type : Left : 309 Top : 92 Width : 1383 Height : 870 LocationName : LocationURL : Busy : False Name : Windows Internet Explorer HWND : 2361028 FullName : C:\Program Files\Internet Explorer\iexplore.exe Path : C:\Program Files\Internet Explorer\ Visible : False StatusBar : True StatusText : ToolBar : 1 MenuBar : True FullScreen : False ReadyState : 0 Offline : False Silent : False RegisterAsBrowser : False RegisterAsDropTarget : True TheaterMode : False AddressBar : True Resizable : True PS> $object|Get-Member TypeName: System.__ComObject#{d30c1661-cdaf-11d0-8a3e-00c04fc9e26e} Name MemberType Definition ---- ---------- ---------- ClientToWindow Method void ClientToWindow (int, int) ExecWB Method void ExecWB (OLECMDID, OLECMDEXECOPT, Variant, Variant) GetProperty Method Variant GetProperty (string) GoBack Method void GoBack () GoForward Method void GoForward () GoHome Method void GoHome () GoSearch Method void GoSearch () Navigate Method void Navigate (string, Variant, Variant, Variant, Variant Navigate2 Method void Navigate2 (Variant, Variant, Variant, Variant, Varia PutProperty Method void PutProperty (string, Variant) QueryStatusWB Method OLECMDF QueryStatusWB (OLECMDID) Quit Method void Quit () Refresh Method void Refresh () Refresh2 Method void Refresh2 (Variant) ShowBrowserBar Method void ShowBrowserBar (Variant, Variant, Variant) Stop Method void Stop () AddressBar Property bool AddressBar () {get} {set} Application Property IDispatch Application () {get} Busy Property bool Busy () {get} Container Property IDispatch Container () {get} Document Property IDispatch Document () {get} FullName Property string FullName () {get} FullScreen Property bool FullScreen () {get} {set} Height Property int Height () {get} {set} HWND Property int64 HWND () {get} Left Property int Left () {get} {set} LocationName Property string LocationName () {get} LocationURL Property string LocationURL () {get} MenuBar Property bool MenuBar () {get} {set} Name Property string Name () {get} Offline Property bool Offline () {get} {set} Parent Property IDispatch Parent () {get} Path Property string Path () {get} ReadyState Property tagREADYSTATE ReadyState () {get} RegisterAsBrowser Property bool RegisterAsBrowser () {get} {set} RegisterAsDropTarget Property bool RegisterAsDropTarget () {get} {set} Resizable Property bool Resizable () {get} {set} Silent Property bool Silent () {get} {set} StatusBar Property bool StatusBar () {get} {set} StatusText Property string StatusText () {get} {set} TheaterMode Property bool TheaterMode () {get} {set} ToolBar Property int ToolBar () {get} {set} Top Property int Top () {get} {set} TopLevelContainer Property bool TopLevelContainer () {get} Type Property string Type () {get} Visible Property bool Visible () {get} {set} Width Property int Width () {get} {set}1 point -
Merged the SciTE 3.7.3 source into our version and several other changes and fixes to the supporting utilities. Enjoy, Jos Addition/Changes/Fixes in the current installer: -------------------------------------------------------------------------------------------------- 24-2-2017 *** Merged the SciTE v 3.7.3 by Neil Hodgson with our own version of SciTE. (Jos) *** Updated AutoIt3Wrapper v17.224.935.0 (Jos) - 16.612.1119.1 Fixed #AutoIt3Wrapper_Run_Stop_OnError=N, avoiding to stop even when No or not specified. - 16.612.1119.2 Fixed #AutoIt3Wrapper_Run_Stop_OnError=N, avoiding to stop even when No or not specified. - 16.612.1119.3 Added warning for #AutoIt3Wrapper_UseX64 in case #pragma(out,..) is used. *** Updated Au3Stripper v17.224.935.0 (Jos) - 16.612.1119.1 Fixed issue which sometimes was stripping a global const incorrectly - 16.612.1119.2 Fixed /maxiterations parameter not recognised - 16.612.1119.3 Fixed increased the max #Au3Stripper_Ignore_Variables to 500 and for #Au3Stripper_Ignore_Funcs to 200 - 16.612.1119.4 Fixed regression introduced in 16.612.1119.1 *** Updated SciTEConfig v17.224.935.0 (Jos) - 16.306.1119.1 ... *** Updated Tidy v17.224.935.0 (Jos) - 16.612.1119.1: Fixed Sort_Func function bug when the source contains a BOM. *** Updated CodewiZard v1.5.4.0 (Cyberyeye) - Fix Icon Ressource Number for Messagebox Tab & ToolTip Tab - Check/Fix missing includes using AutoIt3Wrapper_Add_Constants=y - Added Opt("MustDeclareVars", 1) to fix undeclared variables - Replaced msgbox() magic number by constant name - Added GUISetIcon var (au3.ico) - Removed unusefull old AutoIt3Wrapper directive *** Updated Abbreviations (mLipok) - Updated au3abbrev.properties and helpfile page. -------------------------------------------------------------------------------------------------- ==> ScitillaHistory page containing all SciTE-Scintilla updates. ==> Visit the SciTE4AutoIt3 Download page for the latest versions ==> Check the online documentation for an overview of all extra's you get with this installer.1 point
-
romaSQL This autoIt UDF is built on the concept of Laravel Query & doctrine. RomaSQL provides a new, comfortable and easy to use way for SQL-queries in autoIt. Most of the common SQL-queries are supported already and more are coming soon. All of your support is much appreciated. Connections For the connection the object ADODB is used. Therefore the connection string is based on ODBC. You can also use OLEDB connection strings or other database connections. In order for this to work your add-ons have to be installed in the function: __4ern_SQL_Connection. I’d be very glad if you shared your modifications with me. Currently supported connections - MySQL (odbc) - Microsoft SQL Server (odbc) - SQLite (odbc) - Microsoft Access (odbc) Command reference $SQL_connect; establishing connection $SQL_returnType; return a Array or Dictionary ('oDict') Object (Default = Array) $SQL_setDefaultTable; Default Tablename $SQL_setDefaultKey; Default Colmn Key (Default = id) $SQL_debug; if True, show SQL Statment in Console $SQL_get $SQL_update $SQL_delete $SQL_insertInto $SQL_take $SQL_limit $SQL_table $SQL_select $SQL_distinct $SQL_where $SQL_orWhere $SQL_whereBetween $SQL_whereNotBetween $SQL_whereIn $SQL_whereNotIn $SQL_whereNull $SQL_whereNotNull $SQL_having $SQL_orHaving $SQL_havingBetween $SQL_havingNotBetween $SQL_havingIn $SQL_havingNotIn $SQL_havingNull $SQL_havingNotNull $SQL_groupBy $SQL_orderBy Examples establishing connection ;-----/ ; SQLite Connection ;-----/ $SQL_setDatabase('sqlite') $SQL_connect('C:\project.db') ;-----/ ; Access Connection ; Database, User, Password ;-----/ $SQL_setDatabase('access') $SQL_connect('C:\project.mdb') ;or as Admin $SQL_connect('C:\project.mdb', '4ern', 'root') ;-----/ ; SQLServer Connection ; Database, User, Password, Server, Driver ;-----/ $SQL_setDatabase('sqlserver') $SQL_connect('myDB', '4ern', 'root', 'localhost') ;or with Driver $SQL_connect('myDB', '4ern', 'root', 'localhost', 'SQL Server') ;-----/ ; MySQL Connection ; Database, User, Password, Server, Driver ;-----/ $SQL_setDatabase('mysql') $SQL_connect('myDB', '4ern', 'root', 'localhost') ;or with Driver $SQL_connect('myDB', '4ern', 'root', 'localhost', 'MySQL ODBC 5.2 UNICODE Driver') simple SQL query $SQL_table('albums') $aRet = $SQL_get() if IsArray($aRet ) then _ArrayDisplay($aRet ) else ConsoleWrite('Keine Ergebnisse' & @LF) endif Select $SQL_table('albums') $SQL_select('id', 'Name', 'Artist', 'Song') ;or pass to an Array Local $aSelect = ['id', 'Name', 'Artist', 'Song'] $SQL_select($aSelect) $aRet = $SQL_get() if IsArray($aRet ) then _ArrayDisplay($aRet ) else ConsoleWrite('Keine Ergebnisse' & @LF) endif where $SQL_table('albums') $SQL_select('id', 'Name', 'Artist', 'Song', 'Votes') $SQL_where('Artist', 'adele') $SQL_where('Votes', '>=' ,'9') $SQL_orWhere('Artist', '=' ,'Rag'n'Bone Man') ;or pass to an 2dArray Local $aSelect = [['Artist','adele'],['Votes', '>=' ,'9']] $SQL_where($aSelect) $aRet = $SQL_get() if IsArray($aRet ) then _ArrayDisplay($aRet ) else ConsoleWrite('Keine Ergebnisse' & @LF) endif If you need more examples, then tell me exactly what you need. I hope you like my UDF and find some use for it. --- ->DONWLOAD romaSQL1 point
-
[Solved] All windows taken off WinSetOnTop
AnonymousX reacted to spudw2k for a topic
You can try using the WinList function in conjuntion with the _WinAPI_SetWindowPos function. https://www.autoitscript.com/autoit3/docs/functions/WinList.htm https://www.autoitscript.com/autoit3/docs/libfunctions/_WinAPI_SetWindowPos.htm1 point -
ok, then this is a case of production / security trade-off. consider the following: 1) certificate is bound to a hostname 2) certificate has a limited time before expiration 3) certificate alone is not sufficient for connection, a username/password combination is required as well 4) a script that simple can be safely made with an older version of AutoIt, which supports obfuscating the code given the above, i'd say the risk of a compromised certificate password is low. if your CISSO agrees, then embed the password. the rest is technicality: this is actually a lot easier than you think. off-hand i'd follow this logic: the parameters which vary from one certificate to another is the certificate file name and the password. put in your main script a line like this: #include <CurrentCertificateInfo.au3> in your PoweShell script (or batch file), right after you create the certificate (and you know its file name and password), create a new file named CurrentCertificateInfo.au3 and have it contain these two lines: FileInstall("cert6546548979821.pfx", @TempDir & '\CurrCert.pfx', 1) Global $sPassword = "Th1sIsN0tAR34lP4ssw0rd!" the main script the uses CurrCert.pfx and $sPassword in due time. now study the correct syntax of compiling from the command line from the AutoIt help file: AutoIt > using AutoIt > Compiling Scripts > Method 3 - The Command Line you'll find all your requirements are met by the available command line switches (except of the "-encrypted -somethingsomething" part, which i don't understand what it means).1 point
-
Complete Newb to AutoIt: Program Flow - Puzzled
fopetesl reacted to JLogan3o13 for a topic
@fopetesl if, after reading through the wiki, you're still unsure, post a description of a task you would be looking to complete, and we can walk through the flow.1 point -
Ever happened to you to have blocked app? Window just stopped responding? In AutoIt there isn't much to do when that happens. Just wait or manually kill your app. Embarrassing for you as coder, surly ...Should be. What about this. I register internal handler and when my app hangs next time, I deal with that the way I like it. Maybe try to unblock it or notice the behavior for the future or simply exit, whatever... This UDF gives you ability to register function to call when app stops responding. Placeholder for the function is defined as (name is irrelevant): Func _OnHungApp($iParam1, $iParam2) EndFunc Parameters are: $iParam1 - lparam DllCall type$iParam2 - wparam DllCall typeSo you can pass whatever you want to the function. Default is 0, 0. Handler works differently depending on what you return from _OnHungApp(). Three possibilities: In case you return $HUNGAPP_EXITHANDLER (0/False) handler will no longer be run. This is also the case if you don't specify any return value.If you return $HUNGAPP_EXITPROCESS (1/True) you will exit the app with the exit code you specified when registering handler. By returning $HUNGAPP_CONTINUEHANDLER (259) handler continues handling.Unregistering and freeing resources is done by _OnHungAppUnRegister() function. It's optional. Handler is very low on requirements. Registering is done after you create your GUI (need that handle) or if your app is GUI-less then pass something like: WinGetHandle(AutoItWinGetTitle())Function definition is: _OnHungAppRegister($hWnd, $sFunction[, $iInterval = Default[, $vParam1 = Default[, $vParam2 = Default[, $iExitCode = Default]]]])Description for parameters: $hWnd - A handle to the window to be monitored. $sFunction - Function to call when 'not responding' state is detected. $iInterval - Optional time interval in which to repeat the tesing. Default is 1000 ms (1sec). $vParam1 - Optional parameter to pass to the function (lparam). Default is 0. $vParam2 - Optional parameter to pass to the function (wparam). Default is 0. $iExitCode - Optional exit code for the app to return. Default is 0. Another function is _OnHungAppRegisterEx. That one works slightly different. The benefits are that you can choose time value at which _OnHungApp() will be called. This is more advanced approach since you are in complete control. That one is defined as: _OnHungAppRegisterEx($hWnd, $sFunction[, $iHungAppTime = Default[, $vParam1 = Default[, $vParam2 = Default[, $iExitCode = Default]]]])Parameters: $hWnd - A handle to the window to be monitored. $sFunction - Function to call when 'not responding' state is detected. $iHungAppTime - Optional time value in ms at which window will be flagged as unresponding one. Default is 5000 ms. Minimum is 500 ms. $vParam1 - Optional parameter to pass to the function (lparam). Default is 0. $vParam2 - Optional parameter to pass to the function (wparam). Default is 0. $iExitCode - Optional exit code for the app to return. Default is 0. $iInterval - Optional time interval in which to repeat the tesing. Default is 250 ms. Script with few examples: OnHungApp.zip1 point
-
If you're checking whether or not two files are the same, then look at _IsFileSame or _IsFileDiff, located here.1 point
-
OK, I see the problem. You need to have this in the beginning of your script: Opt("MouseCoordMode", 2) This sets your mouse coords to the active window. Make sure you have the AutoItWindowInfo tool set the same way when you get the coords.1 point
-
Make it look a little more like your (ish) #include <GuiConstants.au3> $Main_GUI = GUICreate("Main", 500, 500) GUISetBkColor(0xfffaf0, $Main_GUI) GUISetState(@SW_SHOW, $Main_GUI) $Child1_GUI = GUICreate("Child", 480, 480, 10, 10, $WS_CHILD, -1, $Main_GUI) $Btn_Exit = GUICtrlCreateButton("E&xit", 10, 10, 90, 20) GUISetState(@SW_SHOW, $Child1_GUI) $Child2_GUI = GUICreate("Child", 200, 100, 10, 50, $WS_CAPTION) GUISetBkColor(0xfffaf0, $Child2_GUI) $Btn_Test = GUICtrlCreateButton("Test", 10, 10, 90, 20) GUISetState(@SW_SHOW, $Child2_GUI) DllCall("user32.dll", "int", "SetParent", "hwnd", WinGetHandle($Child2_GUI), "hwnd", WinGetHandle($Child1_GUI)) While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE, $Btn_Exit Exit Case $Btn_Test MsgBox(0, "Test", "Hit Button on Child Window") EndSwitch WEnd1 point