|
You last visited: Today at 21:45
Advertisement
Requests - AutoIt only
Discussion on Requests - AutoIt only within the AutoIt forum part of the Coders Den category.
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 ?
|
|
|
10/17/2014, 21:08
|
#197
|
elite*gold: 0
Join Date: Mar 2009
Posts: 7,260
Received Thanks: 33,149
|
Vier Fehler: - Hotkeys sollte man nur in Kleinbuchstaben angeben.
- 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")
- 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")
- 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
|
#198
|
elite*gold: 0
Join Date: Sep 2009
Posts: 3
Received Thanks: 0
|
Vielen Dank.
|
|
|
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.
|
|
|
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
|
|
|
11/08/2014, 14:05
|
#201
|
elite*gold: 1
Join Date: May 2012
Posts: 287
Received Thanks: 39
|
Quote:
Originally Posted by fikkifuk
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
|
#202
|
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
|
|
|
11/10/2014, 18:36
|
#203
|
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
|
Und du behauptest das die Basics nicht an dir vorbeigegangen sind...
|
|
|
11/10/2014, 18:40
|
#204
|
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
|
|
|
11/10/2014, 19:11
|
#205
|
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
|
Quote:
Case $GUI_EVENT_CLOSE
Exit
Case $msg = $Platin
|
...
|
|
|
11/10/2014, 21:24
|
#206
|
elite*gold: 2
Join Date: Jul 2009
Posts: 14,456
Received Thanks: 4,685
|
Diese Fragen bitte  stellen
|
|
|
11/15/2014, 13:30
|
#207
|
elite*gold: 1
Join Date: May 2012
Posts: 287
Received Thanks: 39
|
Quote:
Originally Posted by Hisanobu
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
|
#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
|
|
|
11/18/2014, 18:01
|
#209
|
elite*gold: 1
Join Date: May 2012
Posts: 287
Received Thanks: 39
|
Quote:
Originally Posted by zorlar
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
|
#210
|
elite*gold: 60
Join Date: Aug 2009
Posts: 2,256
Received Thanks: 815
|
Quote:
Originally Posted by cяαzуℓυмι
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.
|
|
|
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.
|
|