Sign in to follow this  
Followers 0
newb_powa'

Problem with OnEvent

7 posts in this topic

Ok, I'll start by explaining what I want to do, At the right of the gui, there is 3 little arrow ">" (label) wich are my labels. When I hit one of this arrow It do not work, but it should close the gui and make another. I don't know if you can understand me ... There is my script it will certainly help you to understand what I want to do.

#include <GUIConstants.au3>

Opt("GUIOnEventMode", 1)

$SWITCH = 1
$x = 1
$y = 635

_Switch2()

While 1
    If WinExists("Ogame Bot") Then WinMove("Ogame Bot", "", $x, $y)
    If WinExists(".") Then WinMove(".", "", $x+1000, $y)
    Sleep(1)
WEnd


Func _Switch()
    If WinExists("Ogame Bot") Then WinClose("Ogame Bot")
    ;========================== Gui #2 ==========================
    ;GuiCreate
    $Form2 = GUICreate(".", 22, 154, $x+1000, $y, -1, BitOR($WS_EX_TOOLWINDOW,$WS_EX_TOPMOST))
    
    ;LabelCreate
    $9 = GUICtrlCreateLabel("<", 8, 8 , 20, 20)
    $10= GUICtrlCreateLabel("<", 8, 48, 20, 20)
    $11= GUICtrlCreateLabel("<", 8, 88, 20, 20)
    
    ;SetBkColor
    $Color = 0xA0A0A4
    GUISetBkColor($Color)
    GUICtrlSetBkColor($9 , $Color)
    GUICtrlSetBkColor($10, $Color)
    GUICtrlSetBkColor($11, $Color)
    
    ;SetFontColor
    $C0l0r = 0xFFFFFF
    GUICtrlSetColor($9 , $C0l0r)
    GUICtrlSetColor($10, $C0l0r)
    GUICtrlSetColor($11, $C0l0r)
    
    ;State
    WinSetState($Form2, "", @SW_SHOW)
    WinSetOnTop($Form2, "", 1)

    ;Events
    GUICtrlSetOnEvent($9 , "_Switch2")
    GUICtrlSetOnEvent($10, "_Switch2")
    GUICtrlSetOnEvent($11, "_Switch2")
    GUISetOnEvent($GUI_EVENT_CLOSE, "_Close")
EndFunc
    
Func _Switch2()
    If WinExists(".") Then WinClose(".")
    ;========================== Gui #1 ==========================
    ;GuiCreate
    $Form1 = GUICreate("Ogame Bot", 1026, 154, $x, $y, BitOR($WS_MAXIMIZEBOX,$WS_TABSTOP), $WS_EX_TOOLWINDOW)
    
    ;GroupCreate
    $GroupTous1 =   GUICtrlCreateGroup("", 640, 0, 361, 105)
    $CristalGroup = GUICtrlCreateGroup("Cristal ", 824, 8, 169, 41, $BS_CENTER)
    $EnergieGroup = GUICtrlCreateGroup("Énergie ", 824, 56, 169, 41, $BS_CENTER)
    $DeutGroup =    GUICtrlCreateGroup("Deutérieum ", 648, 56, 169, 41, $BS_CENTER)
    $MetalGroup =   GUICtrlCreateGroup("Métal ", 648, 8, 169, 41, $BS_CENTER)
    $Group1 =       GUICtrlCreateGroup("Actions ", 8, 0, 505, 105)
    $1 = GUICtrlCreateGroup("", -99, -99, 1, 1)
    $2 = GUICtrlCreateGroup("", -99, -99, 1, 1)
    $3 = GUICtrlCreateGroup("", -99, -99, 1, 1)
    $4 = GUICtrlCreateGroup("", -99, -99, 1, 1)
    $5 = GUICtrlCreateGroup("", -99, -99, 1, 1)
    
    ;LabelCreate
    $CristalLabel = GUICtrlCreateLabel("ALabel1", 832, 24, 43, 17, $BS_CENTER)
    $EnergieLabel = GUICtrlCreateLabel("ALabel1", 832, 72, 43, 17, $BS_CENTER)
    $DeutLabel =    GUICtrlCreateLabel("ALabel1", 656, 72, 43, 17, $BS_CENTER)
    $MetalLabel =   GUICtrlCreateLabel("ALabel1", 656, 24, 43, 17, $BS_CENTER)
    $lineLabel =    GUICtrlCreateLabel("------------------------------------", 520, 32, 112, 17)
    $6 = GUICtrlCreateLabel(">", 1008, 8 , 20, 20)
    $7 = GUICtrlCreateLabel(">", 1008, 48, 20, 20)
    $8 = GUICtrlCreateLabel(">", 1008, 88, 20, 20)
    
    ;ComboBoxCreate
    $Combo1 = GUICtrlCreateCombo("Planet 1", 520, 8, 113, 21)
    
    ;EditBoxCreate
    $Edit1 = GUICtrlCreateEdit("", 16, 16, 489, 81, $ES_READONLY, $WS_EX_CLIENTEDGE)
    
    ;ButtonsCreate
    $Button1 = GUICtrlCreateButton("Change Actions", 520, 48, 113, 25)
    $Button2 = GUICtrlCreateButton("Go", 520, 80, 113, 25)
    
    ;SetBkColor
    $Color = 0xA0A0A4
    GUISetBkColor    ($Color)
    GUICtrlSetBkColor($GroupTous1,   $Color)
    GUICtrlSetBkColor($CristalGroup, $Color)
    GUICtrlSetBkColor($CristalLabel, $Color)
    GUICtrlSetBkColor($EnergieGroup, $Color)
    GUICtrlSetBkColor($EnergieLabel, $Color)
    GUICtrlSetBkColor($DeutGroup,  $Color)
    GUICtrlSetBkColor($DeutLabel,  $Color)
    GUICtrlSetBkColor($MetalGroup, $Color)
    GUICtrlSetBkColor($MetalLabel, $Color)
    GUICtrlSetBkColor($Group1,     $Color)
    GUICtrlSetBkColor($lineLabel,  $Color)
    GUICtrlSetBkColor($6,  $Color)
    GUICtrlSetBkColor($7,  $Color)
    GUICtrlSetBkColor($8,  $Color)
    
    ;SetFontColor
    $C0l0r = 0xFFFFFF
    GUICtrlSetColor($CristalGroup, $C0l0r)
    GUICtrlSetColor($CristalLabel, $C0l0r)
    GUICtrlSetColor($EnergieGroup, $C0l0r)
    GUICtrlSetColor($EnergieLabel, $C0l0r)
    GUICtrlSetColor($DeutGroup,    $C0l0r)
    GUICtrlSetColor($DeutLabel,    $C0l0r)
    GUICtrlSetColor($MetalGroup,   $C0l0r)
    GUICtrlSetColor($MetalLabel,   $C0l0r)
    GUICtrlSetColor($Group1,       $C0l0r)
    GUICtrlSetColor($lineLabel,    $C0l0r)
    GUICtrlSetColor($6, $C0l0r)
    GUICtrlSetColor($7, $C0l0r)
    GUICtrlSetColor($8, $C0l0r)
    
    ;SetData
    GUICtrlSetData($Combo1,"Planet 2|Planet 3|Planet 4|Planet 5|Planet 6|Planet 7|Planet 8","Planet 1")
    GUICtrlSetData($Edit1, "AEdit1")
    
    ;State
    WinSetState($Form1, "", @SW_SHOW)
    WinSetOnTop($Form1, "", 1)
    
    ;Events
    GUICtrlSetOnEvent($6, "_Switch")
    GUICtrlSetOnEvent($7, "_Switch")
    GUICtrlSetOnEvent($8, "_Switch")
    GUICtrlSetOnEvent($Button1, "_Action")
    GUISetOnEvent($GUI_EVENT_CLOSE, "_Close")
EndFunc

    
Func _Action()
    MsgBox(0, "", "It Work")
EndFunc

    
Func _Close()
    Exit
EndFunc

Feel free to ask question and thanks for help :P. Sorry for bad english ...

Oh and I think this is really my OnEvent that don't work (I don't know why ??) because I made a little test with the first button and it don't do anything.

Share this post


Link to post
Share on other sites



Try this:

Adding a global gui reference:

Global $gGui = _Switch2()oÝ÷ Ø]xºÚ"µÍ    ÌÍÙÑÝZHH   ÌÍÑÜLB  ÌÍÙÑÝZHH   ÌÍÑÜLoÝ÷ ØÊü­ë-jס׺Ú"µÍÔÝ]BÕÚ[Ù]Ý]J    ÌÍÑÜLK  ][ÝÉ][ÝËÕ×ÔÒÕÊBÕÚ[Ù]ÛÜ
    ÌÍÑÜLK  ][ÝÉ][ÝËJBÑ][ÂÕRPÝÙ]Û][
    ÌÍÍ  ][Ý×ÔÝÚ]Ú ][ÝÊBÕRPÝÙ]Û][
    ÌÍÍË    ][Ý×ÔÝÚ]Ú ][ÝÊBÕRPÝÙ]Û][
    ÌÍΠ ][Ý×ÔÝÚ]Ú ][ÝÊBÕRPÝÙ]Û][
    ÌÍÐ]ÛK  ][Ý×ÐXÝ[Û][ÝÊBÕRTÙ]Û][
    ÌÍÑÕRWÑUSÐÓÔÑK ][Ý×ÐÛÜÙI][ÝÊBBQÕRTÙ]Ý]JÕ×ÔÒÕÊBÚ[Ù]ÛÜ
    ÌÍÑÜLK  ][ÝÉ][ÝËJoÝ÷ Ø   e¡ù²b~'¶*'±«­¢+Ø¥¹±Õ±ÐíU%
½¹ÍѹÑ̹ÔÌÐì()=ÁÐ ÅÕ½ÐíU%=¹Ù¹Ñ5½ÅÕ½Ðì°Ä¤((ÀÌØíM]%Q
 ôÄ(ÀÌØíàôÄ(ÀÌØíäôØÌÔ()±½°ÀÌØíÕ¤ô}MÝ¥Ñ È ¤()]¡¥±Ä(%]¥¹á¥ÍÑÌ ÅÕ½Ðí=µ   ½ÐÅÕ½Ðì¤Q¡¸]¥¹5½Ù ÅÕ½Ðí=µ   ½ÐÅÕ½Ðì°ÅÕ½ÐìÅÕ½Ðì°ÀÌØíà°ÀÌØíä¤(%]¥¹á¥ÍÑÌ ÅÕ½Ðì¸ÅÕ½Ðì¤Q¡¸]¥¹5½Ù ÅÕ½Ðì¸ÅÕ½Ðì°ÅÕ½ÐìÅÕ½Ðì°ÀÌØíà¬ÄÀÀÀ°ÀÌØíä¤(M±À Ĥ)]¹(()Õ¹}MÝ¥Ñ  ¤(
½¹Í½±]É¥Ñ ÅÕ½Ðí}MÝ¥Ñ ÅÕ½ÐìµÀì1¤(%]¥¹á¥ÍÑÌ ÅÕ½Ðí=µ ½ÐÅÕ½Ðì¤Q¡¸U%±Ñ ÀÌØíÕ¤¤í]¥¹
±½Í ÅÕ½Ðí=µ    ½ÐÅÕ½Ðì¤(ìôôôôôôôôôôôôôôôôôôôôôôôôôôÕ¤Èôôôôôôôôôôôôôôôôôôôôôôôôôô(íÕ¥
ÉÑ(ÀÌØí½É´ÈôU%
ÉÑ ÅÕ½Ðì¸ÅÕ½Ðì°ÈÈ°ÄÔаÀÌØíà¬ÄÀÀÀ°ÀÌØíä°´Ä° ¥Ñ=H ÀÌØí]M}a}Q==1]%9=°ÀÌØí]M}a}Q=A5=MP¤¤(ÀÌØíÕ¤ôÀÌØí½É´È(í1±
ÉÑ(ÀÌØìäôU%
Ñɱ
ÉÑ1° ÅÕ½Ðì±ÐìÅÕ½Ðì°à°à°ÈÀ°ÈÀ¤(ÀÌØìÄÀôU%
Ñɱ
ÉÑ1° ÅÕ½Ðì±ÐìÅÕ½Ðì°à°Ðà°ÈÀ°ÈÀ¤(ÀÌØìÄÄôU%
Ñɱ
ÉÑ1° ÅÕ½Ðì±ÐìÅÕ½Ðì°à°àà°ÈÀ°ÈÀ¤((íMÑ   ­
½±½È(ÀÌØí
½±½ÈôÁáÁÁÐ(U%MÑ  ­
½±½È ÀÌØí
½±½È¤(U%
ÑɱMÑ   ­
½±½È ÀÌØìä°ÀÌØí
½±½È¤(U%
ÑɱMÑ   ­
½±½È ÀÌØìÄÀ°ÀÌØí
½±½È¤(U%
ÑɱMÑ   ­
½±½È ÀÌØìÄÄ°ÀÌØí
½±½È¤((íMѽ¹Ñ
½±½È(ÀÌØíÁ°ÁÈôÁá(U%
ÑɱMÑ
½±½È ÀÌØìä°ÀÌØíÁ°ÁȤ(U%
ÑɱMÑ
½±½È ÀÌØìÄÀ°ÀÌØíÁ°ÁȤ(U%
ÑɱMÑ
½±½È ÀÌØìÄÄ°ÀÌØíÁ°ÁȤ((íMÑÑ(í]¥¹MÑMÑÑ ÀÌØí½É´È°ÅÕ½ÐìÅÕ½Ðì°M]}M!=¤(í]¥¹MÑ=¹Q½À ÀÌØí½É´È°ÅÕ½ÐìÅÕ½Ðì°Ä¤((íÙ¹ÑÌ(U%
ÑɱMÑ=¹Ù¹Ð ÀÌØìä°ÅÕ½Ðí}MÝ¥Ñ ÈÅÕ½Ðì¤(U%
ÑɱMÑ=¹Ù¹Ð ÀÌØìÄÀ°ÅÕ½Ðí}MÝ¥Ñ ÈÅÕ½Ðì¤(U%
ÑɱMÑ=¹Ù¹Ð ÀÌØìÄÄ°ÅÕ½Ðí}MÝ¥Ñ ÈÅÕ½Ðì¤(U%MÑ=¹Ù¹Ð ÀÌØíU%}Y9Q}
1=M°ÅÕ½Ðí}
±½ÍÅÕ½Ðì¤($(%U%MÑMÑÑ¡M]}M!=¤)¹Õ¹()Õ¹}MÝ¥Ñ È ¤(
½¹Í½±]É¥Ñ ÅÕ½Ðí}MÝ¥Ñ ÈÅÕ½ÐìµÀì1¤(%]¥¹á¥ÍÑÌ ÅÕ½Ðì¸ÅÕ½Ðì¤Q¡¸U%±Ñ ÀÌØíÕ¤¤í]¥¹
±½Í ÅÕ½Ðì¸ÅÕ½Ðì¤(ìôôôôôôôôôôôôôôôôôôôôôôôôôôÕ¤Äôôôôôôôôôôôôôôôôôôôôôôôôôô(íÕ¥
ÉÑ(ÀÌØí½É´ÄôU%
ÉÑ ÅÕ½Ðí=µ  ½ÐÅÕ½Ðì°ÄÀÈØ°ÄÔаÀÌØíà°ÀÌØíä°  ¥Ñ=H ÀÌØí]M}5a%5%i    =`°ÀÌØí]M}Q    MQ=@¤°ÀÌØí]M}a}Q==1]%9=¤(ÀÌØíÕ¤ôÀÌØí½É´Ä(íɽÕÁ
ÉÑ(ÀÌØíɽÕÁQ½ÕÌÄôU%
Ñɱ
ÉÑɽÕÀ ÅÕ½ÐìÅÕ½Ðì°ØÐÀ°À°ÌØÄ°ÄÀÔ¤(ÀÌØí
É¥ÍѱɽÕÀôU%
Ñɱ
ÉÑɽÕÀ ÅÕ½Ðí
É¥ÍÑ°ÅÕ½Ðì°àÈаà°ÄØä°ÐÄ°ÀÌØí    M}
9QH¤(ÀÌØí¹É¥É½ÕÀôU%
Ñɱ
ÉÑɽÕÀ ÅÕ½Ðï%¹É¥ÅÕ½Ðì°àÈаÔØ°ÄØä°ÐÄ°ÀÌØí  M}
9QH¤(ÀÌØíÕÑɽÕÀôU%
Ñɱ
ÉÑɽÕÀ ÅÕ½ÐíÕӥɥմÅÕ½Ðì°ØÐà°ÔØ°ÄØä°ÐÄ°ÀÌØí   M}
9QH¤(ÀÌØí5ѱɽÕÀôU%
Ñɱ
ÉÑɽÕÀ ÅÕ½Ðí7¥Ñ°ÅÕ½Ðì°ØÐà°à°ÄØä°ÐÄ°ÀÌØí    M}
9QH¤(ÀÌØíɽÕÀÄôU%
Ñɱ
ÉÑɽÕÀ ÅÕ½ÐíÑ¥½¹ÌÅÕ½Ðì°à°À°ÔÀÔ°ÄÀÔ¤(ÀÌØìÄôU%
Ñɱ
ÉÑɽÕÀ ÅÕ½ÐìÅÕ½Ðì°´ää°´ää°Ä°Ä¤(ÀÌØìÈôU%
Ñɱ
ÉÑɽÕÀ ÅÕ½ÐìÅÕ½Ðì°´ää°´ää°Ä°Ä¤(ÀÌØìÌôU%
Ñɱ
ÉÑɽÕÀ ÅÕ½ÐìÅÕ½Ðì°´ää°´ää°Ä°Ä¤(ÀÌØìÐôU%
Ñɱ
ÉÑɽÕÀ ÅÕ½ÐìÅÕ½Ðì°´ää°´ää°Ä°Ä¤(ÀÌØìÔôU%
Ñɱ
ÉÑɽÕÀ ÅÕ½ÐìÅÕ½Ðì°´ää°´ää°Ä°Ä¤((í1±
ÉÑ(ÀÌØí
É¥Íѱ1°ôU%
Ñɱ
ÉÑ1° ÅÕ½Ðí1°ÄÅÕ½Ðì°àÌÈ°ÈаÐÌ°ÄÜ°ÀÌØí   M}
9QH¤(ÀÌØí¹É¥1°ôU%
Ñɱ
ÉÑ1° ÅÕ½Ðí1°ÄÅÕ½Ðì°àÌÈ°ÜÈ°ÐÌ°ÄÜ°ÀÌØí   M}
9QH¤(ÀÌØíÕÑ1°ôU%
Ñɱ
ÉÑ1° ÅÕ½Ðí1°ÄÅÕ½Ðì°ØÔØ°ÜÈ°ÐÌ°ÄÜ°ÀÌØí   M}
9QH¤(ÀÌØí5ѱ1°ôU%
Ñɱ
ÉÑ1° ÅÕ½Ðí1°ÄÅÕ½Ðì°ØÔØ°ÈаÐÌ°ÄÜ°ÀÌØí   M}
9QH¤(ÀÌØí±¥¹1°ôU%
Ñɱ
ÉÑ1° ÅÕ½Ðì´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´ÅÕ½Ðì°ÔÈÀ°ÌÈ°ÄÄÈ°Äܤ(ÀÌØìØôU%
Ñɱ
ÉÑ1° ÅÕ½ÐìÐìÅÕ½Ðì°ÄÀÀà°à°ÈÀ°ÈÀ¤(ÀÌØìÜôU%
Ñɱ
ÉÑ1° ÅÕ½ÐìÐìÅÕ½Ðì°ÄÀÀà°Ðà°ÈÀ°ÈÀ¤(ÀÌØìàôU%
Ñɱ
ÉÑ1° ÅÕ½ÐìÐìÅÕ½Ðì°ÄÀÀà°àà°ÈÀ°ÈÀ¤((í
½µ½  ½á
ÉÑ(ÀÌØí
½µ¼ÄôU%
Ñɱ
ÉÑ
½µ¼ ÅÕ½ÐíA±¹ÐÄÅÕ½Ðì°ÔÈÀ°à°ÄÄÌ°ÈĤ((í¥Ñ    ½á
ÉÑ(ÀÌØí¥ÐÄôU%
Ñɱ
ÉѥРÅÕ½ÐìÅÕ½Ðì°ÄØ°ÄØ°Ðàä°àÄ°ÀÌØíM}I=91d°ÀÌØí]M}a}
1%9Q¤((í  ÕÑѽ¹Í
ÉÑ(ÀÌØí   ÕÑѽ¸ÄôU%
Ñɱ
ÉÑ    ÕÑѽ¸ ÅÕ½Ðí
¡¹Ñ¥½¹ÌÅÕ½Ðì°ÔÈÀ°Ðà°ÄÄÌ°ÈÔ¤(ÀÌØí ÕÑѽ¸ÈôU%
Ñɱ
ÉÑ    ÕÑѽ¸ ÅÕ½Ðí¼ÅÕ½Ðì°ÔÈÀ°àÀ°ÄÄÌ°ÈÔ¤((íMÑ  ­
½±½È(ÀÌØí
½±½ÈôÁáÁÁÐ(U%MÑ  ­
½±½È ÀÌØí
½±½È¤(U%
ÑɱMÑ   ­
½±½È ÀÌØíɽÕÁQ½ÕÌÄ°ÀÌØí
½±½È¤(U%
ÑɱMÑ   ­
½±½È ÀÌØí
É¥ÍѱɽÕÀ°ÀÌØí
½±½È¤(U%
ÑɱMÑ   ­
½±½È ÀÌØí
É¥Íѱ1°°ÀÌØí
½±½È¤(U%
ÑɱMÑ   ­
½±½È ÀÌØí¹É¥É½ÕÀ°ÀÌØí
½±½È¤(U%
ÑɱMÑ   ­
½±½È ÀÌØí¹É¥1°°ÀÌØí
½±½È¤(U%
ÑɱMÑ   ­
½±½È ÀÌØíÕÑɽÕÀ°ÀÌØí
½±½È¤(U%
ÑɱMÑ   ­
½±½È ÀÌØíÕÑ1°°ÀÌØí
½±½È¤(U%
ÑɱMÑ   ­
½±½È ÀÌØí5ѱɽÕÀ°ÀÌØí
½±½È¤(U%
ÑɱMÑ   ­
½±½È ÀÌØí5ѱ1°°ÀÌØí
½±½È¤(U%
ÑɱMÑ   ­
½±½È ÀÌØíɽÕÀÄ°ÀÌØí
½±½È¤(U%
ÑɱMÑ   ­
½±½È ÀÌØí±¥¹1°°ÀÌØí
½±½È¤(U%
ÑɱMÑ   ­
½±½È ÀÌØìØ°ÀÌØí
½±½È¤(U%
ÑɱMÑ   ­
½±½È ÀÌØìÜ°ÀÌØí
½±½È¤(U%
ÑɱMÑ   ­
½±½È ÀÌØìà°ÀÌØí
½±½È¤((íMѽ¹Ñ
½±½È(ÀÌØíÁ°ÁÈôÁá(U%
ÑɱMÑ
½±½È ÀÌØí
É¥ÍѱɽÕÀ°ÀÌØíÁ°ÁȤ(U%
ÑɱMÑ
½±½È ÀÌØí
É¥Íѱ1°°ÀÌØíÁ°ÁȤ(U%
ÑɱMÑ
½±½È ÀÌØí¹É¥É½ÕÀ°ÀÌØíÁ°ÁȤ(U%
ÑɱMÑ
½±½È ÀÌØí¹É¥1°°ÀÌØíÁ°ÁȤ(U%
ÑɱMÑ
½±½È ÀÌØíÕÑɽÕÀ°ÀÌØíÁ°ÁȤ(U%
ÑɱMÑ
½±½È ÀÌØíÕÑ1°°ÀÌØíÁ°ÁȤ(U%
ÑɱMÑ
½±½È ÀÌØí5ѱɽÕÀ°ÀÌØíÁ°ÁȤ(U%
ÑɱMÑ
½±½È ÀÌØí5ѱ1°°ÀÌØíÁ°ÁȤ(U%
ÑɱMÑ
½±½È ÀÌØíɽÕÀÄ°ÀÌØíÁ°ÁȤ(U%
ÑɱMÑ
½±½È ÀÌØí±¥¹1°°ÀÌØíÁ°ÁȤ(U%
ÑɱMÑ
½±½È ÀÌØìØ°ÀÌØíÁ°ÁȤ(U%
ÑɱMÑ
½±½È ÀÌØìÜ°ÀÌØíÁ°ÁȤ(U%
ÑɱMÑ
½±½È ÀÌØìà°ÀÌØíÁ°ÁȤ((íMÑÑ(U%
ÑɱMÑÑ ÀÌØí
½µ¼Ä°ÅÕ½ÐíA±¹ÐÉñA±¹ÐÍñA±¹ÐÑñA±¹ÐÕñA±¹ÐÙñA±¹ÐÝñA±¹ÐàÅÕ½Ðì°ÅÕ½ÐíA±¹ÐÄÅÕ½Ðì¤(U%
ÑɱMÑÑ ÀÌØí¥ÐÄ°ÅÕ½Ðí¥ÐÄÅÕ½Ðì¤((íMÑÑ(í]¥¹MÑMÑÑ ÀÌØí½É´Ä°ÅÕ½ÐìÅÕ½Ðì°M]}M!=¤(í]¥¹MÑ=¹Q½À ÀÌØí½É´Ä°ÅÕ½ÐìÅÕ½Ðì°Ä¤((íÙ¹ÑÌ(U%
ÑɱMÑ=¹Ù¹Ð ÀÌØìØ°ÅÕ½Ðí}MÝ¥Ñ ÅÕ½Ðì¤(U%
ÑɱMÑ=¹Ù¹Ð ÀÌØìÜ°ÅÕ½Ðí}MÝ¥Ñ ÅÕ½Ðì¤(U%
ÑɱMÑ=¹Ù¹Ð ÀÌØìà°ÅÕ½Ðí}MÝ¥Ñ ÅÕ½Ðì¤(U%
ÑɱMÑ=¹Ù¹Ð ÀÌØí ÕÑѽ¸Ä°ÅÕ½Ðí}Ñ¥½¸ÅÕ½Ðì¤(U%MÑ=¹Ù¹Ð ÀÌØíU%}Y9Q}
1=M°ÅÕ½Ðí}
±½ÍÅÕ½Ðì¤($(%U%MÑMÑÑ¡M]}M!=¤(]¥¹MÑ=¹Q½À ÀÌØí½É´Ä°ÅÕ½ÐìÅÕ½Ðì°Ä¤($)¹Õ¹(()Õ¹}Ñ¥½¸ ¤(5Í    ½à À°ÅÕ½ÐìÅÕ½Ðì°ÅÕ½Ðí%Ð]½É¬ÅÕ½Ðì¤)¹Õ¹(()Õ¹}
±½Í ¤(á¥Ð)¹Õ¹

Share this post


Link to post
Share on other sites

Ok, I'm not sure but if I'm right, a bad declaration a variable can affect gui Event ?? Anyway now it work so thank you :P !!

And is consolewrite really need ? or just here for testing ??

Share this post


Link to post
Share on other sites

ConsoleWrite was just for testing.

The diffrence with the 4gGui is in the way the two gui's are closed. Your way would terminate the application. There are probably other ways to..:P

Share this post


Link to post
Share on other sites

ConsoleWrite was just for testing.

The diffrence with the 4gGui is in the way the two gui's are closed. Your way would terminate the application. There are probably other ways to..:P

Ok now I understand, thank you Uten :D

Share this post


Link to post
Share on other sites

I think your OnEvent code failed because you did not call GuiSetState after you had defined the event handler.

Share this post


Link to post
Share on other sites

I think your OnEvent code failed because you did not call GuiSetState after you had defined the event handler.

I'll remember :P

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  
Followers 0