|
You last visited: Today at 06:16
Advertisement
[Beginner] AutoIt
Discussion on [Beginner] AutoIt within the AutoIt forum part of the Coders Den category.
01/19/2013, 13:32
|
#1
|
elite*gold: 0
Join Date: Dec 2011
Posts: 63
Received Thanks: 22
|
[Beginner] AutoIt
Hi all epvp mermbers..
I need a little help.. I am very beginner in AutoIt and i want to know something.. 
How i make to send a key like "q" and then stop?
Is it good:
If it's good how i stop it?
If it's not good how it is the code pls help.
Thanks!
|
|
|
01/19/2013, 13:42
|
#2
|
elite*gold: 0
Join Date: Aug 2011
Posts: 442
Received Thanks: 78
|
Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 236, 78, 192, 124)
$Notepad = GUICtrlCreateButton("Notepad", 16, 32, 89, 25)
$Close = GUICtrlCreateButton("Close", 120, 32, 97, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Notepad
Run(@WindowsDir & "\notepad.exe", "", @SW_MAXIMIZE)
Case $Close
Exit
EndSwitch
WEnd
|
|
|
01/19/2013, 17:50
|
#3
|
elite*gold: 0
Join Date: Dec 2011
Posts: 63
Received Thanks: 22
|
Quote:
Originally Posted by logical691
Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 236, 78, 192, 124)
$Notepad = GUICtrlCreateButton("Notepad", 16, 32, 89, 25)
$Close = GUICtrlCreateButton("Close", 120, 32, 97, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Notepad
Run(@WindowsDir & "\notepad.exe", "", @SW_MAXIMIZE)
Case $Close
Exit
EndSwitch
WEnd
|
Thanks but i said it wrong srry.
I was meant to say when i press that button go to a specified page like  .
Like this:
Code:
ShellExecute("www.google.com")
But i want that a button do that.
Srry 4 my bad english and thanks.
|
|
|
01/19/2013, 18:16
|
#4
|
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,255
|
PHP Code:
#include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 236, 78, 192, 124) $google= GUICtrlCreateButton("google", 16, 32, 89, 25) $Close = GUICtrlCreateButton("Close", 120, 32, 97, 25) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ###
While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $google ShellExecute("www.google.com") Case $Close Exit EndSwitch WEnd
where is ur problem?
|
|
|
01/19/2013, 18:27
|
#5
|
elite*gold: 0
Join Date: Dec 2011
Posts: 63
Received Thanks: 22
|
Thanks that's what i wanted.;]
Edit: How i make to send a key like "q" and then stop?
Is it good:
If yes how i stop it?
If it's not good then please help me!
|
|
|
01/19/2013, 19:05
|
#6
|
elite*gold: 1
Join Date: Jan 2013
Posts: 372
Received Thanks: 99
|
No. $google is the button. If you want to go to elitepvpers just change the text in the " " where www google com is written.
|
|
|
01/19/2013, 19:17
|
#7
|
elite*gold: 0
Join Date: Dec 2011
Posts: 63
Received Thanks: 22
|
Yeah i got it i think..Didn't see the first time  .
It's like that right:
Code:
$Button1 = GUICtrlCreateButton("Google", 40, 16, 91, 33) ;if this is the button .
Case $Button1
ShellExecute("www.google.com") ;i am right?
|
|
|
01/20/2013, 01:45
|
#8
|
elite*gold: 95
Join Date: May 2011
Posts: 982
Received Thanks: 189
|
dont ask that much, just try it  if it fails try different way, and then ask for help.
if it works, be happy
|
|
|
01/20/2013, 07:13
|
#9
|
elite*gold: 0
Join Date: Dec 2011
Posts: 63
Received Thanks: 22
|
Quote:
Originally Posted by butter123
dont ask that much, just try it  if it fails try different way, and then ask for help.
if it works, be happy 
|
Tried with:
Code:
Send("q") ;don't worked,also tried
HotKeySet("q")
Send{"q"}
What i want to do is to send keys to a webbrowser page.. If it is possible ii need some help can't find the right code...
|
|
|
01/20/2013, 10:27
|
#10
|
elite*gold: 1
Join Date: Jan 2013
Posts: 372
Received Thanks: 99
|
Use google!
PHP Code:
HotKeySet ("z", "Start")
HotKeySet ("y", "Start2")
Func Start()
Send ("{BACKSPACE}")
Send ("y")
EndFunc
Func Start2()
Send ("{BACKSPACE}")
Send ("z")
EndFunc
|
|
|
01/20/2013, 10:34
|
#11
|
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,255
|
Quote:
Originally Posted by Mr. Cube
Use google!
PHP Code:
HotKeySet ("z", "Start") HotKeySet ("y", "Start2")
Func Start() Send ("{BACKSPACE}") Send ("y") EndFunc
Func Start2() Send ("{BACKSPACE}") Send ("z") EndFunc
|
this is totally fail.
if u have a hotkey started with "y" and u send a text with this letter it will call your funktion again.
your code will send "BACKSPACE" permanently
DJ_Freeze
just read some tutorials.
|
|
|
01/20/2013, 12:46
|
#12
|
elite*gold: 0
Join Date: Aug 2011
Posts: 442
Received Thanks: 78
|
Quote:
Originally Posted by omer36
this is totally fail.
your code will send "BACKSPACE" permanently
|
Actually his code will send nothing.
|
|
|
01/20/2013, 12:51
|
#13
|
elite*gold: 0
Join Date: Dec 2011
Posts: 63
Received Thanks: 22
|
Quote:
Originally Posted by omer36
this is totally fail.
if u have a hotkey started with "y" and u send a text with this letter it will call your funktion again.
your code will send "BACKSPACE" permanently
DJ_Freeze
just read some tutorials.
|
Thanks but i can't really find some good ones.
There are lots but i can't german..And google translator fail..
At moment im looking at functions and experiment with them, but im getting a little angry because i can't get them to work..
A simple function like this..:
Code:
MouseClick ( "left" [, 422, 224 [, 2 [, 20]]] ) ;can't get it to work..
;i know such a simple function but i don't see the problem
;i want a button do that if someone know help me pls
|
|
|
01/20/2013, 16:51
|
#14
|
elite*gold: 0
Join Date: Aug 2011
Posts: 442
Received Thanks: 78
|
Dj there are still tutorials in english its where i learnt my basics of autoit and made scripts that work autoit has english tutorials on there website basic but you get the gist
Ps its:
Mouseclick("left", 442, 224, 2) ;button, x, y, button clicks
I never used speed. (your 20)
Ps there is also a tutorial here:  which is a sticky and also a tutorial here:
So i dont see how you an say there are none n english.
|
|
|
01/20/2013, 17:06
|
#15
|
elite*gold: 0
Join Date: Dec 2011
Posts: 63
Received Thanks: 22
|
Thanks..huh..
But i want to learn to create a hack for online game.
And im still searching for a good tutorial step by step...
|
|
|
 |
|
Similar Threads
|
[Help] Beginner at Autoit
08/07/2012 - AutoIt - 7 Replies
Ok so this tool attached is a keypresser for a game called silkroad online. It works fine on the original game, but I am wanting to try it on a private server. The only difference I saw in the source codes (open source made with autoit) is the task name in the task manager. In the normal game the task is "sro_client" In the private server, the name is MythClient. So I renamed sro_client to MythClient and saved the 3 au3 files but I don't know what to do next. How do you compile those 3 files...
|
[S] GE7 beginner acc
07/08/2012 - Browsergames Trading - 0 Replies
hi everybody,
GE7 acc
29 speed gen
19 lf3
1 lf2 ( few mp1 )
37 bo1 shield
slot cpu 3
rep bot 4
|
Helft mal einem absolutem Beginner bei AutoIt
06/09/2010 - AutoIt - 6 Replies
Hallo ich habe gestern autoit mir ein bisschen angeschaut und möchte nun einen S4League-Einlogg-Bot schreiben... Also schreibe ich:
$username = InputBox ( "Username" , "Gib deinen Username ein " )
$password = InputBox ( "Password" , "Gib dein Passwort ein " )
Run ( "patcher_s4.exe" , "G:\Spiele\alaplaya\S4League" )Weil man ja den patcher bei S4 zuerst starten muss. Doch wenn ich nun das Script ausführe startet der Patcher nicht...
Ich bin ein absoluter beginner... kann jemand helfen? :)
|
beginner need help ==
08/29/2009 - Dragonica - 3 Replies
why i keep got kick about 10-20 min in game .. ?? does the cd hack work?how can i bot in mission room??:handsdown: wat use for injection does it important?
|
help a beginner
08/02/2008 - World of Warcraft - 3 Replies
Can somebody upload for me flyhack and a tutorial in english plz!
|
All times are GMT +1. The time now is 06:17.
|
|