Jump to content

Recommended Posts

Posted

Ok...here's what im doing...I'm making an input box via GUICtrlCreateInput and then I type in a value...etc.

HOWEVER, after i click the button i've made, the only way i can change the value in the input box is to tab back into it...can any1 tell me why this is? :whistle:

Posted (edited)

Sure...hold on...

; input boxe
$delay_input_box = GUICtrlCreateInput("Delay (sec.)", 80, 115, 70, 20)

; button
$set_delay_button = GUICtrlCreateButton("Set Delay", 43, 160, 70, 20)

Func SetUserDelay()
    $user_delay = GUICtrlRead($delay_input_box)
    $user_delay = $user_delay * 400
EndFunc

This is a VERY small part of it...but this is about all you should need to help.

Edited by ssjfulkon198
Posted
  Quote

the only way i can change the value in the input box is to tab back into it

I don't quite understand this, but if you want to change the value of input, you must use GuiCtrlSetData()

 

  Reveal hidden contents

 

 

AutoIt is simple, subtle, elegant. © AutoIt Team

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...