Jump to content

GuiCtrlSetData + Input


Recommended Posts

Just creating a drinking counter to track how many drinks I take... and I can't get simple thing to work.. possibly because I started drinking already... lol

 

HotKeySet("{NUMPAD1}", "_Skip")

_GuiCreate()

$SkipCount = 0

Global $SkipShots

Func _Skip()
    $SkipCount += 1
    GuiCtrlSetData($SkipShots, $SkipCount)
EndFunc


Func _GuiCreate()
    GuiCreate("Drink Counter", 400, 400)

    $OverallShots = GuiCtrlCreateInput("", 10, 10, 200, 30)
    GuiCtrlSetFont(-1, 14)

    GuiCtrlCreateLabel("Total Shots", 220, 15, 100, 50)
    GuiCtrlSetFont(-1, 14)
    GuiCtrlSetColor(-1, 0xFF0000)

    $SkipShots = GuiCtrlCreateInput("", 10, 60, 200, 30)
    GuiCtrlSetFont(-1, 14)

    GuiCtrlCreateLabel("Skip Shots", 220, 65, 100, 50)
    GuiCtrlSetFont(-1, 14)
    GuiCtrlSetColor(-1, 0xFF0000)

    $SHSShots = GuiCtrlCreateInput("", 10, 110, 200, 30)
    GuiCtrlSetFont(-1, 14)

    GuiCtrlCreateLabel("SHS Shots", 220, 115, 100, 50)
    GuiCtrlSetFont(-1, 14)
    GuiCtrlSetColor(-1, 0xFF0000)

    $HSShots = GuiCtrlCreateInput("", 10, 160, 200, 30)
    GuiCtrlSetFont(-1, 14)

    GuiCtrlCreateLabel("HS Shots", 220, 165, 100, 50)
    GuiCtrlSetFont(-1, 14)
    GuiCtrlSetColor(-1, 0xFF0000)

    $AirShots = GuiCtrlCreateInput("", 10, 210, 200, 30)
    GuiCtrlSetFont(-1, 14)

    GuiCtrlCreateLabel("Air Shots", 220, 215, 100, 50)
    GuiCtrlSetFont(-1, 14)
    GuiCtrlSetColor(-1, 0xFF0000)

    $FlagShots = GuiCtrlCreateInput("", 10, 260, 200, 30)
    GuiCtrlSetFont(-1, 14)

    GuiCtrlCreateLabel("Flag Shots", 220, 265, 100, 50)
    GuiCtrlSetFont(-1, 14)
    GuiCtrlSetColor(-1, 0xFF0000)



    GuiSetState()
EndFunc

While 1
    Sleep(10)
WEnd

 

I can't get it to set the control to the new value. I can't get it to set it to anything.

 

Thanks!

MCR.jpg?t=1286371579

Most recent sig. I made

Quick Launcher W/ Profiles Topic Movie Database Topic & Website | LiveStreamer Pro Website | YouTube Stand-Alone Playlist Manager: Topic | Weather Desktop Widget: Topic | Flash Memory Game: Topic | Volume Control With Mouse / iTunes Hotkeys: Topic | Weather program: Topic | Paws & Tales radio drama podcast mini-player: Topic | Quick Math Calculations: Topic

Link to comment
Share on other sites

Damnit... thank you!

MCR.jpg?t=1286371579

Most recent sig. I made

Quick Launcher W/ Profiles Topic Movie Database Topic & Website | LiveStreamer Pro Website | YouTube Stand-Alone Playlist Manager: Topic | Weather Desktop Widget: Topic | Flash Memory Game: Topic | Volume Control With Mouse / iTunes Hotkeys: Topic | Weather program: Topic | Paws & Tales radio drama podcast mini-player: Topic | Quick Math Calculations: Topic

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...