AutoHotkey Community

It is currently May 23rd, 2012, 4:47 am

All times are UTC [ DST ]


Search found 20 matches
Search these results:

Author Message

 Forum: Scripts   Topic: Machine code functions: Bit Wizardry

 Post subject: Re:
Posted: May 7th, 2012, 12:05 pm 

Replies: 355
Views: 71372


Here is a version of Bin2Hex which works on AHK_L x86/x64 ANSI/Unicode and vanilla AHK: ;By Laszlo ;http://www.autohotkey.com/forum/viewtopic.php?p=135522#135522 Bin2Hex(addr,len) { Static fun, ptr If (fun = "") { If A_IsUnicode If (A_PtrSize = 8) h=4533c94c8bd14585c07e63458bd86690440fb60...

 Forum: Scripts   Topic: Machine code functions: Bit Wizardry

Posted: May 2nd, 2012, 7:53 pm 

Replies: 355
Views: 71372


Im Using this functions to read/write/find/compare data from and to Intelhex and Motorola S19-Files. For manipulation an for streaming and jumping within the data and driven by pointers within the data, the data is needed in binary. So I want to convert HexStrings from ASCII files to binary-Arrays u...

 Forum: Scripts   Topic: Machine code functions: Bit Wizardry

Posted: May 2nd, 2012, 6:57 pm 

Replies: 355
Views: 71372


I used _Bin2Hex because it much faster than a simple ahk solution.

 Forum: Scripts   Topic: Machine code functions: Bit Wizardry

 Post subject: Bit Wizardry and AHK_L?
Posted: May 2nd, 2012, 4:30 pm 

Replies: 355
Views: 71372


Hi wizards! Got a lot of functions from you working fine with AHK Standard. Bit now I'm using AHK_L and the functions do not work anymore. The example: ScriptAHKType := "AHK_L Unicode32" ; Info for automatic compiler to use AHKL Unicode 32 bit as default HEX := "3000000004FC0000000002...

 Forum: Support   Topic: LV_Add: does not work with named gui

Posted: March 10th, 2012, 10:53 pm 

Replies: 1
Views: 81


Version: 1.1.07.01 Windows7 64 (see complete version information at the end of this post) LV_Add returns 0, no line is inserted: LV_Options := "+Grid +Report -LV0x10 -Multi NoSort AltSubmit ReadOnly LV0x4000 +LV0x2" Name := "Test" sd := "Test" Gui , Test:New Gui , Test:...

 Forum: Scripts   Topic: Machine code functions: Bit Wizardry

 Post subject: BinCompare
Posted: October 12th, 2011, 3:33 pm 

Replies: 355
Views: 71372


Hi!
I would need a very fast BinaryCompare of 2 variables represented by the address returning the offset of the first difference:

BinCompare(Pointer1,Pointer2,MaxLen)

Regards and thanks in advance
Robert

 Forum: Utilities   Topic: Libusb WIN32 - Access any USB device [Dll]

Posted: April 4th, 2011, 7:33 pm 

Replies: 3
Views: 1794


I know about the project and I already tried to use it.
If anybody already uses it with autohotkey it would be helpfull to share functions.

 Forum: Utilities   Topic: Libusb WIN32 - Access any USB device [Dll]

Posted: April 4th, 2011, 1:34 pm 

Replies: 3
Views: 1794


Did anybody use libusb32.dll with AutoHotkey?

 Forum: Scripts   Topic: Embedded Windows Scripting (VBScript & JScript) and COM

Posted: August 23rd, 2010, 7:53 pm 

Replies: 231
Views: 61999


Thanks for your answer.

I will have to find a different way to solve my problem.

Regards, Robert

 Forum: Scripts   Topic: Embedded Windows Scripting (VBScript & JScript) and COM

Posted: August 22nd, 2010, 12:24 pm 

Replies: 231
Views: 61999


Is it possible to do something like this? Script a.ahk (not realy a script, just to show, what I want to do): WS_inititialise() Code= "MyObj = Object.Create("MyApp.Object")" WS_Exec(Code) WS_Eval(Obj","MyObj") RunScriptB(Obj,&quo...

 Forum: Scripts   Topic: Embedded Windows Scripting (VBScript & JScript) and COM

Posted: August 20th, 2010, 9:44 am 

Replies: 231
Views: 61999


Maybe somebody can help me: I have 2 scripts: script "A" creates an object and passes the object to script "B" to start any action. Background information: Since AHK does no multi-threading I would like to use all off my CPUs by doing some actions one the same object with differe...

 Forum: Scripts   Topic: Machine code functions: Bit Wizardry

 Post subject: Thanks to Laszlo again!
Posted: February 23rd, 2010, 10:07 pm 

Replies: 355
Views: 71372


Again just what I needed (first variant) and already in use.

:D :D :D :D :D

Thanks a lot
Robert

 Forum: Scripts   Topic: Machine code functions: Bit Wizardry

Posted: February 23rd, 2010, 8:23 am 

Replies: 355
Views: 71372


No! MemChr searches for only ONE character. My Function should search a sequence of binary bytes of ANY length in another sequence of binary bytes, including byte values from 0x00 to 0xFF! No string searching! Example: VarSetCapacity(Memory,0x100000,0) mptr := &Memory ReadHexFile2Buffer&...

 Forum: Scripts   Topic: Machine code functions: Bit Wizardry

Posted: February 22nd, 2010, 10:48 pm 

Replies: 355
Views: 71372


Next Request to the best! :-) Again I would need the MCode-hex-string. char *binfind(char *pStart, char *pEnd, char *pFind, int len) { pEnd -= len; while ( pStart >= pEnd ) { for (i=0;i<len;i++) { if (*(pStart+i) != *(pFind+i)) break; &#...

 Forum: Scripts   Topic: Machine code functions: Bit Wizardry

 Post subject: Thanks to Laszlo!
Posted: February 20th, 2010, 4:36 pm 

Replies: 355
Views: 71372


Works fine! But had to change "Str" by "Uint", because I use a real pointer to a binary variable! ; Example, in real I use a Variable with a Size of 0x400000! VarSetCapacity(A,256,1) P := &A MCode(CharSum,"33c03944240876108b4c24040fbe1103c241ff4c240875f4c3&qu...
Sort by:  
Page 1 of 2 [ Search found 20 matches ]


All times are UTC [ DST ]


Powered by phpBB® Forum Software © phpBB Group