Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 18:30

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

Advertisement



$variable = inputbox Help

Discussion on $variable = inputbox Help within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
Achileus's Avatar
 
elite*gold: 74
Join Date: Apr 2009
Posts: 5,908
Received Thanks: 2,386
$variable = inputbox Help

Hallo ich lerne seit gestern Autoit ich kann es auch schon recht gut und will ein eigenes kleines Programm schreiben . Nur wenn sich die inputBox öffne und dann auf Cancel klicke dann schließt das nicht dann kommt immer ein Code von meinen If
Code:
	$input =  InputBox("Ja oder nein" , "Wie gehts dir " , "" , "*")
	
	If $input = "ja" then 
		Run("Cmd")
		sleep(2000)
	 send("shutdown -s")
	send ("{enter}")


	ElseIf $input = "nein" Then
	Run("cmd") 
	 sleep(2000)
	 send ("shutdown -r") 
	 send ("{enter}")
	Else
	EndIf
	
	If  "Stand" Then
	Run ("cmd") 
	sleep(2000)
	send("shutdown")
	
	If "Cancel" Then
		ToolTip( " Hallo " ,123,123, "Hallo")
		

	EndIf
Exit

EndIf

EndIf


Hier mein Code es schließt nicht ich wollte mit toolTip versuchen aber der macht das einfach nicht
Achileus is offline  
Old 06/11/2011, 16:16   #2
 
omer36's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,255
If @error = 1 Then MsgBox("","","Cancel button was clicked")
omer36 is offline  
Thanks
1 User
Old 06/11/2011, 23:30   #3
 
Achileus's Avatar
 
elite*gold: 74
Join Date: Apr 2009
Posts: 5,908
Received Thanks: 2,386
If @error then exit das wars mehr nicht.

Habe ich auch rausgefunden das war nämlich genau was ich suchte danke!!
Achileus is offline  
Reply


Similar Threads Similar Threads
Cost of accessing a casted variable vs. assigning the casted variable? (C#)
01/05/2011 - CO2 Programming - 5 Replies
I know that in unmanaged C++, casting is at compile-time, so it's better to avoid the assignment and simply access it for all instances. However, in C#, I have no idea since I'm pretty new to it.
Überprüfen ob Variable Eine Variable ist
10/16/2010 - AutoIt - 26 Replies
Hey leute ich wollte fragen ob/wie man überprüfen kann ob eine Variable eine Variable ist z.b. so $k = 1 $i = $k if $i = VARIABLE Then msgbox(0,'$i ist eine variable!!','') endif PS:Wp releast man nochma TuT (z.b. für metin2??)
[Problem] Inputbox(GUI) auslesen und als Variable speichern
08/08/2010 - AutoIt - 8 Replies
Hallo, ich bin neu hier und habe ein Problem mit Autoit hier erstmal das Script : #include <ButtonConstants.au3> #include <EditConstants.au3>
InputBox
01/13/2009 - GW Bots - 2 Replies
Heyho, Ich wollte mal fragen wie ich eine InputBox erstelle in die man eine Zahl eingibt und dann eine Funktion so oft wiederholt wird bis die Zahl in der Box erreicht ist. Ich hoffe ich hab das ausreichend erklärt.



All times are GMT +1. The time now is 18:31.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.