Jump to content

gottygolly

Active Members
  • Posts

    162
  • Joined

  • Last visited

  • Days Won

    1

Community Answers

  1. gottygolly's post in How do I add a new line or line break in MsgBox "message" was marked as the answer   
    Example() Func Example() MsgBox(64,"Title","Line 1"&@crlf&"Line 2"&@crlf&"Line 3") EndFunc That?
  2. gottygolly's post in ControlMoving the wrong thing? was marked as the answer   
    I fixed the problem, I had a function in there that I made myself but when I deleted it I forgot to get rid of the variables.
    Thanks for all the help guys.
    If $cp[0] < 300 And $cp[1] < 300 And $dead = False Then If $cp[1] < 0 Then ControlMove("","",$obj,$cp[0],$cp[1]+1) ControlMove("","",$prog,$cp[0]-25,$cp[1]-20) ControlMove($gui,"",$prog_b,$cp[0]-25,$cp[1]-20) ;This is the error, just delete "$prog_b" Else ControlMove("","",$obj,$cp[0],$cp[1]+1) ControlMove("","",$prog,$cp[0]-10,$cp[1]-20) EndIf EndIf
  3. gottygolly's post in Error with GuiCtrlRead() was marked as the answer   
    Sweet, works like its suppose to 
    Thanks for the help Melba I just had a bit of a brain fart.
  4. gottygolly's post in Not sure whats going on... was marked as the answer   
    Quick question.
    Did the SciTE change for the new update of autoit?
    I uninstalled and deleted everything but it keeps using the SciTE that I got rid of. Just wondering because that code above still does not work.
    Found my error the code should be.
    Local $dicegui, $rpsgui $hub = GUICreate("Main",300,100) $dice = GUICtrlCreateButton("Dice Game",15,40,125,30) $rps = GUICtrlCreateButton("Rock, Paper, Scissors",160,40,125,30) $label = GUICtrlCreateLabel("What Game Would You Like To Play?",35,0,1000) GUICtrlSetFont($label,10,700,2,"Minion Pro") GUISetState() while 1 $msg = GUIGetMsg(1) Switch $msg[1] Case $hub Switch $msg[0] Case -3 Exit Case $dice Call("dicegame") Case $rps Call("rps") EndSwitch Case $dicegui Switch $msg[0] Case -3 Exit EndSwitch Case $rpsgui Switch $msg[0] Case -3 Exit EndSwitch EndSwitch WEnd Func dicegame() $dicegui = GUICreate("Dice Game",300,300) GUISetState() EndFunc Func rps() $rpsgui = GUICreate("Rock, Paper, Scissors",300,300) GUISetState() EndFunc
×
×
  • Create New...