Posted 24 June 2004 - 07:52 PM
"Variable used without being declared" when trying to use $Get_Focus.
$nInputCfn = GuiSetControl ("input", "", 50,45,100,20)
$nInputCln = GuiSetControl ("input", "", 200,45,100,20)
At first I had $Get_Focus by itself, when it did't work I added the line
GuiSetControlEx(-1,20) and still got the same error message. Aside
from that small piece the rest of my code works. What I'm trying to
accomplish is to get the focus (cursor) on the first Input filed of the form.
$nInputCln = GuiSetControl ("input", "", 200,45,100,20). Unless there is
another way and I'm just missing it.
Thanks for your responses.
Posted 24 June 2004 - 07:55 PM
This contains all the constants for the GUI commands...
Visit the SciTE4AutoIt3 Download page for the latest versions Forum Rules
Live for the present,
Dream of the future,
Learn from the past.
Posted 24 June 2004 - 08:04 PM
Thanks.. that cleared up the "Variable not declared" problem. But now, it doesn't
give me the focus on the field I want it be in. It don't get any focus unless I click
on the field.
Posted 24 June 2004 - 08:11 PM
Now it's in.. and it works. Great!
Thank for the tip JdeB..
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users