Jump to content
Sign in to follow this  
Slaiochi

Input Box Problem

Recommended Posts

Slaiochi

When I click into an input box, the cursor doesn't move there, and no text I type is put there after the click. The only way I can get to the input box at this stage is with the tab key. Is there any way to shit focus to a certain input box by clicking rather than tabs?

Source code to see what I may be doing wrong.

$XSkinGui = XSkinGUICreate( "Spell Imper", 515, 340, $Skin_Folder, 1, 0)
$XIcon = XSkinIcon($XSkinGui, 2)
GUISetFont(7, 400, 0, "Small Fonts")
GUICtrlCreateLabel("Spell Imper v1.3", 15, 10)
GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)
GUICtrlSetColor(-1, 0xFFFFFF)
GUICtrlCreateGroup ("Fas Spiorad Info", 15, 35, 235, 80)
GUICtrlCreateLabel ("Fas Spiorad Slot:", 30, 60, 150, 45)
$fsinput = GUICtrlCreateInput ("", 30, 80, 20, 20, $ES_NUMBER)
GUICtrlCreateGroup ("Spell Info", 15, 125, 235, 200)
GUICtrlCreateLabel ("Spell Slot:", 30, 155, 150, 45)
$spellinput = GUICtrlCreateInput ("", 30, 175, 20, 20, $ES_NUMBER)
GUICtrlCreateLabel ("Spell Lines:", 30, 210, 150, 45)
$lines = GUICtrlCreateInput ("2", 30, 230, 20, 20, $ES_NUMBER)
GUICtrlCreateLabel ("MP Cost:", 30, 265, 150, 45)
$cost = GUICtrlCreateInput ("", 30, 285, 60, 20, $ES_NUMBER)
$switchbox = GUICtrlCreateCheckbox ("Switch Staff?", 150, 60, 90, 20)
$paneradio1 = GUICtrlCreateRadio ("Temauir Spell", 150, 135, 90, 20)
GUICtrlSetState ($paneradio1, 1)
$paneradio2 = GUICtrlCreateRadio ("Medenia Spell", 150, 160, 90, 20)
GUICtrlCreateGroup ("Character Info", 265, 35, 235, 140)
$hlabel = GUICtrlCreateLabel ("HP: " & $hp & "/" & $mhp & " [" & $hpp & "%]",280,60,200)
$hpprogress = XSkinProgress (280, 80, 200, 15)
$mlabel = GUICtrlCreateLabel ("MP: " & $mp & "/" & $mmp & " [" & $mpp & "%]", 280, 105, 200)
$mpprogress = XSkinProgress (280, 125, 200, 15)
$maplabel = GUICtrlCreateLabel ("Map: " & $map & " " & $x & "," & $y, 280, 150, 150)
_ReadVitals()
_MapName()
GUISetState()
TogglePause()

GUISetState()

While 1
    MouseOver()
    _Cast() 
    $msg = GUIGetMsg()
    If $msg = $XIcon[1] Then Exit
    If $msg = $XIcon[2] Then GUISetState(@SW_MINIMIZE)
WEnd

Share this post


Link to post
Share on other sites
star2

are u sure these are all the lines in your script?

u didn't put the

#include <XSkin.au3>

and u didn't declare some functions?

if there's some lines u didn't post

please post other wise we'll help u make your functions


[quote]Baby you're all that I want, When you're lyin' here in my armsI'm findin' it hard to believe, We're in heavenAnd love is all that I need , And I found it there in your heartIt isn't too hard to see, We're in heaven .Bryan Adams[/quote].............................................................................[u]AUTOIT[/u]

Share this post


Link to post
Share on other sites
Slaiochi

I think I figured it out..

;Pause/Unpause
Func TogglePause()
    $Paused = Not $Paused
    While $Paused
        $msg = GUIGetMsg()
        If $msg = $XIcon[1] Then Exit
        If $msg = $XIcon[2] Then GUISetState(@SW_MINIMIZE)
        ToolTip("Paused",0,0)
    WEnd
    ToolTip("Casting",0,0)
EndFunc

That keeps the macro paused, it might be keeping the input boxes from reacting too..

Share this post


Link to post
Share on other sites
Valuater

Overlaping controls....

GUICtrlCreateLabel ("Fas Spiorad Slot:", 30, 60, 150, 45)

$fsinput = GUICtrlCreateInput ("", 30, 80, 20, 20, $ES_NUMBER)

GUICtrlCreateGroup ("Spell Info", 15, 125, 235, 200)

GUICtrlCreateLabel ("Spell Slot:", 30, 155, 150, 45)

$spellinput = GUICtrlCreateInput ("", 30, 175, 20, 20, $ES_NUMBER)

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites
Slaiochi

Val, that's the height parameter not the y position, they aren't overlapping..

Share this post


Link to post
Share on other sites
Valuater

Val, that's the height parameter not the y position, they aren't overlapping..

Think again!!!

.... yes they are!

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites
Slaiochi

Wow, sorry about that, you were right. Being up for 20 hours ftw :)

Share this post


Link to post
Share on other sites
Valuater

Wow, sorry about that, you were right. Being up for 20 hours ftw :)

np

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×