loychung Posted June 29, 2005 Share Posted June 29, 2005 (edited) Dear All, I created a simple script with 4 input boxes. When it executes and wait for input, I can only move around the input boxes with "tab" key, I cannot freely move between boxes with mouse click randomly to any one of them as I wish, any ideas? Or I have to write more code to give focus unsing $Gui_Event_PrimaryDown, or using UDF Is_Pressed to find out the the current windows control ID, X, Y position etc etc......... TIA. expandcollapse popup#include <guiconstants.au3> #include <string.au3> GuiCreate('SQL replications', 560, 240) GUICtrlCreateLabel('Please enter the name of the primary database server :', 10, 10, 450, 20, -1) ;GUICtrlSetFont(-1, 9, 700) $InputPriDBServer = GuiCtrlCreateInput('',345,7,180,20,0x18) ; Creates the password box with blured input GUICtrlCreateLabel('Please enter the sa password for this server :',10, 30, 450, 20, -1) $InputPass = GuiCtrlCreateInput('',345,27,180,20,0x20) GUICtrlCreateLabel('Please enter the name of the backup database server :', 10, 60, 450, 20, -1) $InputBakDBServer = GuiCtrlCreateInput('',345,57,180,20,0x18) GUICtrlCreateLabel('Please enter the sa password for this server :',10, 80, 450, 20, -1) $InputPass = GuiCtrlCreateInput('',345,77,180,20,0x20) $Button_Exit = GUICtrlCreateButton("&Cancel", 15,150,40, 30) $Button_Execute = GUICtrlCreateButton("&Finish", 65,150,40, 30) GuiSetState() While 1 Dim $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Exit Case $msg = $Button_Exit Exit Case $msg = $Button_Execute MsgBox(0, "Install", "Will gather the info, write to a file .") Exit EndSelect WEnd Edited June 29, 2005 by loychung Link to comment Share on other sites More sharing options...
Valuater Posted June 29, 2005 Share Posted June 29, 2005 Show us the code or an example so we can figure out the problem and give suggestions 8) Link to comment Share on other sites More sharing options...
loychung Posted June 29, 2005 Author Share Posted June 29, 2005 Show us the code or an example so we can figure out the problem and give suggestions8)<{POST_SNAPBACK}>Thanks all for viewing, I figured it out my "mistake", it was because the size of the label box overlaping the input box, almost 60% of the input box, thus when the mouse cursor is in the overlaping area, the cursor cannot be click for input focus. Figure it out with the Window Info tool. Link to comment Share on other sites More sharing options...
Valuater Posted June 29, 2005 Share Posted June 29, 2005 Great..... and sorry I did not see the code after your edit of the original topic 8) 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