Leaderboard
Popular Content
Showing content with the highest reputation on 08/19/2013 in all areas
-
Although serial ports are disappearing, they can still be useful. Here is a COMMs UDF. It provides an easy way to use serial ports without the restrictions and problems some methods have. USB to serial is ok, binary data is ok. This UDF requires my comMG.dll which can be in either the script folder or the Windows folder by default, or in the path specified using the function _CommSetDllPath. Note the following shortcomings: the dll link below is 32 bit so it will not work with a 64 bit apps, but there is a 64 bit version in my post around 25th March 2018 for people to try. The strings and character functions are all AnsiChar. Functions in the UDF are _CommVersion _CommListPorts _CommSetPort _CommPortConnection _CommClearOutputBuffer _CommClearInputBuffer _CommGetInputcount _CommGetOutputcount _CommSendString _CommGetString _CommGetLine _CommReadByte _CommReadChar _CommSendByte _CommSendBreak; not tested!!!!!!!!!! _CommCloseport _CommSwitch _CommReadByteArray _CommSendByteArray _CommsetTimeouts _CommSetXonXoffProperties _CommSetRTS (NB these will not work if Hardware handshaking is selected because _CommSetDTR then these lines are controlled by the data being sent.) _CommSetDllPath _CommGetLineStates -------------------------------------------------------------------------------------------------------------------------------- Go to Download Page For Commgv2 Download includes the dll and udf. Most recent changes 28th March 2014 - dll V2.83 Correct error setting 6 data bits as 7. 11th March 2014 dll V2.82 Allow data bits of 4 to 8 instead of only 7 and 8. 19th August 2013 dll v2.81 removes some unwanted eroor message popups. Might not remove popups for some Windows versions. 27th September 2012 Correct error closing port. New version of UDF if V2.90, new dll is commg.dll V2.79. Thanks to tfabris. 18th January 2012 Corrected typo in UDF V 2.87, and uploaded as V2.88 Increased max baud allowed by the dll from 200000 to 256000. New version now V2.78 17th January 2012 Modified thesleep addition to _CommGetLine so that reading data is not slowed down. 14th January 2012 Corrected _CommReadByte in UDF. Added sleep(20) to while loop in _CommGetLine to reduce CPU usage 20th December 2011 UDF version 2.86. - Changed function GetByte so it returned the error string given by the dll. Dll version 2.77 - removed an unwanted erro message dialogue from GetByte function. (Thanks funkey) 4th December 2011 New dll and example versions. Dll function SetPort corrected because it was not using the parameters passed for DTR and RTS. The example was setting flow control incorrectly: the settings for hardware handshaking and XON./XOFF were reversed. 25th August 2011 corrected function _CommClosePort. Example corrected for setting parity and flow 22nd December 2013 (thanks to MichaelXMike) mgrefcommg CommgExample.au31 point
-
Hello I want to start off by saying I have the greatest respect for AutoIt and its developer I've used it for many years and it's saved my ass countless times I've used it since the beginning infact and I have huge complex scripts to prove it such as Bots and all kinds of automation stuff (I can post if you want lol). I love AutoIt but I always felt it was lacking certain features that I missed a lot from Perl/PHP/C#/C++ I tried using the AutoIt DLL to embed AutoIt into projects I was doing but I found the DLL deeply lacking and with a deep inability to customize the functions that DLL gives really upset me. I decided to try make my own little script language to try bridge the gap between my favourite general programming language and AutoIt scripting a kind of glue if you will. Evenutally it grew from being a simple glue to its own individual scripting language that handles every function internally and does not use anything from AutoIt. It was not easy making such a complex language that would incorporate all the best stuff from AutoIt and all the best stuff from other languages I love such as classes/arrays from PHP, Regexes from Perl and so on. The result of my work (the past 2 years of work infact) is Sputnik. I have tried to make Sputnik as friendly for AutoIt users as possible (similar function names etc) so people can test stuff and see if they like/hate it. Sputnik Scripting Language a simple easy to use beginner friendly language created to be have as much stuff from all my favourite languages as possible in one place. This was made as a fun project to try produce a scripting language that did everything I need to do. Sputnik is already proving to be a lot of fun and very easy to use and very powerful! It is fully useable. A list of some of the things Sputnik supports: * Ability to make GUI programs that support infinite amounts of Windows running at once * PHP Style syntax using curly braces {} * Enums like C++ * Approx 700 functions, 50 or so operators and many casts * Dynamically unload functions/classes from your running program and reload them back again from source code allowing full complete updates to the source of your program while it is still running * Try/Catch/Finally with ability to create exceptions even extended ones using the internal class * Can assign hotkeys to run scripts/functions anything they can be simple hotkeys or very complex hotkeys * The $variable can be any of the following: char, bool, byte, sbyte, int16, int32, int64, uint16, uint32, uint64, float, double, string, array, ref * Ability to make Macros to control Windows/Buttons/Objects/Mouse/Keyboard (Bascially like as AutoIt) can send text to applications etc etc * Classes with ability to extend them and multiple inheritance every operator and cast can be overloaded in the Classes * Multi-threading with ability to spawn/speed/kill threads and even define areas of code as Locked so stop two threads running it at once * Can place $variables inside strings like "hello $name how are you" * Can use all C++ escapes in the strings such as n and x etc etc * Can use all Perl escapes in strings such as "Hello {msgbox('test')} ok" to run code inside strings * Can make GUI programs with buttons and all kinds of stuff even MDI interfaces * Very easy to use Array system that works exactly like PHPs no need to redim etc etc * Support for calling DLL functions and even pass arrays as individual arguments and even inline C code directly into your script * Perl style regexes using same syntax as Perl $var =~ //; etc * Support for complex Parsers using Rules and Terminals (Sputnik's parser function can even be used to parse Sputniks own code) * Type checking like $var ~~ Int32 * Binary features to handle Binary data with Pack() Unpack() (similar to PHP/Perl) and over 40 binary functions * Stream functions similar to binary but faster if you want to do loads of appending/inserting * Many math functions * Around 60 string functions * DLLCall can call single functions but DLLImport can load thousands at a time and even save them as newly compiled DLL for faster loading speed * Can capture console output of executed third party programs * Many file creation/read/write frunction * Many directory/path functions * Ability to create UDP/TCP raw sockets for creating client/server programs * Includes an additional easy to use beginner friendly powerful internal Client/Server series of functions making producing client/servers a breeze * Many memory read/write functions for Trainer creation and game hacking * Many memory function to alloc, free, modify in many ways * Get/Set clipboard data * MsgBox/InputBox * Can hook messages to improve your macros like mousehooking/keyhooking * All the familure Win___() functions from AutoIt you would expect WinActive, WinList its all there * All the Control___() functions from AutoIt you would expect * Pixel functions such as searching for pixels on screen for creating AimBots * Call functions by name with params or arrays of params * Dynamically create source code/functions while your program is running and execute that code * Dynamically create a function on a $variable and execute it like: $Func = Function( $a, $b ){ println("Value is: " . ($a + $ [ ] ); }; CallFunc($Func, array(10, 20)); * Ability to throw exceptions/die * Ability to include/require and optionally once * Opt() like AutoIt to set any options you desire like WinTitleMatchMode * Comes with a small but growing library of functions/classes made in Sputnik that includes vector3 class, parses etc creating C dlls/exes etc * Sputnik fully parses the scripts before it starts executing code so you dont *bump* into an error later you get it right in your face straight away. * Supports global variables like: Global $value = "hello"; * Supports local variables like: my $value = "hello"; * Supports scoped variables inside braces if() { my $value = "hello"; } * Supports Lists like: List ($name, $id) = Split($str, '|'); and many many more.... see the wiki I have created a wiki for Sputnik where I place all its functions and operators etc etc the link is: http://uberfox.no-ip.org/Sputnik/wiki The "Function Reference" page on the wiki contains every function found in Sputnik with example code you can copy and paste. I would be happy if you could try it out and tell me if you like it or dont like it whatever I made it for myself and in the whole time it's existed only me and my friend have actually used it nobody else but I would like to see if anybody else is interested... Or not... If you decide to take a look I would greatly appreciate bug reports and any advise/function requests you wish. Sputnik is also available as a DLL that can be used from any program. You can e-mail me at uberfox@hotmail.com EDIT ---- READ Well I have received some PM's from the AutoIt staff and they have informed me that although I'm not breaking any rules by being here they do feel that I should rather have my own forum than to promote/track/update etc the status of Sputnik on this forum. Which is perfectly understandable considering many languages have their own forums such as PHP, QuickMacros, AutoHotKey and what not. I do wish to thank the staff at AutoIt for being kind and supportive of my project. If people wish to continue talking about Sputnik I'm afraid you will need to do it at my forum the link is here: http://uberfox.no-ip.org/forum It is an old forum I had years ago I used it for my mods and other projects however I recently just deleted everything on it and did a general reset to get rid of all spam and put Sputnik on it well it should still work despite how old it is. If you are having issues posting make sure to read the new member post: http://uberfox.no-ip.org/forum/showthread.php?31307-Welcome-new-Members! I will instantly promote anybody to full member who requests it.1 point
-
File Name: AutoIt v3.3.9.17 Beta File Submitter: Jon File Submitted: 15 Aug 2013 File Category: Beta 3.3.9.17 (15th August, 2013) (Beta) AutoIt: - Added: StringReverse() - a UTF16 compatible string reversal function. - Added: FileReadToArray() - native version of _FileReadToArray(). - Changed: Some misc internal rewrites in array assignment mean that some large internal array assignments (StringRegExp() for example) may be slightly quicker. Maybe. - Fixed #2366: For loop not working as expected. UDFs: Others: - Added: Sublime Text AutoIt.tmLanguage file to the editors folder. This contains a list of up to date functions. - Fixed: StringRegExpGUI missing from the help file index menu. Plus, lots of helpfile changes. Click here to download this file1 point
-
That's the whole idea of the avatar/comment. If you remove that link averything loose its meaning.1 point
-
simple copy 1 file from A to B will admin rights are needed.
BrewManNH reacted to Unc3nZureD for a topic
RunAsWait("admin", "domain", "password", "", @ComSpec & '/c copy "c:\temp\clupgrade\mc.dll" "c:\apps\ibm\lotus\notes\mc.dll"', @SystemDir) I think this one should work.1 point -
Perhaps, but he should be happy if it works instead of "not working". This is more annoying than anything else. Going to eat a tree one day.1 point
-
TIDY - proposal - add comment to Else, EndIf , EndSelect, EndIf , WEnd
jaberwacky reacted to FireFox for a topic
Not needed, there is already the expend/minimize red line for that.1 point -
1 point
-
1 point
-
#include <ListBoxConstants.au3> #include <GUIConstantsEx.au3> $hGUI = GUICreate("GUI с элементом списка - List") $sText = FileRead(@ScriptFullPath) $sText = StringReplace($sText, @CRLF, '|') $sText = StringReplace($sText, '||', '|') $mylist = GUICtrlCreateList("", 10, 10, 330, 330, $GUI_SS_DEFAULT_LIST + $LBS_NOINTEGRALHEIGHT) GUICtrlSetData(-1, $sText) GUISetState() While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd1 point
-
It's not a find the answer forum, a riddle or whatever1 point
-
As I told you the last time you asked about nesting: The browser works with a DOM (Document Object Model). IE exposes the DOM API through COM. Both the Internet Explorer window and each frame are a "document container" - each document has it's own DOM. To get to objects in other documents, you must set up a new DOM context (you must drill into nested documents). For the most part, IE.au3 and the DOM treat iFrames and Frames the same. So, if your structure above is accurate, the following should give you references to the two input objects: $oFrame1 = _IEFrameGetObjByName($oIE, "Main") $oFrame2 = _IEFrameGetObjByName($oFrame1, "middle") $oFrame3 = _IEFrameGetObjByName($oFrame2, "contents") $oForm = _IEFormGetObjByName($oFrame3, "edits") $oInput1 = _IEFormElementGetObjByName($oForm, "desc") $oInput2 = _IEFormElementGetObjByName($oForm, "btnCreate") Note, you can also replace the last 3 lines with these two: $oInput1 = _IEGetObjByName($oFrame3, "desc") $oInput2 = _IEGetObjByName($oFrame3, "btnCreate") Note that is you use the last code snippet, if there is more than one object by that name on the page, you may get the wrong one (you'll get the first one in object order unless you use the optional index parameter). Dale1 point
-
I'd probably start with something like this $StructName = DllStructCreate("char[1024]") $StructDesc = DllStructCreate("char[1024]") For $i = 0 To 9 $aRslt = DllCall("Avicap32.dll", "bool", "capGetDriverDescription", "dword", $i, "ptr", DllStructGetPtr($StructName), "dword", DllStructGetSize($StructName), "ptr", DllStructGetPtr($StructDesc), "dword", DllStructGetSize($StructDesc)) If @error Then Exit (MsgBox(0, "DllCall Error", @error)) EndIf If $aRslt[0] Then ConsoleWrite(DllStructGetData($StructName, 1) & @LF & DllStructGetData($StructDesc, 1) & @LF & @LF) EndIf Next EDIT: I get no results from this, but I have no webcams, so I cannot say if it works one way or the other. But the idea is, if you have webcam drivers installed, it's likely you have a webcam installed.1 point
-
I'd probably just use _WinApi_UniquehardwareID for something like that.1 point
-
Added the very * 3 basic version to first post.1 point