Hi folks, I ran into some mysterious thing in AHK: when comparing 2 different hex numbers, ahk treats them as equal: q1 := "0xffffffffe90e1fe2" q2 := "0xffffffff8fb50aba" if (q1 = q2) msgbox, Equal I got these numbers from Winexist() after creating 2 GUI's. Any thoughts on what it means and how to d...
Thanks for reply Joedf, I installed more blocks for MinGW and TDM, MinGW still refuses to work, but TDM finally works! :=) May I ask you few more things (forgive me if questions are stupid, my level of knowledge here is quite low): 1) Is it possible to convert float/double functions to MCode using y...
Okay... weird I just tested with tdm64-gcc-5.1.0-2... and no issues at all... :think: When you select compiler (with tdm64-gcc), what file and in what folder do you select? When I select C:\TDM-GCC-64\bin\g++.exe (or gcc.exe or x86_64-w64-mingw32-g++.exe), error log tells me that g++.exe: error: Cr...
Hi Joedf, could you please tell me what Im doing wrong here: Simple C function like "return 42" compiles with MCode4GCC+MinGW and returns correct result (42) just fine. Also when I use machine code from your examples (like "2,x64:M8A4AXQKSP/B/8CAOQB19vPD" for string length), MCode() func also return...
Hi Joedf I just figured out how to use your MCode4GCC, thanks for making it! There are few small issues with it thou: 1) It didn't work on my 64 computer until I changed 64/32 results in Get_CompilerType(cp) , probably Is64BitAssembly(cp) doesnt work properly 2) It works with MinGW, but doesnt with ...
I want to share this simple code that allows to bypass DDE server, and receive live data from MT4/MT5 directly to your AHK script. See comments in the code below for details. 1) Get handle of the AHK script that will receive data from MT4 and store it in a separate file DetectHiddenWindows On AHK_HW...
I was confused about DDE protocol, due to my ignorance, I thought it was something else. After reading MSDN, looks like DDE is nothing more than just exchanging system messages (same as PostMsg + OnMessage). So one can write MT4 indicator that would post messages with last ticks directly to AHK scri...
it will be easier to write an EA directly rather than using AHK I need to get quotes for my existing AHK script. And MQL doesn't have all the functionality that I need. For now Im using Excel to get access to MT4 DDE server, but trying to get direct access. As a workaround, I wrote MQL indicator th...
Hi folks! Im trying to connect to DDE sevrver using AHK. Server that Im trying to work with is from MT4 (forex charting/data software), but I guess it doesn't matter, since all DDE servers probably work in same format. So, I found 2 DDE libraries here on AHK forum (attached below), and tried to use ...
Hi folks,
Is there a more lightweight way of checking if Ctrl/Shift/Alt buttons are pressed than GetKeyState()?
I have keys get stuck sometimes on my old PC, and since many keys need to be constantly monitored, I wonder if there is a more lightweight / non-intrusive way to check them.
Thanks!
Check if the functions you are using sets ErrorLevel or the underlying windows functions sets A_LastError . If there is no image, maybe it doesn't have a width and height . Good luck Helgef, thanks for response! I have 2 suspect GDIP functions: Gdip_GraphicsFromImage(pBitmap){ DllCall("gdiplus\Gdip...