-
Posts
4,054 -
Joined
-
Last visited
-
Days Won
6
Reputation Activity
-
monoceres got a reaction from ioa747 in Tutorial on DllCall() & DllStructs
So I think it's time to publish this little tutorial I have made on using DllCall() and DllStructs. It's not near completion but I think it's a good start at least
This tutorial is mostly aimed for people who have never used DllCall() before or have very limited knowledge about it. In the future I will update it with more advanced topics so more advanced users can make use of it too.
Well here goes.
Dealing_with_Dll.pdf
Previous downloads: 31
Suggestions, language corrections and errors in the tutorial is of course welcome.
-
monoceres got a reaction from Xandy in A cross-platform implementation of the AutoIt language
Many years ago, when the world was still young, I worked on something similar... I never finished it and I added many new features to the language so it’s more like a derivative language.
Anyways, the code (including compiler and runtime) is publicly available on GitHub: https://github.com/andreasjhkarlsson/ai5 maybe it will provide useful for your project.
-
monoceres got a reaction from Soa in How to create log file by date?
There are some nice macros available
FileWrite("log"&@year&@mon&@mday&".txt","Logging something...")
-
monoceres got a reaction from jchd in A cross-platform implementation of the AutoIt language
Many years ago, when the world was still young, I worked on something similar... I never finished it and I added many new features to the language so it’s more like a derivative language.
Anyways, the code (including compiler and runtime) is publicly available on GitHub: https://github.com/andreasjhkarlsson/ai5 maybe it will provide useful for your project.
-
monoceres got a reaction from TheSaint in A cross-platform implementation of the AutoIt language
Many years ago, when the world was still young, I worked on something similar... I never finished it and I added many new features to the language so it’s more like a derivative language.
Anyways, the code (including compiler and runtime) is publicly available on GitHub: https://github.com/andreasjhkarlsson/ai5 maybe it will provide useful for your project.
-
monoceres got a reaction from TheDcoder in A cross-platform implementation of the AutoIt language
Many years ago, when the world was still young, I worked on something similar... I never finished it and I added many new features to the language so it’s more like a derivative language.
Anyways, the code (including compiler and runtime) is publicly available on GitHub: https://github.com/andreasjhkarlsson/ai5 maybe it will provide useful for your project.
-
monoceres got a reaction from genius257 in Sleep down to 100 Nano seconds
My god I was surprised when I found this function, it's frickin' awesome.
It allows you to sleep down to 100 nanoseconds!
UDF:
; #FUNCTION#;=============================================================================== ; ; Name...........: _HighPrecisionSleep() ; Description ...: Sleeps down to 0.1 microseconds ; Syntax.........: _HighPrecisionSleep( $iMicroSeconds, $hDll=False) ; Parameters ....: $iMicroSeconds - Amount of microseconds to sleep ; $hDll - Can be supplied so the UDF doesn't have to re-open the dll all the time. ; Return values .: None ; Author ........: Andreas Karlsson (monoceres) ; Modified.......: ; Remarks .......: Even though this has high precision you need to take into consideration that it will take some time for autoit to call the function. ; Related .......: ; Link ..........; ; Example .......; No ; ;;========================================================================================== Func _HighPrecisionSleep($iMicroSeconds,$hDll=False) Local $hStruct, $bLoaded If Not $hDll Then $hDll=DllOpen("ntdll.dll") $bLoaded=True EndIf $hStruct=DllStructCreate("int64 time;") DllStructSetData($hStruct,"time",-1*($iMicroSeconds*10)) DllCall($hDll,"dword","ZwDelayExecution","int",0,"ptr",DllStructGetPtr($hStruct)) If $bLoaded Then DllClose($hDll) EndFunc
No msdn link for this one, since there is none
Note: Even though it supports down to 100 ns sleep don't count on that for being correct in practise because autoit will take some time to call the function (and all the other sutff that are in the UDF). For example on my machine, it took autoit 260 microseconds to call the function.
-
monoceres got a reaction from mLipok in Zlib UDF
I wrote this because I wanted a simple way to compress data in memory instead of files.
And because rasim has done an excellent job with his 7Zip udf that handle files I did not include any file support.
Following functions exists:
_Zlib_Version()
_Zlib_Shutdown()
_Zlib_Startup($Filename = "zlibwapi.dll")
_Zlib_CalculateAdler32($DataPtr, $DataSize)
_Zlib_Uncompress($CompressedPtr, $CompressedSize, $UncompressedPtr, $UncompressedSize)
_Zlib_Compress($InBufferPtr, $InBufferSize, $OutBufferPtr, ByRef $OutBufferSize, $CompressionLevel = $Z_DEFAULT_COMPRESSION)
_Zlib_CompressBinary($binary, $CompressionLevel = $Z_DEFAULT_COMPRESSION)
_Zlib_UncompressBinary($compressedbinary, $UncompressedBinaryLength)
More info in the UDF.
Example:
#include "zlib udf.au3" _Zlib_Startup() $bin=StringToBinary("hahahahahahahahahahahehe") $binlen=BinaryLen($bin) $compressed=_Zlib_CompressBinary($bin) $uncompressed=_Zlib_UncompressBinary($compressed,$binlen) MsgBox(64,BinaryToString($bin),"Original:"&@CRLF&$bin&@CRLF&@CRLF&"Compressed: "&@CRLF&$compressed&@CRLF&@CRLF&"Uncompressed: "&@CRLF&$uncompressed) _Zlib_Shutdown()
Download:
zlib_udf.au3
Previous downloads: 33
Zlib dll download:
http://www.zlib.net/
Ps. If anyone want to continue adding functions to this, go ahead I won't probably work anymore one this anyway
-
monoceres got a reaction from Draygoes in how i hack
Open console then type "hack -n PERSONTOHACK -hide -override"All done
-
monoceres got a reaction from JoeBar in Tutorial on DllCall() & DllStructs
So I think it's time to publish this little tutorial I have made on using DllCall() and DllStructs. It's not near completion but I think it's a good start at least
This tutorial is mostly aimed for people who have never used DllCall() before or have very limited knowledge about it. In the future I will update it with more advanced topics so more advanced users can make use of it too.
Well here goes.
Dealing_with_Dll.pdf
Previous downloads: 31
Suggestions, language corrections and errors in the tutorial is of course welcome.
-
monoceres got a reaction from Fr33b0w in Audio Visualization with GDI+ & Bass
Depends
No, but seriously, you can use the source as long as you credit it for me
-
monoceres got a reaction from RestrictedUser in Tutorial on DllCall() & DllStructs
So I think it's time to publish this little tutorial I have made on using DllCall() and DllStructs. It's not near completion but I think it's a good start at least
This tutorial is mostly aimed for people who have never used DllCall() before or have very limited knowledge about it. In the future I will update it with more advanced topics so more advanced users can make use of it too.
Well here goes.
Dealing_with_Dll.pdf
Previous downloads: 31
Suggestions, language corrections and errors in the tutorial is of course welcome.
-
monoceres got a reaction from abberration in Tutorial on DllCall() & DllStructs
So I think it's time to publish this little tutorial I have made on using DllCall() and DllStructs. It's not near completion but I think it's a good start at least
This tutorial is mostly aimed for people who have never used DllCall() before or have very limited knowledge about it. In the future I will update it with more advanced topics so more advanced users can make use of it too.
Well here goes.
Dealing_with_Dll.pdf
Previous downloads: 31
Suggestions, language corrections and errors in the tutorial is of course welcome.
-
monoceres got a reaction from caramen in Tutorial on DllCall() & DllStructs
So I think it's time to publish this little tutorial I have made on using DllCall() and DllStructs. It's not near completion but I think it's a good start at least
This tutorial is mostly aimed for people who have never used DllCall() before or have very limited knowledge about it. In the future I will update it with more advanced topics so more advanced users can make use of it too.
Well here goes.
Dealing_with_Dll.pdf
Previous downloads: 31
Suggestions, language corrections and errors in the tutorial is of course welcome.
-
monoceres got a reaction from AnonymousX in Latest file in a folder
Since the function is pretty easy to write, I made it for you.
#include <File.au3> MsgBox(0, "", _FindLatest(@ScriptDir)) Func _FindLatest($dir) Local $latest[2] $files = _FileListToArray($dir, "*", 1) For $i = 1 To UBound($files) - 1 If FileGetTime($files[$i], 1, 1) > $latest[0] Or $i = 1 Then $latest[0] = FileGetTime($files[$i], 1, 1) $latest[1] = $i EndIf Next Return $files[$latest[1]] EndFunc ;==>_FindLatest
-
monoceres got a reaction from ibrahem in DirectShow UDF
Hi.
This is a fully capable DirectShow UDF that allows you to play videos in a window using available filters on the local system.
The UDF consist of a dll (written by me, source is given on demand and reason) and a au3 file that acts as an interface between you and the dll.
The included example is very, very basic, for more detailed usage and tips on how to solve things look at the AAA Player, which is the reason this dll exists in the first place.
Have fun, and if there's any questions, don't hesitate to ask!
DSEngine.zip
Ps.
trancexx, I removed the resources from this one
-
monoceres got a reaction from AlienStar in Get first link of google search results
Got it!
#include <ie.au3> $searchterm = StringReplace("AutoIt Wikipedia", " ", "+") $url = "http://www.google.com/search?hl=en&q=" & $searchterm & "&btnI=I%27m+Feeling+Lucky&aq=f&oq=" $answer = MsgBox(68, "?", "Direct link to AutoIt Wikipedia is:" & @CRLF & $url & @CRLF & "Navigate now?") If $answer = 6 Then ShellExecute($url) -
monoceres got a reaction from mLipok in AVI writing udf
Yep, 7 months later and I finally did it!
It's a UDF for creating uncompressed avi:s from bitmap files (support for compressing the video, may or may not appear).
The structure is very easy:
Start the avi library Create a avi file Add bitmaps to it Close the avi Stop the avi library Download:AVIWriter.au3
Previous downloads: 55
Example:
; Example by ProgAndy #include <ScreenCapture.au3> #include "AVIWriter.au3" Hotkeyset("{ESC}","close") Break(0) FileDelete(@DesktopDir & "\test.avi") _StartAviLibrary() $avi = _CreateAvi(@DesktopDir & "\test.avi", 5,200,200) Do $m = MouseGetPos() $hBmp = _ScreenCapture_Capture("", $m[0] - 100, $m[1] - 100, $m[0] + 100, $m[1] + 100, True) _AddHBitmapToAvi($avi, $hBmp) _WinAPI_DeleteObject($hBmp) Sleep(200) Until False Func close() _CloseAvi($avi) _StopAviLibrary() exit EndFunc;==>close
Enjoy!
Link to FireFox's AviScreencapture tool that relies on this udf.
-
monoceres got a reaction from xan in AutoIt Chess
Hi!
This is a project I've been working on for quite some time and I'm happy to finally being able to release something that almost works as a complete chess game.
Features:
- A working PvP mode that detects both Check, Checkmate and Stalemate.
- Game engine written completely in C++ for maximum speed.
- Clean looking GDI+ Graphics
- In game assistance that help you see where you can move your piece.
- Animated menus and info screens
- High scores
ToDo:
- Bot (Need more testing of the game play so there is no weird bugs that undermine the bot before I can start working on it)
- Rotation of board when players switch turns.
- Castling
- Better looking info when winning/draw occurs
- Optimize for better speed
- An icon (have any?)
Screenies:
Download:
autoit_chess.zip
IMPORTANT!
If you cannot move the pieces or get an subscript error that means that the Game Engine couldn't be initialized, please download the VC++ 2008 Redist to install the libraries necessary for the game to function correctly.
Have fun!
-
monoceres got a reaction from jvds in Tutorial on DllCall() & DllStructs
So I think it's time to publish this little tutorial I have made on using DllCall() and DllStructs. It's not near completion but I think it's a good start at least
This tutorial is mostly aimed for people who have never used DllCall() before or have very limited knowledge about it. In the future I will update it with more advanced topics so more advanced users can make use of it too.
Well here goes.
Dealing_with_Dll.pdf
Previous downloads: 31
Suggestions, language corrections and errors in the tutorial is of course welcome.
-
monoceres got a reaction from 232showtime in Tutorial on DllCall() & DllStructs
So I think it's time to publish this little tutorial I have made on using DllCall() and DllStructs. It's not near completion but I think it's a good start at least
This tutorial is mostly aimed for people who have never used DllCall() before or have very limited knowledge about it. In the future I will update it with more advanced topics so more advanced users can make use of it too.
Well here goes.
Dealing_with_Dll.pdf
Previous downloads: 31
Suggestions, language corrections and errors in the tutorial is of course welcome.
-
monoceres got a reaction from jcmackie in Tutorial on DllCall() & DllStructs
So I think it's time to publish this little tutorial I have made on using DllCall() and DllStructs. It's not near completion but I think it's a good start at least
This tutorial is mostly aimed for people who have never used DllCall() before or have very limited knowledge about it. In the future I will update it with more advanced topics so more advanced users can make use of it too.
Well here goes.
Dealing_with_Dll.pdf
Previous downloads: 31
Suggestions, language corrections and errors in the tutorial is of course welcome.
-
monoceres got a reaction from Skysnake in Auto Upgrade my program
Here's an example of a batch file that will replace an old file with new:
@echo off ping localhost move "newlydownloadedexe.exe" "oldexe.exe" /Y Note that I use ping at the beginning, this is so that your script will have time to close before overwriting begins.
-
monoceres got a reaction from Muhammad_Awais_Sharif in Tutorial on DllCall() & DllStructs
So I think it's time to publish this little tutorial I have made on using DllCall() and DllStructs. It's not near completion but I think it's a good start at least
This tutorial is mostly aimed for people who have never used DllCall() before or have very limited knowledge about it. In the future I will update it with more advanced topics so more advanced users can make use of it too.
Well here goes.
Dealing_with_Dll.pdf
Previous downloads: 31
Suggestions, language corrections and errors in the tutorial is of course welcome.
-
monoceres got a reaction from Phillipe in Torrent maker
This is the result of hours of debugging and screaming, it's a torrent maker!
I have no idea how interesting this is to you guys, but for me it's more of a proof of concept or a personal challange, and since I spend so d*mn much tme on this script I just had to share it
It can only create single files torrents but if there is interest I will implement multiple files - Done!
http://monoceres.se/Uploads/aTm.zip
Torrent download: http://monoceres.se/Uploads/aTm.torrent