Leaderboard
Popular Content
Showing content with the highest reputation on 06/12/2013 in all areas
-
New MVPs
DigitalFacade82 and 2 others reacted to Melba23 for a topic
In case anyone had not noticed, I am happy to announce that we have three new MVPs: PhoenixXL, FireFox and kylomas. I am sure you will all join in with my hearty congratulations to them all. M233 points -
LAST VERSION - 3.8 03-Jul-12 This library contains the WinAPI functions are not included for unknown reasons to the native AutoIt WinAPI library. I use this UDF in nearly all of my programs, and decided to share it with the AutoIt community. I agree that over time some of these functions will be part of the native AutoIt library, but still... The library includes some undocumented, but useful functions (eg _WinAPI_GetFontResourceInfo()). The library also contains all the necessary constants to work with the appropriate functions. Most functions from this UDF intended for experienced users, but beginners will find the same lot of useful information for yourself. I will be to periodically add new functions to the library. The archive contains WinAPIEx library, and as usual an excellent examples from me. Some examples I took from this forum and to simplify them for better understanding. For those who use SciTE (full version) I have prepared the au3.userudfs.properties and au3.user.calltips.api files to highlight functions from this UDF in your scripts. Just copy this files to ...SciTEProperties and ...SciTEAPI, respectively. I hope this UDF will be useful for many as for me. I look forward to any feedback and suggestions. Maybe somebody wants to add new WinAPI functions? Credits Available functions Files to download WinAPIEx UDF v3.8 for AutoIt 3.3.6.1 Previous downloads: 27953 WinAPIEx UDF v3.8 for AutoIt 3.3.8.x Previous downloads: 148501 point
-
Form Builder beta
mLipok reacted to BuckMaster for a topic
Update v1.0.6 Major script overhaul, I literally started over from scratch only adding parts of code from the old script that were solid. I don’t have a help file made as of now so I am going to explain all of the functionality in this post - Form Builder is no longer bi-directional, you now toggle between script mode and GUI mode using a button in the top right or F4 - The script no longer recompiles on every change but instead inserts changes into the script - Form Builder no longer cares about Event mode or GuiGetMsg mode - No more .gui files, you now edit .au3 scripts directly - Script edit is now a SciLexer control, includes syntax highlighting, folding, call tips, keywords, and inline error annotations. - Script output console is now at the bottom in script mode - Main GUI menu redone, most functions from SciTe have been added along with their hotkeys - All restrictions to editing the script have been removed - GDI+ and Graphic editors removed - Cleanup of script, stability greatly increased - Hotkeys no longer use _IsPressed they now use GUIAccelerator keys (with exception to a few) - Multiple scripts can be open - Form Builder buffers the open scripts and adds an asterisk * to scripts that have been modified - Rich Edit, GUIScrollbars, Dummy, and Updown are disabled for now until I can add them - GUI Menu controls cannot be created as of now but will be rendered in the editor - Undo and Redo actions in script mode and GUI mode added, the GUI undo and redo buffer is cleared switching between modes - The Undo and Redo buffers do not have a limit but are cleared when switching between modes or scripts - Undo and Redo actions do not work for controls that have no control handle - The Treeview now works as a Go to function for controls and functions in script mode - Form Builder now tries to preserve as much of the original content as possible, it will save whitespace in-between parameters and comments on controls - Treeview context menu reworked, much more responsive - Unicode support added File -> Encoding -> UTF-8 - Language support added, I added a couple of language files and used Google translate just so I could size my GUI's for different languages, I do not support what those language files say - Selecting a GUI in the Treeview in GUI mode will allow you to change the GUI's Handle, Position, Background Color, State, Cursor, Font, Font Size and Font Attributes - Auto Declare is no longer hiding in the settings, it is now on the top right and is a toggle between Off, Global and Local - Help File Lookup added (Ctrl + H), allows you to search selected text in the help file, Any variable will be searched and the first result will be displayed, any string will be searched as a keyword in the index - Added current script line, column, and selection length in the bottom left - Standard undeclared style constants are checked before script execution and the script will prompt if an undefined style constant is found - You can now toggle script whitespace, EOL characters, line numbers, margins and output in the View menu - View -> Toggle All Folds works as it does in SciTe, only base level folds are changed and the first fold found determines whether to expand or contract - Form Builder Settings redone - Bugs with submitting data and control selection have been fixed - Fixed problems with frequently called repetitive functions causing issues with large scripts - Fixed bugs with B, I, U and S font attribute buttons getting stuck and called when enter was pressed Update v1.0.7 - Help File Look-up hotkey changed to Ctrl+B - Replace hotkey changed to Ctrl+H - Changes to $SCN_MODIFIED so only text events are notified - Bookmarks added, Ctrl+M to add or delete a Bookmark from the current line - Edit -> Bookmarks -> Set Bookmark changes the currently selected Bookmark - Edit -> Clear Current Bookmarks deletes only the currently selected Bookmark - Allows you to change foreground and background colors of Bookmarks - Added F2 hotkey for Next Bookmark - Added Shift+F2 hotkey for Previous Bookmark - Fixed a bug that made it so script annotation did not show up for some people - Script errors and warnings now add a Bookmark on each line - Ctrl+E hotkey added to clear all Bookmarks and Annotations - Minor GUI tweaks - Fixed a bug with the GUI Style undo action - Undo and Redo actions for GUI windows will now update the window properties if the GUI is selected - F4 Hotkey no longer switches modes, switching modes is now F10 - F4 is to toggle next error or warning message, works like it does in SciTe, bookmarks the line and highlights the error in the console - Shift+F4 Hotkey added to toggle previous error or warning message - Shift+F5 Hotkey added to clear script output - Ctrl+F5 Hotkey added as SyntaxCheck Prod - Form Builder now performs a SyntaxCheck before entering GUI Mode and prompts on Error or Warning - Language Select Menu Added Settings -> Lanugage - Icons added to main menu - Languages added to all new menu items and msgbox's - Language Files updated for new data - Language Support added for Arabic, Chinese, Dutch, French, German, Hebrew, Japanese, Swedish, Thai, and Vietnamese [ Google Translate ] - Fixed bug with updating a language that made it look like ANSI and UTF-8 were both selected - Added redo button next to undo button - Font attribute buttons Bold, Italic, Underline and Strike-Out changed to labels Update v1.0.8 - Somehow a main function got deleted causing the script to crash on some changes - Fixed some issues with updating Languages Hotkeys Ctrl + N - New Blank Script Ctrl + G - New GUI Script Ctrl + O - Open Script Ctrl + Shift + S - Save As Ctrl + S - Save Esc - Close Open Script Alt + F4 - Exit Ctrl + Z - Undo Ctrl + Y - Redo Ctrl + X - Cut Ctrl + C - Copy Ctrl + V - Paste Ctrl + A - Select All Ctrl + W - Clear inline script annotation Ctrl + E - Clear inline script annotation and bookmarks Ctrl + F - Find Ctrl + F3 - Find Next Shift + F3 - Find Previous (doesn’t work yet) Ctrl + B - Help File Lookup F5 - Go Alt + F5 - Beta Run F7 - Build Ctrl + F7 - Compile F11 - Full screen F8 - Toggle Show/Hide Script Output Ctrl + I - Open Include Ctrl + H - Replace F1 - AutoIt Help File Ctrl + D - Duplicate Control Delete - Delete Control Ctrl + Shift + 8 - Toggle Show/Hide Script Whitespace Ctrl + Shift + 9 - Toggle Show/Hide Script EOL characters Ctrl - GUI Mode multicontrol selection F10 - Switch Modes F4 - Next Message Shift+F4 - Previous Message Shift+F5 - Clear Output Ctrl+M - Add Bookmark F2 - Next Bookmark Shift+F2 - Previous Bookmark Basic GUI Mode How To Create a Control - click a control on the left - click in the GUI you wish to add the control Left Click: Click and drag to auto resize the control Right Click: Creates the control at a standard size Select a Control - click inside the control or select it in the treeview Change a controls Data - First select the control - modify the controls data on the right, press enter to submit changes state, cursor, font and resizing update when you change the data - when modifying the data parameter the script recognizes if there is a variable in the data and will add quotes accordingly ex. data parameter = $data, End result in script: GUICtrlCreateButton($data, 50, 50, 100, 20) ex. data parameter = data, End result in script: GUICtrlCreateButton("data", 50, 50, 100, 20) ex. data parameter = "data"&$data, End result in script: GUICtrlCreateButton("data"&$data, 50, 50, 100, 20) Applying an Image to a control - select a control - control styles must be applied to some controls before adding an image - click the ... button next to the Image input in the Control Properties area in the bottom right - select the image you want to display, allows jpg, bmp, gif, ico and dll files - selecting a dll will open another prompt to choose which resource to display Control Grouping - multiple controls must be selected - press the group controls button - control grouping allows you to resize and move multiple controls at the same time, as of now groups are deleted when leaving GUI mode I only have a couple odds and ends to finish up before everything should be complete, I need to add Undo and Redo actions for copying and duplicating controls and a couple other minor things, eventually I want to try to add all of the UDF controls as well. If people are willing to translate the language file I would be very grateful, the ones I have right now are from Google translate, I only used them for testing and have no idea what they say. I want to thank Kip, Prog@ndy, Isi360 and all of the other contributors on this forum, without you guys i don't think i could have written this script. Please post any comments, problems or suggestions, BuckMaster * I only used one "magic number" on my main close case statement, only for faster locating, and i don't care. Form Builder Source.zip Form Builder.zip1 point -
Pasted below is a short, simple AutoIt script that I wrote to test TCP control of Zoom Player Max (ZP) . The functions available are at this link. May it help someone in the future. Thank you to BrewManNH and TheSaint for their help in other threads I started. ;simple AutoIt script for controlling Zoom Player via TCP HotKeySet("{ESC}", "Terminate") ;ESC to bail out ;these will be used when I open the TCP socket $ip = "127.0.0.1" $port = "4769" ;start TCP service TCPStartup() ;open TCP socket and see if it was successful $socket = TCPConnect( $ip, $port ) If $Socket = -1 Then MsgBox(4096,"Error","Failed to connect to ZP via TCP on localhost at port 4769.") Terminate() EndIf ;now loop, presenting Text Input prompt for user to enter a ZP function and optional parameters. while 1 ;text entry prompt with Cancel button $msg = InputBox("ZP TCP Controller","Enter text to send via TCP (default is play). Or Cancel to exit.): ", "5100 fnPlay" & @CRLF) if @error = 1 then Terminate() ;@CRLF needed at end of text to be sent! $msg = $msg & @CRLF ;the rubber meets the road here $send = TCPSend($socket, $msg) WEnd Terminate() Func Terminate() ;process ESC key and close TCP TCPCloseSocket($socket) TCPShutdown() Exit 0 EndFunc If anyone wants to add the ability to receive responses from Zoom Player I would welcome the addition. Here's a link to a very clear explanation of communicating via TCP with ZP via Autohotkey, including receiving the info ZP sends back up the pipe. Also, here's a link to download a neat TCP testing tool written in Delphi for the ZP community. Zoom Player is a great video player in my opinion, with inspiring depth AND incredible documentation.1 point
-
1 point
-
compare numbers -need help-
Alexxander reacted to FireFox for a topic
Try this: #include <Constants.au3> Local $iSize = InetGetSize("http://www.autoitscript.com/autoit3/files/beta/update.dat") Local $iMySize = FileRead("test.txt") If @error Then Exit 1 ;either the file does not exists or it's used by another app. If $iSize = $iMySize Then MsgBox($MB_SYSTEMMODAL, Default, "Matched!") Else MsgBox($MB_SYSTEMMODAL, Default, "The strings did not match!") EndIfBr, FireFox.1 point -
Hi, It does not seem good as the @error flag is different for each function, you shoud instead check if it's different from 0. Local $iErrCount = 0 myFunc() $iErrCount += @error MyFunc2() $iErrCount += @error ;etc.Br, FireFox.1 point
-
SplashTextOn Replacement
michaelslamet reacted to PhoenixXL for a topic
Its simple, check this out #include-once #include <Array.au3> Global $Splash_Hwnd = 0 ;this coding would allow only one SplashText through this one function as native. ;here $iMilliSecs stands for the amount of milliseconds to wait before closing the splashtext, this shouldn't be less than 10. Func SplashTextOn_Async($s_Title, $s_Text, $iMilliSecs, $iWidth = -1, $iHeight = -1, $iXpos = -1, $iYpos = -1, $iOpt = -1, $s_Fontname = "", $iFont_Size = -1, $iFont_Weight = -1) $Splash_Hwnd = SplashTextOn($s_Title, $s_Text, $iWidth, $iHeight, $iXpos, $iYpos, $iOpt, $s_Fontname, $iFont_Size, $iFont_Weight) AdlibRegister("SplashTextOff_Async", $iMilliSecs) EndFunc ;==>SplashTextOn_Async Func SplashTextOff_Async() SplashOff() AdlibUnRegister("SplashTextOff_Async") EndFunc ;==>SplashTextOff_Async SplashTextOn_Async("Title", "Text", 3000, Default, Default, Default, Default, 16) ;movable Async SplashText for 3secs. ;run the script till the SplashText is switched off. Do Sleep(10) Until WinExists($Splash_Hwnd) = 0 Information SplashText/ImageOn never pauses the script, that is the user that uses the Sleep command to pause the script so that the script is alive while the Text/Image is shown. To make the SplashText movable use 16 in the opt parameter. If you just needed a auto-close timer for the splashtext, thats the above script. Regards1 point -
Download the latest beta version of AutoIt3, WinAPIEx is now included.1 point
-
Javascript Submit Error
big_daddy reacted to crashnburn for a topic
big_daddy you have been a blessing! Thank you very much for taking time to explain. I feel like I have a much more firm understanding of @exteneded now. Thank you again for all your help!1 point -
Question - How do you guys & girls keep track of all your code snippets ?
HeavenlyDemon reacted to Blue_Drache for a topic
I keep them in my head.1 point -
Image Search Library
jvanegmond reacted to Hyflex for a topic
Lucky, I still have a backup of this See attached. However, I don't know how to get it working I'm constantly getting: if $result[0]="0" then return 0 if $result^ ERRORWhenever I run... (Line 40 of ImageSearch.au3)ImageSearch.zip1 point -
Hi, There is some UDFs in the examples scripts forum section like ImageSearch. Br, FireFox.1 point