Jump to content

Help with input please.


Recommended Posts

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

Link to comment
Share on other sites

  • Developers

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

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

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
Link to comment
Share on other sites

  • Developers

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.

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
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
 Share

  • Recently Browsing   0 members

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