1. sayfa (Toplam 1 sayfa)

Scripti Tekrar Baslatmak

Gönderilme zamanı: 03 Nis 2018, 00:11
gönderen darendeli
Yazmıs oldugum bu scripti Button 2 Basınca Tekrar Nasıl Baslatırım Yenilenmesi Gerekli

Kod: Tümünü seç

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 314, 337, 192, 124)
$Button1 = GUICtrlCreateButton("Button1", 80, 64, 75, 25)
$Button2 = GUICtrlCreateButton("Button2", 176, 64, 75, 25)
$Input1 = GUICtrlCreateInput("Input1", 80, 104, 169, 21)
$Edit1 = GUICtrlCreateEdit("", 80, 136, 169, 153)
GUICtrlSetData(-1, "Edit1")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
	$nMsg = GUIGetMsg()
	Switch $nMsg
		Case $GUI_EVENT_CLOSE
			Exit
		Case $Button2			
			Exit
			
	EndSwitch
WEnd

Re: Scripti Tekrar Baslatmak

Gönderilme zamanı: 03 Nis 2018, 09:45
gönderen BlueLife
@darendeli

En basit olarak aşağıdaki gibi bir şey olabilir. Lakin guiyi silmeden bilgileri tazelemek (GUICtrlSetData, GUICtrlSetState ...) daha mantıklı.

Kod: Tümünü seç

#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

_Main_Gui()

Func _Main_Gui()
	Local $Form1 = GUICreate("Form1", 314, 337, 192, 124)
	Local $Button1 = GUICtrlCreateButton("Button1", 80, 64, 75, 25)
	Local $Button2 = GUICtrlCreateButton("Button2", 176, 64, 75, 25)
	Local $Input1 = GUICtrlCreateInput("Input1", 80, 104, 169, 21)
	Local $Edit1 = GUICtrlCreateEdit("", 80, 136, 169, 153)
	GUICtrlSetData(-1, "Edit1")
	GUISetState(@SW_SHOW)
	Local $nMsg
	While 1
		$nMsg = GUIGetMsg()
		Switch $nMsg
			Case $GUI_EVENT_CLOSE
				Exit
			Case $Button2
				ExitLoop
		EndSwitch
	WEnd
	GUIDelete($Form1)
	_Main_Gui()
EndFunc

Re: Scripti Tekrar Baslatmak

Gönderilme zamanı: 05 Nis 2018, 20:03
gönderen armorking
@bluelife Android app üzerine bir düşüncem var onu danışmak istiyorum sana ama mesaj atamıyorum.

Re: Scripti Tekrar Baslatmak

Gönderilme zamanı: 06 Nis 2018, 10:51
gönderen BlueLife
@armorking

Malesef android konusunda koldlama ile alakalı bilgim yok :(

Re: Scripti Tekrar Baslatmak

Gönderilme zamanı: 07 Nis 2018, 01:18
gönderen armorking
Peki. :(