Input box (Win32)

 

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!

 
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>

 
WinUser32.mqh doesnt contain any input box function definition. I doubt that's going to work.
 
andrewk1983 wrote >>
WinUser32.mqh doesnt contain any input box function definition. I doubt that's going to work.

Sorry, I just make mistake

 
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
 

Thanks! I will try that. :)))

 

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!

 

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

thanks

 
Please reupload it, i can't download.
 
perfwill:
Please reupload it, i can't download.
here it is.
Files:
inputbox.zip  4 kb
 
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
Reason: