Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 14:35

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

Advertisement



Gui AutoIt

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

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2006
Posts: 34
Received Thanks: 10
Gui AutoIt

Hab mir ein kleines Programm erstellt das die taste "1" an ein Prozess sendet...

brauch noch ein design und eine start,stop funktion.kann mir jmd das erklären?

mein script:

AutoItSetOption("WinTitleMatchMode", 4)
$windowname="AION Client"
$handle = WinGetHandle($windowname, "")
If @error Then
MsgBox(4096, "Error", "Fenster konnte nicht gefunden werden")
Else

while 1
ControlSend($windowname,'','',"1 ")
sleep(1500)
WEnd


EndIf
MouZkill is offline  
Old 09/17/2010, 19:17   #2
 
elite*gold: 0
Join Date: Aug 2010
Posts: 462
Received Thanks: 1,618
Willst du nun eine GUI von mir oder willst du wissen wie man eine macht?
♠As♠ is offline  
Old 09/17/2010, 19:47   #3
 
omer36's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,255
lade dir KODA (Koda Form Designer) runter....
damit kannste ganz easy gui´s erstellen...
musst einfach mal googln...
omer36 is offline  
Old 09/17/2010, 20:20   #4
 
elite*gold: 0
Join Date: Jul 2009
Posts: 2,241
Received Thanks: 848
Für dein kleines Script brauchst du keine GUI, da machen sich Hotkeys besser...
Obwohl ich glaube dass man bei Aion lieber _IsPressed nimmt.

Code:
#include <Misc.au3>

While 1
If _IsPressed("*") Then 
If NOT WinExists("AION Client") Then WinWait("AION Client")
WinActivate("AION Client")
ControlSend("AION Client","","","1")
Sleep(1500)
ElseIf _IsPressed("*") Then
Exit
EndIf
WEnd
Für * setzt du folgende 2-Zeichen-Kombi ein:

Was macht das Script? Erstmal prüft es permament ob eine bestimmte Taste gedrückt wurde. Entweder beendet es das Script, oder es überprüft ob ein bestimmtes Fenster vorhanden ist. Falls nicht, wartet es bis es vorhanden ist, dann aktiviert es das Fenster und führt ControlSend aus.
mipez is offline  
Old 09/17/2010, 22:08   #5
 
elite*gold: 0
Join Date: Jul 2006
Posts: 34
Received Thanks: 10
vielen dank werde ich gleich mal testen liebe grüße
MouZkill is offline  
Old 09/17/2010, 22:13   #6
 
elite*gold: 0
Join Date: Jul 2006
Posts: 34
Received Thanks: 10
em wo füg ich das ein .. ;D
MouZkill is offline  
Old 09/18/2010, 15:13   #7
 
elite*gold: 0
Join Date: Jul 2009
Posts: 2,241
Received Thanks: 848
Erstell ein leeres Script, oder verbinde es in deinem...
mipez is offline  
Reply




All times are GMT +1. The time now is 14:37.


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.