Register for your free account! | Forgot your password?

You last visited: Today at 16:53

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Help

Discussion on Help within the AutoIt forum part of the Coders Den category.

Closed Thread
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2011
Posts: 34
Received Thanks: 19
Help

Also ich habe eine Frage ich möchte das erreichen:

wenn der Ladebalken durch gelaufen ist das dann erst der button drück bar ist aber wie mache ich das das er nicht anklick bar ist habe ich

Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 454, 163, 192, 124)
$Button2 = GUICtrlCreateButton("Klick und Start", 80, 72, 305, 81, $WS_GROUP)
GUICtrlSetFont(-1, 24, 400, 0, "Ruach LET")
GUICtrlSetBkColor(-1, 0xFF00FF)
GUICtrlSetState(-1, $GUI_DISABLE)
GUICtrlSetCursor (-1, 0)
$Progress1 = GUICtrlCreateProgress(8, 8, 441, 57)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

            For $i = 0 To 100
                GUICtrlSetData($Progress1, $i)
                Sleep(60)
            Next

While 1
	$nMsg = GUIGetMsg()
	Switch $nMsg
		Case $GUI_EVENT_CLOSE
			Exit
		Case $Button1

			while 1
sleep(10)
wend;


			While (1)

Send("{2},{1},{4},{Space},")
Wend


	EndSwitch
WEnd
PingBot is offline  
Old 03/04/2011, 16:47   #2
 
BlackHybrid's Avatar
 
elite*gold: 52
The Black Market: 101/0/0
Join Date: Oct 2010
Posts: 1,998
Received Thanks: 389
Hinter Next GUICtrlSetState(-1, $GUI_ENABLE)
BlackHybrid is offline  
Thanks
2 Users
Old 03/04/2011, 17:00   #3
 
elite*gold: 0
Join Date: Feb 2011
Posts: 34
Received Thanks: 19
SO?

GUICtrlSetState(-1, $GUI_DISABLE)
GUICtrlSetCursor (-1, 0)
$Progress1 = GUICtrlCreateProgress(8, 8, 441, 57)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

For $i = 0 To 100
GUICtrlSetData($Progress1, $i)
Sleep(60)
Next
GUICtrlSetState(-1, $GUI_ENABLE)
PingBot is offline  
Old 03/04/2011, 17:04   #4
 
BlackHybrid's Avatar
 
elite*gold: 52
The Black Market: 101/0/0
Join Date: Oct 2010
Posts: 1,998
Received Thanks: 389
Ja genau so wieso klappts nicht?
BlackHybrid is offline  
Old 03/04/2011, 17:07   #5
 
elite*gold: 0
Join Date: Feb 2011
Posts: 34
Received Thanks: 19
ne das fenster geht zu
PingBot is offline  
Old 03/04/2011, 17:10   #6
 
BlackHybrid's Avatar
 
elite*gold: 52
The Black Market: 101/0/0
Join Date: Oct 2010
Posts: 1,998
Received Thanks: 389
Ja den rest musst du auch da lassen also die While schleife. Einfach das unter Next HINZUFÜGEN.
BlackHybrid is offline  
Old 03/04/2011, 17:11   #7
 
elite*gold: 0
Join Date: Feb 2011
Posts: 34
Received Thanks: 19
GUICtrlSetCursor (-1, 0)
$Progress1 = GUICtrlCreateProgress(8, 8, 441, 57)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

For $i = 0 To 100
GUICtrlSetData($Progress1, $i)
Sleep(60)
Next
GUICtrlSetState(-1, $GUI_ENABLE)


While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1

while 1
sleep(10)
wend;

ich habe nix
geändert
PingBot is offline  
Old 03/04/2011, 17:16   #8
 
BlackHybrid's Avatar
 
elite*gold: 52
The Black Market: 101/0/0
Join Date: Oct 2010
Posts: 1,998
Received Thanks: 389
PHP Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 GUICreate("Form1"454163192124)
$Button1 GUICtrlCreateButton("Klick und Start"807230581$WS_GROUP)
GUICtrlSetFont(-1244000"Ruach LET")
GUICtrlSetBkColor(-10xFF00FF)
GUICtrlSetState(-1$GUI_DISABLE)
GUICtrlSetCursor(-10)
$Progress1 GUICtrlCreateProgress(8844157)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

For $i 0 To 100
    GUICtrlSetData
($Progress1$i)
    
Sleep(60)
Next
GUICtrlSetState
($Button1$GUI_ENABLE)


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

While 1
    Sleep
(10)
WEnd 
So habs jetzt mal zusammen gebastelt.
BlackHybrid is offline  
Thanks
1 User
Old 03/04/2011, 17:38   #9
 
elite*gold: 0
Join Date: Aug 2009
Posts: 962
Received Thanks: 96
jetzt noch das man bei button1 eine exe startest:P
lautlosertot is offline  
Old 03/04/2011, 17:55   #10
 
BlackHybrid's Avatar
 
elite*gold: 52
The Black Market: 101/0/0
Join Date: Oct 2010
Posts: 1,998
Received Thanks: 389
Da musst du hier zwischen den Befehl einfügen. Kugg einfach mal nach der Funktion ShellExecute
Case $Button1
EndSwitch
BlackHybrid is offline  
Old 03/04/2011, 18:21   #11
 
derpo's Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 344
Received Thanks: 151
derpo is offline  
Old 03/04/2011, 19:01   #12

 
Adroxxx's Avatar
 
elite*gold: 15
Join Date: Nov 2005
Posts: 13,021
Received Thanks: 5,323

#closed
Adroxxx is offline  
Thanks
1 User
Closed Thread




All times are GMT +2. The time now is 16:53.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.