Requests - AutoIt only

10/16/2014 16:54 Reskal#196
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 ?
10/17/2014 21:08 KDeluxe#197
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.
10/23/2014 09:07 Reskal#198
Vielen Dank.
10/24/2014 13:15 Xorex#199
Can someone help me with an archeage autoit script? Please pm.
11/01/2014 20:39 fikkifuk#200
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
11/08/2014 14:05 cяαzуℓυмι#201
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
11/10/2014 18:34 Hisanobu#202
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
11/10/2014 18:36 alpines#203
Und du behauptest das die Basics nicht an dir vorbeigegangen sind...
11/10/2014 18:40 Hisanobu#204
Ja okay vielleicht ein bisschen, aber hilf mir doch jetzt einfach bin schon dabei das ganze TuT auf Wiki durchzulesen :D

Mich interessiert jetzt wo mein dummheits Fehler liegt
11/10/2014 19:11 alpines#205
Quote:
Case $GUI_EVENT_CLOSE
Exit


Case $msg = $Platin
...
11/10/2014 21:24 Lawliet#206
Diese Fragen bitte [Only registered and activated users can see links. Click Here To Register...] stellen ;)
11/15/2014 13:30 cяαzуℓυмι#207
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
11/17/2014 20:10 zorlar#208
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
11/18/2014 18:01 cяαzуℓυмι#209
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.
11/18/2014 20:59 alpines#210
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.