Register for your free account! | Forgot your password?

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

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

Advertisement



Hilfe bei Shortcut und Gui

Discussion on Hilfe bei Shortcut und Gui within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
Annohorn's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 10
Received Thanks: 0
Question Hilfe bei Shortcut und Gui

Hallo
Ich bin relativ neu in Auto it und wollte fragen wie ich bei meinem Script ein Exit Shortcut machen kann?
Ausserdem wollte ich frage wie ich ein Gui erstelle bei dem man nur euf einen Knopf drücken muss und dann reconnectet wird...?

Code:
HotKeySet ("^!{s}","start")


Func start()
Run ("C:\Program Files\Mozilla Firefox\firefox.exe")
WinWaitActive ("Google - Mozilla Firefox")
Run ("DFA.bat")
WinWaitActive ("DFA-IPCHANGER CmdVersion 1.0  2oo9")
Send ("{Enter}{Enter}{Enter}{j}{Enter}")
Sleep (1000)
WinWaitActive ("Speedport W 920V Konfigurationsprogramm - Mozilla Firefox")
Send ("!{F4}") 
Send ("HotKeySet")
EndFunc

while 1
sleep(100)
Wend
Danke
Annohorn is offline  
Old 09/23/2010, 17:36   #2


 
Jeoni's Avatar
 
elite*gold: 966
Join Date: Apr 2010
Posts: 1,105
Received Thanks: 681
Exit Shortcut:
Code:
HotKeySet("{F12}", "_exit")
Func _exit()
   Exit
EndFunc
Reconnect (Geht nicht bei Routern):
Code:
#include <File.au3>

If Not FileExists("Reconnect.bat") Then _FileCreate("Reconnect.bat")
$handle=FileOpen("Reconnect.bat", 2)
FileWriteLine($handle, "@echo off")
FileWriteLine($handle, "ipconfig /release")
FileWriteLine($handle, "ipconfig /renew")
FileClose($handle)
Run("Reconnect.bat")
Müsste funktionieren

MfG
Jeoni
Jeoni is offline  
Thanks
1 User
Old 09/24/2010, 16:08   #3


 
MrSm!th's Avatar
 
elite*gold: 7110
Join Date: Jun 2009
Posts: 28,913
Received Thanks: 25,414
#moved
MrSm!th is offline  
Old 09/24/2010, 17:58   #4
 
Annohorn's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 10
Received Thanks: 0
Ok Danke ersma für das Den ersten Code
Äähm ich wüsste jetzt gerne was das zwiete bezweckt
€: Okay verstanden kann mir noch einer mit nem Gui helfen?
Also wie ich ein Gui erstelle bei dem ich den shortcut !^s auf eine Button legen kann?
Ich weis das es umständlich ist ich möchts bloß verstehen
Annohorn is offline  
Old 09/24/2010, 19:40   #5
 
omer36's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,255
google nach "SciTE" und installier es, (ist dann im autoit ordner) dort findest du KODA(form designer) damit kannst du für autoit ganz leicht gui´s erstellen...

Quote:
Also wie ich ein Gui erstelle bei dem ich den shortcut !^s auf eine Button legen kann?
was genau meins du jetz?
wie du dann per button dein script "startest" ?
omer36 is offline  
Old 09/24/2010, 20:11   #6
 
Annohorn's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 10
Received Thanks: 0
Quote:
wie du dann per button dein script "startest" ?
Ja so etwa meinte ich das, aber ich hab jetzt geschaft
MIt Hilfe von diesem Tutoria
lhttp://www.elitepvpers.com/forum/autoit/403140-tutorial-how-make-bot.html.
Allerdings wie kann ich jetzt einen Counter einbauen auf dem man sieht wie oft auf einen Bestimmten Knopf gedrückt wurde? (Is SInnlos aber ich würds gern haben )
Mein Code
Code:
#include <GUIConstantsEx.au3>

GUICreate("Annohorns Reconnect", 335, 100)

GUISetState(@SW_SHOW)

$startbutton = GUICtrlCreateButton("Reconnect", 190, 8, 60)
$exitbutton = GUICtrlCreateButton("Exit",35, 8,60)

While 1
    $msg = GUIGetMsg()
    
    Select
        
        Case $msg = $startbutton
                Run ("C:\Program Files\Mozilla Firefox\firefox.exe")
               WinWaitActive ("Google - Mozilla Firefox")
                Run ("DFA.bat")
               WinWaitActive ("DFA-IPCHANGER CmdVersion 1.0  2oo9")
               Send ("{Enter}{Enter}{Enter}{j}{Enter}")
               WinWaitActive ("Speedport W 920V Konfigurationsprogramm - Mozilla Firefox")
                Send ("!{F4}") 
            
        Case $msg = $GUI_EVENT_CLOSE
              
          Case $msg = $exitbutton
              GUIDelete()
               Exit 
            
            EndSelect
        
WEnd
Danke
Annohorn is offline  
Old 10/03/2010, 23:36   #7
 
Annohorn's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 10
Received Thanks: 0
push
Annohorn is offline  
Old 10/04/2010, 17:53   #8
 
BlackHybrid's Avatar
 
elite*gold: 52
The Black Market: 101/0/0
Join Date: Oct 2010
Posts: 1,998
Received Thanks: 389
So kann es aussehen:

PHP Code:
#include <GUIConstantsEx.au3>

GUICreate("Annohorns Reconnect"335100)

GUISetState(@SW_SHOW)

$startbutton GUICtrlCreateButton("Reconnect"190860)
$exitbutton GUICtrlCreateButton("Exit"35860)
$label1 GUICtrlCreateLabel(""5040)
While 
1
    $msg 
GUIGetMsg()

    
Select

        
Case $msg $startbutton
            GUICtrlSetData
($label1GUICtrlRead($label1) + 1)
            
Run("C:\Program Files\Mozilla Firefox\firefox.exe")
            
WinWaitActive("Google - Mozilla Firefox")
            
Run("DFA.bat")
            
WinWaitActive("DFA-IPCHANGER CmdVersion 1.0  2oo9")
            
Send("{Enter}{Enter}{Enter}{j}{Enter}")
            
WinWaitActive("Speedport W 920V Konfigurationsprogramm - Mozilla Firefox")
            
Send("!{F4}")

        Case 
$msg $GUI_EVENT_CLOSE

        
Case $msg $exitbutton
            GUIDelete
()
            Exit

    
EndSelect

WEnd 
BlackHybrid is offline  
Thanks
1 User
Old 10/06/2010, 21:37   #9
 
Annohorn's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 10
Received Thanks: 0
OKAY Danke
Annohorn is offline  
Reply


Similar Threads Similar Threads
SRO DB-BOT Shortcut Key
06/09/2010 - SRO Private Server - 10 Replies
Hi, can someone tell me if there is a shortcut key to pop-up the botmenu? Like in isrobot. Pos1 or something. Since I am using Windows 7 it does cause trouble alt+tab with the bot. It wont appear anymore! Windows xp didn´t hat this problem. Thanks alot
Vista EO Shortcut
04/20/2009 - EO Exploits, Hacks, Tools & Macros - 6 Replies
As most of us know there are some errors with Vista and EO's play.exe and autopatch.exe Ive edited my own shortcut (recently got Vista) so it works a lot better. Jusrt replace this shortcut with your old one IF you have Vista. give thx if you like xD or give thx for the effort xDxD
COOL SHORTCUT
09/22/2008 - Zero - 8 Replies
hey im new to zero, only playing for a couple of weeks and im not sure if everyone already knows this... but here it goes to make all robots dissapear press CTRL + tab ! this is great for market and robots re-appear when u move less lag ;)
Animus shortcut key
04/21/2008 - RF Online - 2 Replies
The button makes your animus attack your target. Now I would like to change that button to something like which is 100x more accessible to me. Can anyone tell me how or where to look for this file that I need to edit. I have looked but cant find anything legible, mostly gibberish.



All times are GMT +2. The time now is 02:41.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.