Download MetaTrader 5
To add comments, please log in or register
Order a robot or an indicator for MetaTrader. The Freelance service will help you!
dRONCHIKUS
80
dRONCHIKUS 2009.03.20 15:35 

I've been searching around the net to find a definition for input box (just like MessageBoxA is defined in WinUser32.mqh).  Does anyone know how input box can be called using DLL references or any other means? Thanks in advance!

Walter
161
Walter 2009.03.20 16:50  
andrewk1983 wrote >>

I've been searching around the net to find a definition for input box (just like MessageBoxA is defined in WinUser32.mqh). Does anyone know how input box can be called using DLL references or any other means? Thanks in advance!

just include the WinUser32.mqh in you script like following, and call it as usual function.

#include <WinUser32.mqh>

dRONCHIKUS
80
dRONCHIKUS 2009.03.20 16:55  
WinUser32.mqh doesnt contain any input box function definition. I doubt that's going to work.
Walter
161
Walter 2009.03.20 17:15  
andrewk1983 wrote >>
WinUser32.mqh doesnt contain any input box function definition. I doubt that's going to work.

Sorry, I just make mistake

Walter
161
Walter 2009.03.20 17:45  
andrewk1983 wrote >>
WinUser32.mqh doesnt contain any input box function definition. I doubt that's going to work.

Dear andrew

If you don't mind, you can try this inputbox.dll. I just make one for you but its look is not very nice you can have a try. Please add following line in your script before use. Thanks.

#import "inputbox.dll"
   string InputBox(string prompt, string title, string default_value);
#import
dRONCHIKUS
80
dRONCHIKUS 2009.03.21 06:30  

Thanks! I will try that. :)))

dRONCHIKUS
80
dRONCHIKUS 2009.06.15 14:17  

Hi brother3th!! Sorry for delay. In any case your input box worked very nice :) Cheers for that. Can i have a VC++ source for this? Did you use VC6 to compile your DLL? I'd like to learn how to do this. Thanks in advance!

Francesco
21
Francesco 2011.01.19 11:52  

sorry i cant download inputbox.dll, would u please reupload it ? ..

thanks

Hai Thanh Nguyen
5
Hai Thanh Nguyen 2011.12.02 05:20  
Please reupload it, i can't download.
Walter
161
Walter 2011.12.02 06:56  
perfwill:
Please reupload it, i can't download.
here it is.
Files:
inputbox.zip 4 kb
whroeder1
13656
whroeder1 2011.12.02 13:32  
andrewk1983:
I've been searching around the net to find a definition for input box
See also Buttons & Textfields on mt4 chart possible now - MQL4 forum
/ /12
To add comments, please log in or register