Register for your free account! | Forgot your password?

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

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

Advertisement



Website anpingen exist + ComboBox?

Discussion on Website anpingen exist + ComboBox? within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1

 
.yorliK's Avatar
 
elite*gold: 0
Join Date: Nov 2011
Posts: 1,448
Received Thanks: 1,257
Website anpingen exist + ComboBox?

Joar,

mir kam gestern die Idee, einen Website checker zu basteln.
Er checkt ob die angegebene Website existiert oder nicht und zeigt es dann in einem Label an. Ich wollte es so machen das eine ComboBox n paar Endungen hat z.B. ".de" oder ".com" etc.

Diese sollten dann mit dem Wort in der Inputbox kombiniert werden also man gibt ein "google" ein und bei der Combobox wählt man ".de" aus und er checkt dann nach "www.google.de".

Ich habe schon einiges versucht, bin aber noch nicht darauf gekommen wie man in die Combobox mehre Sachen griegt und wie die dann zu z.B. google.de werden.


Hier mein Script:

#Thanks ist euch sicher.

Mfg
Kilroy.
.yorliK is offline  
Thanks
1 User
Old 04/02/2013, 14:20   #2

 
elite*gold: 64
Join Date: May 2011
Posts: 1,229
Received Thanks: 854
Das geht so:
Code:
#include <ButtonConstants.au3>
#include <ComboConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>


$Form1 = GUICreate("Form1", 276, 134, 192, 124)
$Button1 = GUICtrlCreateButton("Button1", 160, 64, 81, 33)
$Input1 = GUICtrlCreateInput("Input1", 40, 32, 121, 21)
$Combo1 = GUICtrlCreateCombo(".de", 168, 32, 65, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL))
$Label1 = GUICtrlCreateLabel("Label1", 32, 56, 124, 17)
GUISetState(@SW_SHOW)

While 1
	$nMsg = GUIGetMsg()
	Switch $nMsg
		Case $GUI_EVENT_CLOSE
			Exit
		 Case $Button1
			Ping(GUICtrlread($Input1) & GUICtrlread($combo1), 250)
			If @error Then
			   GuiCtrlSetData($Label1, "Website doesnt exist.")
			Else
			   GuiCtrlSetData($Label1, "Website exist.")
			   EndIf

	EndSwitch
WEnd
Einfach die Input1 und Combobox auslesen mit GUICtrlRead.
BladeTiger12 is offline  
Thanks
1 User
Old 04/02/2013, 14:24   #3

 
.yorliK's Avatar
 
elite*gold: 0
Join Date: Nov 2011
Posts: 1,448
Received Thanks: 1,257
Okay, doch so leicht ****^^

und wie grieg ich jetzt mehrere Sachen in die ComboBox?


MfG
Kilroy.


EDIT: habs hinbekommen

Bsp:
$Combo = GUICtrlSetData(-1,"calc.exe|cmd.exe|cleanmgr.exe|ipconfig.exe|devm gt.exe|dfrg.exe|dxdiag", "calc.exe")
.yorliK is offline  
Old 04/04/2013, 20:29   #4
 
Achat's Avatar
 
elite*gold: 528
Join Date: Jan 2012
Posts: 2,127
Received Thanks: 2,403
Ping ist nicht zu empfehlen.
Ping mal elitepvpers.com

Code:
If _IsSiteUp('asdfeww') Then MsgBox(0,0,'asdfeww is up')
If _IsSiteUp('elitepvpers.com') Then MsgBox(0,0,'elitepvpers.com is up')

Func _IsSiteUp($sSite)
	If StringInStr(BinaryToString(InetRead('http://isup.me/'&$sSite,1)),'is up') Then Return 1
EndFunc
MfG
Achat is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Kleine Frage zum anpingen
10/16/2012 - AutoIt - 5 Replies
Hi ich habe mit nem Kumpel ne Lan Verbindung aufbauen wollen und dazu ist es ja üblich, sich anzupingen um zu schauen, ob eine Verbindung besteht. Mein Ziel war es nun ein kleines Programm zu schreiben, in dem man die gewünschte IP in eine Inputbox eingetragen wird. Anschließend soll diese IP im im cmd Fenster erscheinen und davor sollte natürlich "ping " stehen. Dann soll ein Enter befehl gesendet werden. Ich hoffe es war verständlich, was ich will. ^^ Das ist auch alles ganz schick. Aber er...
Frage zu ipfw/pf IP nedmehr anpingen lassen
09/07/2012 - Metin2 Private Server - 0 Replies
Hallo, ich habe auf freebsd 9.0 64bit grad meinen kernelbuild gemacht, pf/ipfw rules hochgeladen und wollte fragen wie ich es einstellen kann, dass man die ip über die cmd Konsole nichtmehr anpingen kann? Da gibt es möglichkeiten soweit ichweiß. ich hoffe es hiflt mirjmd.
combobox-CLR
03/11/2012 - C/C++ - 11 Replies
Me and friend wanna make a project.So we wanna a button read a combobox,which that combo,will have slots like slot1,slot2 etc. slots will be values like slot1 = 12345 slot2 = 123456 and we want a button read the slot and write to memory with value,a slot of combo list. Sorry for fails english D;
hilfe mit ComboBox
09/07/2010 - AutoIt - 1 Replies
hey ich bin relativ neu mit dem AutoIt und Koda und hab gleich ma ne frage^^ wenn ich ne combomach machen will (Koda) möchte ich das per klick mehrere sachen untereinander stehen wie eine tabelle halt aber auf klick steht da halt nur 1 wäre nett wenn man mir sagen kann wie ich neue zeilen hinzufüge^^ thx :D
Combobox Problem
11/05/2009 - AutoIt - 7 Replies
Huhu ich bins wieder ^^ hab ein kleines Prob mit der combobox ich möchte gern nen script machn der wenn man bei combobox zb "1" dann des fenster öffnetn wo zb "1" button hatt und dann bei combobox "2" dann die nächste seite aufmacht wo dann 2 buttons sind. Das Problem ist wenn ich bei Koda ne Combobox mach und dann Combo1 nnim und buttons mach und dann auf Combo2 geh sind die buttons auch da aber ich will das wenn man halt das changed auch andere bzw neue buttons machn kann falls ihr...



All times are GMT +1. The time now is 12: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.