Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 21:45

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

Advertisement



Requests - AutoIt only

Discussion on Requests - AutoIt only within the AutoIt forum part of the Coders Den category.

Reply
 
Old 10/16/2014, 16:54   #196
 
elite*gold: 0
Join Date: Sep 2009
Posts: 3
Received Thanks: 0
Hallo ihr.
Bräuchte ein macro, das mir einen Satz in ein angeklicktes Feld schreibt, wenn ich z.b. die 1 drücke.
Könnte mir jemand ein Gerüst dieses scripts schreiben ? Weil ich brauche 20 belegbare hotkeys aber wenn ich das Script hab kann ich bestimmt die betreffende Stelle halt 20 mal kopieren.
Kenne mich nur sehr wenig aus und wär super, wenn mir da jemand helfen könnte.

Hab rumgepflügt für Stunden und sowas gefunden:

Hotkeyset ("{A}", "A")

While 1
Sleep (1000)
Wend

Func A()
Send("{gib mir mal die wurst rübber}")

Endfunc

Nur das es nicht funktioniert. Es startet zwar aber wenn ich dann shift und a drücke, was ja dann das große A ergibt, schreibt er statt dessen ein g. Das ist ja der erste Buchstabe von dem Satz den er schreiben soll immerhin, abe wie mache ich, das er den ganzen Satz schreibt ?

2. Kann ich dann einfach dieses kleine Progrämmchen sagen wir 10x hintereinanderschreiben - halt mit veränderten Starterkeys - und habe dann auch 10 belegte hotkeys ?
Reskal is offline  
Old 10/17/2014, 21:08   #197
 
elite*gold: 0
Join Date: Mar 2009
Posts: 7,260
Received Thanks: 33,149
Vier Fehler:
  1. Hotkeys sollte man nur in Kleinbuchstaben angeben.
  2. Wenn du ein "großes A" als Hotkey verwenden willst, also Shift + A, dann musst du es auch so angeben.
    Korrekt wäre:
    Code:
    HotKeySet("+a", "function")
  3. In geschweiften Klammern werden nur Keys angegeben. Da es keinen Key gibt, der deinen Satz entspricht, wird nur der erste Buchstabe gesendet, dein "g".
    Korrekt wäre:
    Code:
    Send("gib mir mal die wurst rübber")
  4. HotKeySet() "blockiert" die Tastenkombination, du kannst diese für keine andere Zwecke mehr nutzen. In deinem Fall verwendest du nur das "A", der Send() Befehl mit einem "A" bzw. "a" kann deshalb nicht korrekt funktionieren. Das Problem kannst du lösen, indem du mehrere Tasten verwendest (siehe Beispiel oben), oder eine Alternative wie z. B. _IsPressed() verwendest.

Deine 2. Frage kann man ganz einfach mit "Ja" beantworten.
KDeluxe is offline  
Thanks
1 User
Old 10/23/2014, 09:07   #198
 
elite*gold: 0
Join Date: Sep 2009
Posts: 3
Received Thanks: 0
Vielen Dank.
Reskal is offline  
Old 10/24/2014, 13:15   #199
 
elite*gold: 0
Join Date: Oct 2014
Posts: 2
Received Thanks: 0
archeage

Can someone help me with an archeage autoit script? Please pm.
Xorex is offline  
Old 11/01/2014, 20:39   #200
 
elite*gold: 0
Join Date: Oct 2014
Posts: 7
Received Thanks: 0
Hello.

Code:
;Hotkeys
While 1
Hotkeyset("{NUMPAD1}", "com1")
WEnd

Func com1()
   Send("{ENTER}")
   Send("/com1 ON")
   Send("{ENTER}")
EndFunc
is it possible to make it like that my numpad1 can use 2 diff commands?


1st press = /com1 on
2nd press = /com2 off
3rd press = /com3 on

and so on :S

you guys would rlly help me ! THX
fikkifuk is offline  
Old 11/08/2014, 14:05   #201
 
cяαzуℓυмι's Avatar
 
elite*gold: 1
Join Date: May 2012
Posts: 287
Received Thanks: 39
Quote:
Originally Posted by fikkifuk View Post
Hello.

Code:
;Hotkeys
While 1
Hotkeyset("{NUMPAD1}", "com1")
WEnd

Func com1()
   Send("{ENTER}")
   Send("/com1 ON")
   Send("{ENTER}")
EndFunc
is it possible to make it like that my numpad1 can use 2 diff commands?


1st press = /com1 on
2nd press = /com2 off
3rd press = /com3 on

and so on :S

you guys would rlly help me ! THX

Code:
HotkeySet("{NUMPAD1}", "_switch")

$count = 1

While 1
    Sleep(100)
WEnd

Func _switch()
    If $count = 1 Then
    _1()
    ElseIf $count = 2 Then
    _2()
    ElseIf $count = 3 Then
    _3()
    $count = 1 ;only @ last cmd.
    EndIf
    $count = $count+1
EndFunc

Func _1()
    MsgBox(0, "", "1")
EndFunc

Func _2()
    MsgBox(0, "", "2")
EndFunc

Func _3()
    MsgBox(0, "", "3")
EndFunc
cяαzуℓυмι is offline  
Old 11/10/2014, 18:34   #202

 
Hisanobu's Avatar
 
elite*gold: 332
Join Date: Jun 2011
Posts: 277
Received Thanks: 184
Hey hab mal ne Frage will das beim klicken des Buttons das Bild öffnet, aber irgendwas stimmt in dem Script ihr denkt wsl bin zu blöd xD, aber arbeite erst seit heute mit AutoIt. Angeblich liegt der Fehler bei $Platin = GUICtrlCreateButton

Hier ist mal mein Code:

Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("", 603, 421, 196, 130)
$Alchemie = GUICtrlCreateButton("Alchemie", 16, 112, 121, 33)
$PvPRumble = GUICtrlCreateButton("PvPRumble", 16, 160, 121, 33)
$Dungeons = GUICtrlCreateButton("Dungeons", 16, 208, 121, 33)
$Wissenswertes = GUICtrlCreateButton("Wissenswertes", 16, 256, 121, 33)
$Giants = GUICtrlCreateButton("Giants", 16, 304, 121, 33)
$Hexen = GUICtrlCreateButton("Hexen", 16, 352, 121, 33)
$Valen = GUICtrlCreateButton("Valen", 16, 16, 121, 33)
$Pic1 = GUICtrlCreatePic("C:\Users\Niklas_Neu\Desktop\Cs95kABG.jpeg", 0, -8, 617, 449)
$Platin = GUICtrlCreateButton ( "Hier mal ein Bild zu den Platin Belohnungen), 160, 160, 121, 33 )
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1

$msg = GUIGetMsg
   Select
	  Case $GUI_EVENT_CLOSE
			Exit


	  Case $msg = $Platin
		 Case $Platin = SplashImageOn ( "Platin Geschenke", "C:\Users\Niklas_Neu\Desktop\Cs95kABG.jpeg"[, 400, 400 )

   EndSelect




WEnd
Hisanobu is offline  
Old 11/10/2014, 18:36   #203
 
alpines's Avatar
 
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
Und du behauptest das die Basics nicht an dir vorbeigegangen sind...
alpines is offline  
Old 11/10/2014, 18:40   #204

 
Hisanobu's Avatar
 
elite*gold: 332
Join Date: Jun 2011
Posts: 277
Received Thanks: 184
Ja okay vielleicht ein bisschen, aber hilf mir doch jetzt einfach bin schon dabei das ganze TuT auf Wiki durchzulesen

Mich interessiert jetzt wo mein dummheits Fehler liegt
Hisanobu is offline  
Old 11/10/2014, 19:11   #205
 
alpines's Avatar
 
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
Quote:
Case $GUI_EVENT_CLOSE
Exit


Case $msg = $Platin
...
alpines is offline  
Old 11/10/2014, 21:24   #206


 
Lawliet's Avatar
 
elite*gold: 2
Join Date: Jul 2009
Posts: 14,456
Received Thanks: 4,685
Diese Fragen bitte stellen
Lawliet is offline  
Old 11/15/2014, 13:30   #207
 
cяαzуℓυмι's Avatar
 
elite*gold: 1
Join Date: May 2012
Posts: 287
Received Thanks: 39
Quote:
Originally Posted by Hisanobu View Post
Hey hab mal ne Frage will das beim klicken des Buttons das Bild öffnet, aber irgendwas stimmt in dem Script ihr denkt wsl bin zu blöd xD, aber arbeite erst seit heute mit AutoIt. Angeblich liegt der Fehler bei $Platin = GUICtrlCreateButton

Hier ist mal mein Code:

Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("", 603, 421, 196, 130)
$Alchemie = GUICtrlCreateButton("Alchemie", 16, 112, 121, 33)
$PvPRumble = GUICtrlCreateButton("PvPRumble", 16, 160, 121, 33)
$Dungeons = GUICtrlCreateButton("Dungeons", 16, 208, 121, 33)
$Wissenswertes = GUICtrlCreateButton("Wissenswertes", 16, 256, 121, 33)
$Giants = GUICtrlCreateButton("Giants", 16, 304, 121, 33)
$Hexen = GUICtrlCreateButton("Hexen", 16, 352, 121, 33)
$Valen = GUICtrlCreateButton("Valen", 16, 16, 121, 33)
$Pic1 = GUICtrlCreatePic("C:\Users\Niklas_Neu\Desktop\Cs95kABG.jpeg", 0, -8, 617, 449)
$Platin = GUICtrlCreateButton ( "Hier mal ein Bild zu den Platin Belohnungen), 160, 160, 121, 33 )
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1

$msg = GUIGetMsg
   Select
	  Case $GUI_EVENT_CLOSE
			Exit


	  Case $msg = $Platin
		 Case $Platin = SplashImageOn ( "Platin Geschenke", "C:\Users\Niklas_Neu\Desktop\Cs95kABG.jpeg"[, 400, 400 )

   EndSelect




WEnd
1. $Platin haste Klammer und " vertauscht.

2. Mach nen Switch draus und dann nur Case $Platin, so wie man es normal auch macht :P
cяαzуℓυмι is offline  
Old 11/17/2014, 20:10   #208
 
elite*gold: 0
Join Date: Oct 2014
Posts: 7
Received Thanks: 0
How can I make the autoit program self copy add feature ?

How can I make the autoit program self copy add feature ?

I want to copy itself %temp% . and How do I add itself to startup ?

I need codes: self copy and self add startup.

thankss
zorlar is offline  
Old 11/18/2014, 18:01   #209
 
cяαzуℓυмι's Avatar
 
elite*gold: 1
Join Date: May 2012
Posts: 287
Received Thanks: 39
Quote:
Originally Posted by zorlar View Post
How can I make the autoit program self copy add feature ?

I want to copy itself %temp% . and How do I add itself to startup ?

I need codes: self copy and self add startup.

thankss
Just get the exe from the inet and put it into autostart.
cяαzуℓυмι is offline  
Old 11/18/2014, 20:59   #210
 
alpines's Avatar
 
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
Quote:
Originally Posted by cяαzуℓυмι View Post
Just get the exe from the inet and put it into autostart.
What if the user has no internet? The person who requested the code probably wants to code a self reproducing virus so please don't support him/her.
alpines is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
AutoIt Script Requests
07/31/2008 - Dekaron - 10 Replies
Meh...bored with my scripts atm (releasing another tomorrow...), so I'm gonna ask you all what you want in a script. Post your ideas here.



All times are GMT +1. The time now is 21:45.


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.