Register for your free account! | Forgot your password?

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

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

Advertisement



AutoIt Frage

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

Closed Thread
 
Old   #1
 
It´s Mario Time x3's Avatar
 
elite*gold: 0
Join Date: Dec 2011
Posts: 81
Received Thanks: 3
AutoIt Frage

Hey , habe mal eine Frage zu AutoIt

Ich möchte mir ein eigenen Bot erstellen , für Privaten gebrauch

Z.b ich möchte mit einem Knopf über AutiIt , Firefox starten.
Wie kann ich dort die Verknüpfung einfügen ?

Müsste ich nur unter dem

Case $MSG = $Button1
; C:\Dokumente und Einstellungen\Zensiert\Desktop\Neues Textdokoment

Wäre das so richtig ?.
Habe kaum ahnung davon , hoffe mir kann hier Jemand helfen
It´s Mario Time x3 is offline  
Old 12/18/2011, 12:17   #2
 
elite*gold: LOCKED
Join Date: Sep 2011
Posts: 691
Received Thanks: 85
Solche Fragen gehören in die AutoIt Coder Section, die du findest.
lg OL!VER
OL!VER is offline  
Old 12/18/2011, 12:19   #3
 
elite*gold: 726
Join Date: Jul 2010
Posts: 14,233
Received Thanks: 7,914
Fragen zu Autoit kommen in die Autoit Sektion, poste dort das nächstemal deine Fragen zu Autoit.

#Moverequest - Falsche Sektion

Meinst du das so?

PHP Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 GUICreate("Form1"197137192124)
$Button1 GUICtrlCreateButton("FireFox"403211349)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit
        Case 
$Button1
            ShellExecute
("firefox.exe")

    EndSwitch
WEnd 
noahrmal is offline  
Old 12/18/2011, 12:27   #4
 
It´s Mario Time x3's Avatar
 
elite*gold: 0
Join Date: Dec 2011
Posts: 81
Received Thanks: 3
Ja , aber ich bräuche nur das

Case $Button1
ShellExecute("firefox.exe")

Blos so startet er endlos
It´s Mario Time x3 is offline  
Old 12/18/2011, 12:34   #5
 
elite*gold: 726
Join Date: Jul 2010
Posts: 14,233
Received Thanks: 7,914
Also bei mir nicht, ein Klick auf den Button und es startet sich einmal Mozilla.
noahrmal is offline  
Old 12/18/2011, 12:35   #6
 
It´s Mario Time x3's Avatar
 
elite*gold: 0
Join Date: Dec 2011
Posts: 81
Received Thanks: 3
Ja aber wenn ich dieses Hier

Case $Button1
ShellExecute("firefox.exe")

In mein Bot Kopiere , startet er endlos .
Muss ich irgentwie dahinter eine (1) oder so ?
It´s Mario Time x3 is offline  
Old 12/18/2011, 12:39   #7
 
elite*gold: 726
Join Date: Jul 2010
Posts: 14,233
Received Thanks: 7,914
Du darfst keine While1 Schleife verwenden. Wenn du nur meinen Code kopierst geht das aber oder?
noahrmal is offline  
Old 12/18/2011, 12:44   #8
 
It´s Mario Time x3's Avatar
 
elite*gold: 0
Join Date: Dec 2011
Posts: 81
Received Thanks: 3
Jah, Was muss ich denn dazukopieren dann er nur 1x start ?
It´s Mario Time x3 is offline  
Old 12/18/2011, 14:38   #9

 
Njahs's Avatar
 
elite*gold: 574
Join Date: Nov 2010
Posts: 2,498
Received Thanks: 726
Quote:
Originally Posted by It´s Mario Time x3 View Post
Jah, Was muss ich denn dazukopieren dann er nur 1x start ?
Wenn ich's richtig verstanden habe ,
meinst du es so.

PHP Code:
While 1
$nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
                
Exit
            Case 
$Button1
                ShellExecute
("firefox.exe")
    Endswitch
WEnd 
PS: Hast du schon die AutoIt Grundlagen durchgelesen?( , , )
Njahs is offline  
Old 12/18/2011, 15:27   #10
 
It´s Mario Time x3's Avatar
 
elite*gold: 0
Join Date: Dec 2011
Posts: 81
Received Thanks: 3
Ah alles klar hat geklappt ,
Nächste frage ^^

Wie mache ich davon mehrere

Z.b sind da jetzt 3 Button
dann so ?

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
ShellExecute("firefox.exe")
Endswitch
WEnd
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button2
ShellExecute("firefox.exe")
Endswitch
WEnd
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button3
ShellExecute("firefox.exe")
Endswitch
WEnd
It´s Mario Time x3 is offline  
Old 12/18/2011, 15:50   #11

 
Njahs's Avatar
 
elite*gold: 574
Join Date: Nov 2010
Posts: 2,498
Received Thanks: 726
PHP Code:
While 1
$nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
                
Exit
            Case 
$Button1$Button2$Button3
                ShellExecute
("firefox.exe")
    Endswitch
WEnd 
Les dir doch erstmal die Grundlagen durch , dass wüsstest du das auch
Njahs is offline  
Old 12/18/2011, 16:39   #12
 
lolkop's Avatar
 
elite*gold: 280
Join Date: May 2007
Posts: 2,818
Received Thanks: 3,483
überleg dir doch ersteinmal was dein script da macht bzw machen soll...
lolkop is offline  
Old 12/23/2011, 14:03   #13

 
Adroxxx's Avatar
 
elite*gold: 15
Join Date: Nov 2005
Posts: 13,021
Received Thanks: 5,323
Adroxxx is offline  
Closed Thread




All times are GMT +2. The time now is 12:10.


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.