Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 07:02

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

Advertisement



Hilfe :) Autotyper (Autoit)

Discussion on Hilfe :) Autotyper (Autoit) within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
Memphiisto's Avatar
 
elite*gold: 115
Join Date: Feb 2009
Posts: 353
Received Thanks: 44
Hilfe :) Autotyper (Autoit)

Heyy Leute ich wollte einmal einen kleinen Autotyper mit grafischer Oberfläche erstellen (zum rum probieren) aber hänge hier jetzt schon länger fest..

Anstatt das zu schreiben was in die Textbox geschrieben wurde, schreibt es immer nur die Zahl 6.. Und das auch nicht in der geschwindichkeit die angegeben wurde..
Bitte um mithilfe

Hier der Sourcecode:
PHP Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>


GuiCreate("AutoTyper",224,228,478,177)
$button1=GuiCtrlCreateButton("Start",2,3,218,38)
$button2=GuiCtrlCreateButton("Stop",3,41,217,41)
$input1=GuiCtrlCreateInput("1000",147,203,68,20)
$Edit1=GuiCtrlCreateEdit("",6,88,213,100)
GuiSetState()


While 
1
$msg
=GuiGetMsg()
If 
$msg=-3 Then Exit
If 
$msg=$button1 Then button1()
If 
$msg=$button2 Then button2()
Wend


Func button1
()
    While 
1
    send 
$Edit1 )
    
sleep $input1 )
wend
EndFunc

Func button2
()
    exit
EndFunc 
Lieber gruß Magic


P.s : Sas mit dem Stop Button geht auch nicht ^^
Memphiisto is offline  
Old 10/16/2010, 08:49   #2
 
~FREAK~'s Avatar
 
elite*gold: 3
Join Date: Apr 2010
Posts: 17
Received Thanks: 8
Hallo Magic Dave ich habe mir code angeschaut und ein bisschen verbessert, du hast z.b. WEnd falsch geschreiben ausserdem hast du das GUICtrlRead vergessen
ich habe es dir hier richtig gestellt:

PHP Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>


GuiCreate("AutoTyper",224,228,478,177)
$button1=GuiCtrlCreateButton("Start",2,3,218,38)
$button2=GuiCtrlCreateButton("Stop",3,41,217,41)
$input1=GuiCtrlCreateInput("1000",147,203,68,20)
$Edit1=GuiCtrlCreateEdit("",6,88,213,100)
GuiSetState()


While 
1
$msg
=GuiGetMsg()
If 
$msg=-3 Then Exit
If 
$msg=$button1 Then _button1()
If 
$msg=$button2 Then _button2()
WEnd


Func _button1
()
    While 
1
    send 
(GUICtrlRead($Edit1))
    
sleep (GUICtrlRead($input1))
    
WEnd
EndFunc 
Ich hoffe ich konnte helfen
~FREAK~ is offline  
Thanks
1 User
Old 10/16/2010, 11:47   #3
 
lolkop's Avatar
 
elite*gold: 280
Join Date: May 2007
Posts: 2,818
Received Thanks: 3,483
Quote:
Originally Posted by MagicDave View Post
P.s : Sas mit dem Stop Button geht auch nicht ^^
um das gui ansprechbar zu halten, darfst du keine endlosschleifen in deine main loop einbauen, und musst auch alle sleeps durch timer ersetzen.

Edit:
hier mal am beispiel deines guis gezeigt:
Code:
Dim $timer, $run = False

$gui = GuiCreate("AutoTyper",224,228,478,177, -1, 8)
$button1=GuiCtrlCreateButton("Start",2,3,218,38)
$button2=GuiCtrlCreateButton("Stop",3,41,217,41)
$input1=GuiCtrlCreateInput("1000",147,203,68,20)
$Edit1=GuiCtrlCreateEdit("",6,88,213,100)
GuiSetState()


While 1
	Switch GUIGetMsg()
		Case -3
			Exit
		Case $button1
			$run = True
		Case $button2
			$run = False
		Case Else
			If $run And Not WinActive($gui) And TimerDiff($timer) > GUICtrlRead($input1) Then
				Send(GUICtrlRead($Edit1))
				$timer = TimerInit()
			EndIf
	EndSwitch
Wend
lolkop is offline  
Thanks
1 User
Old 10/16/2010, 12:07   #4
 
~FREAK~'s Avatar
 
elite*gold: 3
Join Date: Apr 2010
Posts: 17
Received Thanks: 8
Quote:
Originally Posted by MagicDave
P.s : Sas mit dem Stop Button geht auch nicht ^^
hubs das hab ich garnet gemerkt
das das ja auch net ging^^
~FREAK~ is offline  
Old 10/16/2010, 13:27   #5
 
Memphiisto's Avatar
 
elite*gold: 115
Join Date: Feb 2009
Posts: 353
Received Thanks: 44
Danke leute krigt alle ma n THX Ich probiers ma aus ^^

lg Magic
Memphiisto is offline  
Reply


Similar Threads Similar Threads
AutoTyper/ Calculater
11/01/2007 - Runescape - 4 Replies
Guys I found this Autotyper/calc works nicely(I dont take credit for makin it) Hope it helps everyone!!! Thanks would be appreciated!!!:p
Can some 1 plz post an autotyper?
10/17/2007 - Dekaron - 7 Replies
I need an auto typer and i can't find any that work. Plz post if u have 1 that works well. thanx
Silkroad autotyper
01/03/2006 - Silkroad Online - 7 Replies
hey guys, ive recently searched on your site and have not found an autotyper for silkroad... not only that but i have googled it also. if you may kindly show me where i could find an autotyper, it would be terrific PLZ DONT FLAME ME



All times are GMT +1. The time now is 07:04.


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