ZiotecH Posted August 1, 2010 Share 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 Link to comment Share on other sites More sharing options...
Developers Jos Posted August 1, 2010 Developers Share 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. Link to comment Share on other sites More sharing options...
ZiotecH Posted August 1, 2010 Author Share 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 Link to comment Share on other sites More sharing options...
ZiotecH Posted August 1, 2010 Author Share Posted August 1, 2010 (edited) Nvm, I fixed it.Now it gives me the number 0... Edited August 1, 2010 by ZiotecH Link to comment Share on other sites More sharing options...
Developers Jos Posted August 1, 2010 Developers Share 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. Link to comment Share on other sites More sharing options...
ZiotecH Posted August 1, 2010 Author Share Posted August 1, 2010 Ah, Thank you! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now