Sign in to follow this  
Followers 0
ZiotecH

Help with input please.

6 posts in this topic

Ok, so I've been working on a program that refreshes (plain f5 refresh) however i want to be able to define the time between the refreshes manualy every time i start the program. So, what script should I use?

Currently I'm trying with

$time = GUICtrlCreateInput("time",90,150,75,25)

and

Sleep($time)

however, the only response I get from this is the number 8, So is there a way to concert the number inserted by the

GUICtrlCreateInput
?

Thanks in advance, Zio

Share this post


Link to post
Share on other sites



Have you looked at the helpfile for this function and its examples?

Why are you not using InputBox when all you need is this one prompt?

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

The reason I'm using GUICtrlCreateInput is because I have a GUI in the beginning of the script with a small description, and I want to define the interval of refreshing in this GUI.

I've checked the Help index but could not find something helpful :S

Edited by ZiotecH

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Nvm, I fixed it.

Now it gives me the number 0... :blink:

Edited by ZiotecH

Share this post


Link to post
Share on other sites

The example shows you need to use GuiCtrlRead() to read the value of a control. The number returned by the GuiCtrlCreateInput() is just the Handle for the control.


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Ah, Thank you!

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  
Followers 0