Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 16:56

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

Advertisement



Gui problem ._.

Discussion on Gui problem ._. within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
pzyhô's Avatar
 
elite*gold: 42
Join Date: Oct 2009
Posts: 391
Received Thanks: 398
Gui problem ._.

Hy com. Ich hoffe das ich hier richtig bin mit dem Thread :x. Zu meinem Probelm hab gestern versucht nen einfach spambot zu scripten der 4 buttons hatt also 4 funktionen, start pause stop und beenden. Hab alles super hinbekommen bis auf das wenn ich den script starte, und dann Start button drücke kann ich weder Beenden noch X drücken er lässt sich einfach net schliesen nur durch des icon inna Taskleiste unten ... hab schon einiges versucht aber bekomms einfach net hin. Wäre nett wenn mir einer erklären könnte wie ich die Pause Stop und Beenden buttons zum funzen bekomm das wenn der bot gestartet is ich auch mit den buttons stopen etc kann. so schaut mein script aus :
Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
Global $Paused
HotKeySet("{PAUSE}", "TogglePause")


#Region ### START Koda GUI section ### Form=c:\users\allgemein\documents\form1.kxf
$Form1_1 = GUICreate("Spambot", 257, 445, 192, 124)
$Label1 = GUICtrlCreateLabel("Testprogramm", 88, 416, 164, 17)
$Button1 = GUICtrlCreateButton("Start", 16, 8, 65, 25, $WS_GROUP)
$Button2 = GUICtrlCreateButton("Pause", 16, 40, 65, 25, $WS_GROUP)
$Button3 = GUICtrlCreateButton("Stop", 16, 72, 65, 25, $WS_GROUP)
$Button4 = GUICtrlCreateButton("Beenden", 168, 376, 65, 25, $WS_GROUP)
$Input1 = GUICtrlCreateInput("Input1", 112, 120, 89, 21)
$Label2 = GUICtrlCreateLabel("Message to Spam", 16, 120, 89, 17)
$Label3 = GUICtrlCreateLabel("Test", 16, 152, 166, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
func startstop()
	;die StartStopFUnktion
EndFunc
Func TogglePause()
        $Paused = Not $Paused
        While $Paused
            Sleep(100)
        WEnd
    EndFunc

While 1
	$nMsg = GUIGetMsg()
	Switch $nMsg
		Case $GUI_EVENT_CLOSE
			Exit
		Case $Button1
			$in1 = GUICtrlRead($Input1)
		sleep(5000)
	While True
	sleep(500)
	Send($in1)
	Send("{ENTER}")
	WEnd

		Case $Button2
			Endswitch

WEnd
falls ich i-was falsch gemacht hab weis ja net pls help
btw: is mein erster script also seit net so hart
pzyhô is offline  
Old 10/31/2009, 07:05   #2

 
elite*gold: 150
Join Date: Apr 2007
Posts: 2,372
Received Thanks: 6,627
Dein Programm bleibt in der Whileschleife hängen....
wurstbrot123 is offline  
Thanks
1 User
Old 10/31/2009, 07:46   #3
 
pzyhô's Avatar
 
elite*gold: 42
Join Date: Oct 2009
Posts: 391
Received Thanks: 398
K und wie bekomm ich die aus der while schleife raus ? *Dummanstell*
pzyhô is offline  
Old 10/31/2009, 08:20   #4

 
elite*gold: 150
Join Date: Apr 2007
Posts: 2,372
Received Thanks: 6,627
Wenn du die Schleifen behalten willst bau IsPressed und eine Bedingung für die Whileschleife ein. Das sollten genug Infos sein.... Wenn du immernoch nix verstehst, guck dir nochmal genau an was eine Whileschleife ist.
wurstbrot123 is offline  
Thanks
1 User
Old 10/31/2009, 15:49   #5
 
elite*gold: 9
The Black Market: 156/0/0
Join Date: Apr 2009
Posts: 10,163
Received Thanks: 3,803
Oder du lässt die Buttons einfach weg und benutzt Hotkeys stattdessen. (Einfacher )
AllesVergeben is offline  
Thanks
1 User
Old 10/31/2009, 16:55   #6
 
| Moep |'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,079
Received Thanks: 438
hatte jemand schonmal so ein ähnliches Problem.
| Moep | is offline  
Thanks
1 User
Old 10/31/2009, 20:58   #7
 
pzyhô's Avatar
 
elite*gold: 42
Join Date: Oct 2009
Posts: 391
Received Thanks: 398
Problem gelöst ^^ hab einfach nur 1 Button dran gelassen also den start button alle bekommn en thx weils super erklärt wurde.
pzyhô is offline  
Old 11/01/2009, 13:28   #8

 
°Remus°'s Avatar
 
elite*gold: 2
Join Date: Mar 2008
Posts: 8,541
Received Thanks: 4,538
ne gui erstellen für 1 button?
schau dir doch einfach mal den guioneventmode in der hilfe an
°Remus° is offline  
Reply


Similar Threads Similar Threads
Having problem Wierd problem with [GUIDE-DETIALED] How to setup a server!
02/10/2010 - EO PServer Hosting - 1 Replies
Hellow, I just used this guide, to set up an EO private server. Everything is correct, but my AccountServer Keeps bugging. Can someOne help me ( via TeamViewer, .. ) ? Thnx, Greets Joris
[Problem] Problem with server starting - cannot find quest index for PaxHeader
12/22/2009 - Metin2 Private Server - 1 Replies
Hello! I have this same problem as here when i'm starting my server: http://www.elitepvpers.com/forum/metin2-pserver-di scussions-questions/307143-metin2-serverfiles-ques t-index-fehler.html But I didn't know the answer.. how to repair this? Greetings



All times are GMT +1. The time now is 16:56.


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.