Leaderboard
Popular Content
Showing content with the highest reputation on 02/18/2014 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
-
Hiya! I'm currently working on a project which involves the mouse and its properties. For this I was in need for a mouse UDF which could capture certain events. I have found some of the many here on the forums, but quite some are using DLL's. I'm not saying this is bad, it's good! But, my application crashed for unknown reasons when compiled to x64. The way this UDF works, is that it checks every tick for certain conditions to be met. For example: if you have registered a double click event, it will check every frame for double click condition and then call the given function if necessary. So I decided to write my own little _Mouse_UDF powered in autoit itself and share it with the rest of the community. Feel free to leave any feedback, negative or positive. Current events $EVENT_MOUSE_IDLE - triggers when the mouse is idle $EVENT_MOUSE_MOVE - triggers when the mouse moves $EVENT_PRIMARY_CLICK - triggers when the primary button is clicked $EVENT_PRIMARY_DBLCLICK - triggers when the primary button is double clicked $EVENT_PRIMARY_RELEASED - triggers when the primary button is released $EVENT_PRIMARY_DOWN - triggers when the primary button is pressed $EVENT_PRIMARY_UP - triggers when the primaty button is not pressed $EVENT_SECONDARY_CLICK - same as primary conditions, but for this button $EVENT_SECONDARY_DBLCLICK - same as primary conditions, but for this button $EVENT_SECONDARY_RELEASED - same as primary conditions, but for this button $EVENT_SECONDARY_DOWN - same as primary conditions, but for this button $EVENT_SECONDARY_UP - same as primary conditions, but for this button $EVENT_MIDDLE_CLICK - same as primary conditions, but for this button $EVENT_MIDDLE_DBLCLICK - same as primary conditions, but for this button $EVENT_MIDDLE_RELEASED - same as primary conditions, but for this button $EVENT_MIDDLE_DOWN - same as primary conditions, but for this button $EVENT_MIDDLE_UP - same as primary conditions, but for this button $EVENT_X1_CLICK - same as primary conditions, but for this button $EVENT_X1_DBLCLICK - same as primary conditions, but for this button $EVENT_X1_RELEASED - same as primary conditions, but for this button $EVENT_X1_DOWN - same as primary conditions, but for this button $EVENT_X1_UP - same as primary conditions, but for this button $EVENT_X2_CLICK - same as primary conditions, but for this button $EVENT_X2_DBLCLICK - same as primary conditions, but for this button $EVENT_X2_RELEASED - same as primary conditions, but for this button $EVENT_X2_DOWN - same as primary conditions, but for this button $EVENT_X2_UP - same as primary conditions, but for this button Current properties $MOUSE_X - current mouse x $MOUSE_Y current mouse y $MOUSE_PREV_X - previous mouse x $MOUSE_PREV_Y - previous mouse y $MOUSE_VEL_X - current mouse x velocity $MOUSE_VEL_Y - current mouse y velocity Current functions _Mouse_RegisterEvent($iEventType, $sCallBack, $avArgs = -1) - registers a function to an event, use an array for arguments _Mouse_UnRegisterEvent($iEventType) - unregister a function from an event _Mouse_Update() - the main update loop, updates the mouse udf logic _Mouse_GetColor($iColorType, $hWnd = Default) - gets the current mouse xy pixel color, in 3 different color type available; decimal, hex and rgb Mouse UDF.zip1 point
-
HttpHeaderWatcher v1.0.1.3 Some time ago, some members asked how to see the Http Requests. There are quite a few external applications but not in AutoIt! HttpHeaderWatcher in association with WinPcap, very modestly solves this lack. Once done this http watcher, i asked me : why not Re-build a WinHttp Request in AutoIt from a selected Request in one Click ? So i have added a "Create au3" button who open the WinHttp Request of your choice in AutoIt format in SciTE Editor. Voila voila, hope it can help ! Buttons were made online with chimply.com the easy and free buttons generator ! See Help for more infos. previous downloads : 253 source and executable are available in the Download Section Hope you like it !1 point
-
Simple Script Distribution Platform
mvk25 reacted to BlackDawn187 for a topic
Hello, Welcome to what I call the SSDP(Simple Script Distribution Platform) aka Hub. Currently, Hub is only limited by the creative development of the community. It is capable of executing various tasks on its own and, Boasting the ability to run custom scripts, It leaves the door wide open to your imagination. Sure, You could run all of your scripts independently or, You could use the Hub platform. The one downfall is that in order for Hub to execute your scripts, They must be compiled.Once compiled, Be sure that your script is coded to resemble the attached "Example" script. That way Hub will be able to monitor and, detect your script. An upside to Hub, Is the ability to enable or disable the autorun feature for the scripts. Along with other commands, You can Google Search straight from the applications input box. Mind you we haven't found a suitable method to display the results inside the applications GUI yet, haha. Currently, This is one of my most active projects and, I'm currently working on developing other scripts to make available through the internal "/plugins" command. Though, I could theoretically rewrite everyones attachment scripts to work with Hub. But, I'll stay on the right side of Copyright out of mutual respect. If you would like to request to have something made and included within this application, Don't hesitate to contact me. Even if you would like to simply donate what you've already made yourself, There may be others out there looking for something along what you've made yourself. I am open to constructive criticism and, suggestions. If you have anything to offer in regards to the application. As well, Bug Testers would be greatly appreciated so that I can get everything ironed out. Current Version = 1.8 (Bug: Plugins that autorun during main application launch, Do not show up as loaded in the GUI, But they are executed properly) - Implemented a Always Connected system [(May cause some frustration due to dropped connections)This system ensures you have a open connection to the internet] - Added Menu items such as Connect, Reconnect and, Disconnect For security purposes, The SHA hash for the Compressed Zip file is: - c78cc2e817e7a7a401d1b48ee2861c9969fc8f53f9da46809249f613ba96af85 and, The SHA hash for the compiled executable is: - 5bd378151a31022a35706ae85b3de3f432f6766b882ed004937cb27f7b49360c These hash values and, The ones you have may differ depending on which version you're running. Hashes for the latest version should always be found here unless otherwise stated. Please Note - The plugins as they are called within the application are not .au3 files. They have been previously compiled with Scite. - This application contains an auto updating function which may be flagged by Anti Virus', Manual Updating is not recommended. - There is no need to constantly download the latest version, Unless you have restricted the applications internet access - Also, Don't let the download counts on the attachments fool you, There's been well over 20 downloads already Example.au3: RCC.au3 (Remote Command Console): Example.au3 RCC.au3 Hub.zip1 point -
You can see the phenomenom by yourself by running this simple script: ConsoleWrite(Hex(0.75) & @LF) ; 3FE8000000000000 ConsoleWrite(Hex(0.3) & @LF) ; 3FD3333333333333 Point your browser to this page to better see the breakout of those values and see that 0.3 has an infinite fractional binary expansion which can only be approximated within a 64-bit FP value. EDIT: while I'm at it, keep in mind that FP has two distinct representations of zero: +0.0 and -0.0 Fortunately AutoIt compares them equal, despite their hex representation differ: ConsoleWrite("0.0 = " & Hex(0.0) & @LF) ConsoleWrite("-0.0 = " & Hex(-0.0) & @LF) ConsoleWrite("0.0 = -0.0 " & (0.0 = -0.0) & @LF) ConsoleWrite("-0.0 > 0 " & (-0.0 > 0) & @LF) ConsoleWrite("-0.0 < 0 " & (-0.0 < 0) & @LF)1 point
-
Hi, There are many ways to do it, and I have chosen the Timers. The GUIGetMsg function can only catch messages when it's called, in your loop you have sleep functions avoiding the msgs to be caught. #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> Local $iPhase = 0, $iStep = 20, $iMax = 100 Local $hTimer = 0, $fGo = False $main = GUICreate("5.5 seconds!", 1100, 25, 125, 0, -1, $WS_EX_TOPMOST) $prog = GUICtrlCreateProgress(0, 0, 1000, 25) $OK = GUICtrlCreateButton("GO!", 1000, 0, 25, 25) $Stop = GUICtrlCreateButton("Stop", 1025, 0, 50, 25) $label = GUICtrlCreateLabel("-", 1075, 0, 25) GUICtrlSetState($Stop, $GUI_DISABLE) GUICtrlSetState($main, $GUI_ONTOP) GUISetState() $go = 1 $hTimer = TimerInit() While 1 $msg = GUIGetMsg() Switch $msg Case $GUI_EVENT_CLOSE Exit Case $OK $fGo = True GUICtrlSetState($OK, $GUI_DISABLE) GUICtrlSetState($Stop, $GUI_ENABLE) GUICtrlSetData($prog, 0) Case $Stop $fGo = False GUICtrlSetState($OK, $GUI_ENABLE) GUICtrlSetState($Stop, $GUI_DISABLE) EndSwitch If $fGo Then If $iPhase = $iMax / $iStep _ ;last step done And TimerDiff($hTimer) >= 250 Then MouseClick("left") $iPhase = 0 ;reset counter ElseIf TimerDiff($hTimer) >= 1000 Then GUICtrlSetData($prog, ($iPhase + 1) * $iStep) $iPhase += 1 $hTimer = TimerInit() EndIf EndIf WEnd Br, FireFox.1 point
-
Floating-point uses binary representation internally, not decimal. Hence rounding errors can accumulate very easily. This is inherent to IEEE754 floating-point, so AutoIt by itself can do nothing to help. Use Round(), StringFormat() or shift all all your inputs by 10n and perform calculation in integers.1 point
-
1 point
-
need help with speeding up the script
TechCoder reacted to gruntydatsun for a topic
What I'm hearing your IT manager say is "I don't know how to do that or even what you're talking about and will not be admitting it to you today".1 point -
Scintilla DLL with AUtoIT?
TheAutomator reacted to JohnOne for a topic
#include <WinAPI.au3> MsgBox(0, "Native AutoIt", "Yoo Hoo!") _WinAPI_MsgBox(0, "_WinAPI AutoIt", "Yoo Hoo!") ;http://msdn.microsoft.com/en-us/library/windows/desktop/ms645505(v=vs.85).aspx DllCall("User32.dll", "int", "MessageBox", "HWND", 0, "str", "Yoo Hoo!", "str", "DllCall AutoIt", "UINT", 0)1 point -
Guitar Tab Tester
Danyfirex reacted to jaberwacky for a topic
I think he dabbles a bit here and there on the side when he has the time.1 point -
I would be interested to see ths progress further. If you have questions about guitar music, PM me and I'll be happy to discuss the subject with you.1 point
-
IfExtend.au3 - include file for enabling shorter scripts
this-is-me reacted to BrewManNH for a topic
How about like this using the 3.3.10+ syntax $sky = InputBox("Sky status", "Play around with values like blue, falling, green.", "green") ($sky = "falling") ? MsgBox(0, "test1", "sky is falling") : ConsoleWrite("It's a normal day." & @CRLF)1 point -
That's one of the 'dangers' of going directly to the IT guys (sadly, most have an attitude of power...) and exactly why I suggested some other paths. I'd try going through your manager - presuming you have permission and a requirement to gather it for your job, and permission from your boss to work on the program project - seems a more politically correct path ("It will help me in my job as well as X people in the group, etc."). You really need to have some 'hard numbers' on the time/work savings and for how many, etc. to get this access, even though it isn't asking much, IMHO.... Write up some numbers, make a small report, etc. and give it to your boss. Once the boss buys into the project and sees value, plus has a report in hand that shows how much the group will save (thus, handing him/her all the data they need to go further with no effort on their part and getting all the credit....... - yeah, becoming the boss' idea....), then IT has no option but to open a link for you. Also, a bit of 'power' for your end on the report - as you are not asking for anything other than the data already shown, the command you need is nothing other than the one being used now, so there should be less than 10 minutes work on the part of IT (i.e., no unreasonable burden). All you need is the sql command, or a program that does that and puts the data to an external flat file (if they bring up the argument of giving you access directly into the database, etc.) and it is the same data, just output in a different manner where you can then process it fast and give additional value to 'millions' (ok, maybe not, but quantify it!) Oh, and since you have already taken it to IT, you can use that info in your report - in a positive way, though! What were the IT guy's issues (probably feeling like it was a lot of extra work to them, etc.)? Make sure you address anything they said to you, whatever it was. That way, when the boss takes "his" idea to the IT guy, he already has the answers to those issues, written in a nice report..... (i.e., don't give IT any way to let the boss look bad - that backlashes pretty heavily!) Looking at your program, I think you might speed it up slightly going a different route, though not likely worth the effort to even evaluate different methods. The only way to 'significantly' speed it (which is what you need to make it worthy of doing the project at all) is to get direct access to the data. So, before you mess with the code any more, use your time to write a comprehensive report that the boss can take to the big boss - that is the best use of your time, and the way you will get the results.1 point
-
[Closed] How to Run a Function As a Seperate Thread/Process?
Xandy reacted to nullschritt for a topic
As stated autoit is single-threaded. The best way to use more than one thread for processing data is using, is to use command line sparrmaters to launch extra copies of your script, each doing what you need. You can have it return the data to the main thread through Inter-Process Communication. There are many methods of doing this. The simplest and slowest is writing to a database or file.1 point -
I just stumbled across this sublime technique of concatenating DOS commands with &&, in order to run them on the same line. EXAMPLE -- Does all of this in ONE execution of RunWait().. set current drive to C:change path to WINNT foldercollect the list of files there into a temporary fileopen the file in your text editor RunWait( @COMSPEC & " /c C:&&cd \winnt&&dir>D:\temp\multi.txt&&D:\temp\multi.txt", "", @SW_SHOW )1 point