Jump to content
Sign in to follow this  
potitpanda

Need help to update code of a GUI

Recommended Posts

potitpanda

I have updated my AutoIt to Version 3.2.12.0

This code seems not working after the update

CODE :

Func ValideChemin()

$popup = GUICreate("Confirmation du chemin de l'image", 432, 227, -1, -1, BitOR($WS_CAPTION,$WS_POPUP,$WS_BORDER,$WS_CLIPSIBLINGS), BitOR($WS_EX_TOPMOST,$WS_EX_WINDOWEDGE))

$lbl_edit = GUICtrlCreateEdit("", 10, 34, 410, 80, BitOR($ES_AUTOVSCROLL,$ES_AUTOHSCROLL,$ES_READONLY,$ES_WANTRETURN,$WS_HSCROLL,$WS_VSCROLL))

$chemin = IniRead(@ScriptDir & "\autopcasto13.ini", "AutoPCastO13", "chemin", "")

GUICtrlSetData($lbl_edit, $chemin)

GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")

$Button_1 = GUICtrlCreateButton("Redéfinir...", 116, 172, 76, 36, 0)

$Button_2 = GUICtrlCreateButton("Continuer", 244, 172, 76, 36, 0)

$Label1 = GUICtrlCreateLabel("Le chemin de l'image a utiliser pour le déploiement est le suivant : ", 8, 8, 313, 17)

$Label2 = GUICtrlCreateLabel("Cliquez sur Redéfinir pour choisir une nouvelle image.", 96, 136, 252, 17)

GUISetState(@SW_SHOW)

While 1

$nMsg = GUIGetMsg()

Switch $nMsg

Case $Button_1

GUISetState(@SW_HIDE)

ChoixChemin()

$chemin = IniRead(@ScriptDir & "\autopcasto13.ini", "AutoPCastO13", "chemin", "")

GUISetState(@SW_SHOW)

GUICtrlSetData($lbl_edit, $chemin)

Case $Button_2

GUIDelete($popup)

MsgBox(0, "Attention", "Votre ordinateur va maintenant travailler tout seul, veuillez attendre le message de fin avant d'utiliser votre ordinateur (2 minutes maxi).", 10);

$Netuseclose="Net Use /delete \\" &$s2_ip & "\E$"

Run ($netuseclose,"",@SW_HIDE)

AutoConfigTSE()

EndSwitch

Wend

EndFunc

I have tried to update with Koda Form Designer 1.7.0.5, but the code Given by koda uses other method (OnEvent Mode)

How can i Update this code with this functionnal structure

Thanks

I want to try to update code without Using OnEvent Mode

This Not work (possibly due to a bug issue in koda 1.7.0.5)

and the title bar vanishes !

Thanks for all replies

PotitPanda

Edited by potitpanda

Share this post


Link to post
Share on other sites
monoceres

Read the sticky.


Broken link? PM me and I'll send you the file!

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  

×