Register for your free account! | Forgot your password?

You last visited: Today at 06:09

  • 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: 60
Join Date: Jun 2009
Posts: 717
Received Thanks: 431
Help?!

€dit: Bin wohl zu doof ... Hab mich nur vertippt.... :S Sry
FrEakY.
FrEakY. is offline  
Old 04/23/2010, 23:28   #2
 
Shadow992's Avatar
 
elite*gold: 77
Join Date: May 2008
Posts: 5,430
Received Thanks: 5,876
Quote:
Originally Posted by FrEakY. View Post
Hey, hab mal wieder kleine Komplikationen mit meinem Script...

PHP Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 GUICreate("DesktopTool"372130192124)
$Input1 GUICtrlCreateInput("Hier den Link eingeben"8835321)
$Button1 GUICtrlCreateButton("Start"87210549$WS_GROUP)
$Button2 GUICtrlCreateButton("Desktop"1287210549$WS_GROUP)
$Button3 GUICtrlCreateButton("Exit"2487211349$WS_GROUP)
$Pic1 GUICtrlCreatePic("C:\Users\TheAdmin\Desktop\Crack\AS-RENDERS_405.jpg"00372130BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
GUISetState(-1,$GUI_disable)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
    
Case $Button1
        _Func1
()
    Case 
$Button2
        _Func2
()
    Case 
$Button3
        _Func3
()
        
        Case 
$GUI_EVENT_CLOSE
            
Exit

    EndSwitch
WEnd

Func _Func1
()
    
ShellExecute(GUICtrlRead($Input1))
EndFunc

Func _Func2
()
    
Send("#{d}")
EndFunc

Func _Func3
()
    
MsgBox(0,"Bye Bye!""Credits to FrEakY.")
    Exit
EndFunc 
Wieso will das das GUI nich anzeigen ?!

Danke schonmal
FrEakY.
Daran liegts :
Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("DesktopTool", 372, 130, 192, 124)
$Input1 = GUICtrlCreateInput("Hier den Link eingeben", 8, 8, 353, 21)
$Button1 = GUICtrlCreateButton("Start", 8, 72, 105, 49, $WS_GROUP)
$Button2 = GUICtrlCreateButton("Desktop", 128, 72, 105, 49, $WS_GROUP)
$Button3 = GUICtrlCreateButton("Exit", 248, 72, 113, 49, $WS_GROUP)
$Pic1 = GUICtrlCreatePic("C:\Users\TheAdmin\Desktop\Crack\AS-RENDERS_405.jpg", 0, 0, 372, 130, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
[COLOR="Red"]GUISetState(-1,$GUI_disable)[/COLOR]
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
	$nMsg = GUIGetMsg()
	Switch $nMsg
		
	Case $Button1
		_Func1()
	Case $Button2
		_Func2()
	Case $Button3
		_Func3()
		
		Case $GUI_EVENT_CLOSE
			Exit

	EndSwitch
WEnd

Func _Func1()
	ShellExecute(GUICtrlRead($Input1))
EndFunc

Func _Func2()
	Send("#{d}")
EndFunc

Func _Func3()
	MsgBox(0,"Bye Bye!", "Credits to FrEakY.")
	Exit
EndFunc
Am besten du kommentierst den befehl mal aus , dann sollte es gehen .
Wenn du die GUI Disable machen willst , musst du WinSetState ($Form1, "", $GUI_DISABLE ) nehmen
Shadow992 is offline  
Old 04/23/2010, 23:31   #3
 
HardCore.1337's Avatar
 
elite*gold: 1
Join Date: Feb 2009
Posts: 1,726
Received Thanks: 729
PHP Code:
GuiSetState(-1$GUI_ENABLED) ;weiß nicht ob Enabled richtig geschrieben ist 
HardCore.1337 is offline  
Old 04/23/2010, 23:45   #4


 
Cholik's Avatar
 
elite*gold: 4
Join Date: Aug 2008
Posts: 6,786
Received Thanks: 4,992
#closed auf Request vom Threadersteller
Cholik is offline  
Thanks
1 User
Closed Thread




All times are GMT +2. The time now is 06:09.


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.