Jump to content
Sign in to follow this  
decon8x

How to use Data from InputBox for ControlSend Function?

Recommended Posts

decon8x

Hi there, i'm trying to creat an inputbox like this:

$X = GUICtrlCreateInput("X", 160, 96, 57, 21)

And i wan't to use data from inputbox for:

ControlSend ("Untitled - Mozilla Firefox", "", "[CLASS:MozillaWindowClass; INSTANCE:3]", $X)

But the ControlSend only send a number 10 for whatever number i was entered on inputbox.

Please help!

Share this post


Link to post
Share on other sites
electrico

I am actually thinking about GuiCtrlRead(). Very lazy to try it, but I still think it will work fine.

ControlSend ("Untitled - Mozilla Firefox", "", "[CLASS:MozillaWindowClass; INSTANCE:3]", GuiCtrlRead($X))

Share this post


Link to post
Share on other sites
decon8x

Thank, it's work! :mellow:

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×