ZiotecH 0 Posted August 1, 2010 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
Jos 2,214 Posted August 1, 2010 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. Share this post Link to post Share on other sites
ZiotecH 0 Posted August 1, 2010 (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 August 1, 2010 by ZiotecH Share this post Link to post Share on other sites
ZiotecH 0 Posted August 1, 2010 (edited) Nvm, I fixed it.Now it gives me the number 0... Edited August 1, 2010 by ZiotecH Share this post Link to post Share on other sites
Jos 2,214 Posted August 1, 2010 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. Share this post Link to post Share on other sites