Jump to content

Recommended Posts

Posted

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

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
  • Developers
Posted

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.
  :)

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
×
×
  • Create New...