inloveofrapo Posted May 21, 2008 Posted May 21, 2008 Well, how do i make, so for example i press a key ( Like shift + alt + h ) then script types : "hi this is my first script i ever made " ? when i make more than 1 sence, i also want to know how to open a new sence ( Enter ).. I appriciate the help, please give me some !
cppman Posted May 21, 2008 Posted May 21, 2008 (edited) Well, how do i make, so for example i press a key ( Like shift + alt + h )then script types :"hithis is myfirst scripti ever made " ? when i make more than 1 sence, i also want to know how to open a new sence ( Enter )..I appriciate the help, please give me some !HotKeySet("+!h", "SendHi") While(1) Sleep(100) WEnd Func SendHi() Send("hi this is my first script i ever made") EndFuncLook up, Send and HotKeySet in the help file. Edited May 21, 2008 by cppman Miva OS Project
inloveofrapo Posted May 21, 2008 Author Posted May 21, 2008 (edited) HotKeySet("+!h", "SendHi") While(1) Sleep(100) WEnd Func SendHi() Send("hi this is my first script i ever made") EndFuncLook up, Send and HotKeySet in the help file. How do i make it press enter asswell ? And how do i make more than 1 sence?Btw, when i set all this up you typed there, in a script file, and try to use it, it types that and so on.. but dosnt type enter ( therefor i ask you how to make enter too )And after it finished type, its like its still pressing " Shift " , why it does that? Edited May 21, 2008 by inloveofrapo
evilertoaster Posted May 21, 2008 Posted May 21, 2008 (edited) Send Command (if zero flag) ::: Resulting Keypress {!} ::: ! {#} ::: # {+} ::: + {^} ::: ^ {{} ::: { {}} ::: } {SPACE} ::: SPACE {ENTER} ::: ENTER key on the main keyboard {ALT} ::: ALT Edited May 21, 2008 by evilertoaster
inloveofrapo Posted May 21, 2008 Author Posted May 21, 2008 How do i make it press enter asswell ? And how do i make more than 1 sence?Btw, when i set all this up you typed there, in a script file, and try to use it, it types that and so on.. but dosnt type enter ( therefor i ask you how to make enter too )And after it finished type, its like its still pressing " Shift " , why it does that?I dont get it.Where do i find the help function about this ?Im really new at this scripting, so do not flame me because im a newb to this ^^I really need the help and appriciate it !
Drew Posted May 21, 2008 Posted May 21, 2008 Help file. Anything he just said... you can probably enter it in the search in the helpfile and it will bring somethings up.
inloveofrapo Posted May 22, 2008 Author Posted May 22, 2008 Help file.Anything he just said... you can probably enter it in the search in the helpfile and it will bring somethings up.Okay, i tried this what i could now.i triedsend{enter}{(Enter)}Send({Enter})but one of them worked.. What do i have to type exactly before it press enteR?
cppman Posted May 22, 2008 Posted May 22, 2008 (edited) You just add the {'s inside the text you are sending, and it will turn it into the real symbol/keypress. So if you want to simulate "enter/return" being pressed, you would do this. HotKeySet("+!h", "SendHi") While(1) Sleep(100) WEnd Func SendHi() Send("hi this is my first script i ever made{enter}") EndFunc Edited May 22, 2008 by cppman Miva OS Project
inloveofrapo Posted May 22, 2008 Author Posted May 22, 2008 (edited) You just add the {'s inside the text you are sending, and it will turn it into the real symbol/keypress. So if you want to simulate "enter/return" being pressed, you would do this. HotKeySet("+!h", "SendHi") While(1) Sleep(100) WEnd Func SendHi() Send("hi this is my first script i ever made{enter}") EndFunc Okay, thank you. It works. But still, i have to type alt + shift to avoid its still clicking alt/shift... What do i have to do so it dosnt hold shift/alt in ? edit And how do i make more than 1 func ? i mean : Func SendHi() Send(" xxx ") its based on lenght how much this can type.. But how do i make the " Second " sence of " Func " so it continue ? Edited May 22, 2008 by inloveofrapo
evilertoaster Posted May 22, 2008 Posted May 22, 2008 Func and EndFunc define a function- HotKeySet("+!h", "SendHi") HotKeySet("+!y", "SendYo") While(1) Sleep(100) WEnd Func SendHi() Send("hi this is my first script i ever made") EndFunc Func SendYo() Send("yo") EndFunc If you dont want to have to press alt+shift, you can jsut make it a single key- HotKeySet("h", "SendHi")
inloveofrapo Posted May 22, 2008 Author Posted May 22, 2008 Func and EndFunc define a function- HotKeySet("+!h", "SendHi") HotKeySet("+!y", "SendYo") While(1) Sleep(100) WEnd Func SendHi() Send("hi this is my first script i ever made") EndFunc Func SendYo() Send("yo") EndFunc If you dont want to have to press alt+shift, you can jsut make it a single key- HotKeySet("h", "SendHi") Okay thanks for this. but I also want to know. for example. if i make 1 func, and its too long, i cant just press enter, and continue.. Like : Func SendHi() Send("hi this is my first script i ever madee hfaduhfauhafduhfaduohfad uofua uohfaduohfdau -> now too long -> this is a new sence <- ( not in the first line/sence), and this i type here <- wont come in the ->Func Sendhi() ") Do you understand what i mean ?
evilertoaster Posted May 22, 2008 Posted May 22, 2008 (edited) Do you mean somthing like- Func SendHi() Send("hi this is my first script i ever made{enter}") Send("second line{enter}") Send("third line") EndFuncoÝ÷ Ù«¢+ÙÕ¹M¹!¤ ¤(M¹ ÅÕ½ÐíQ¡¥Ì¥ÌÉѡȱ½¹±¥¹°Í¼$ÅÕ½ÐìµÀì|(ÅÕ½Ðíɽ¥ÐÝ¥Ñ Ñ¡Õ¹Éͽɰ|°¡ÉÑȸÅÕ½Ðì¤)¹Õ¹ Edited May 22, 2008 by evilertoaster
inloveofrapo Posted May 22, 2008 Author Posted May 22, 2008 Do you mean somthing like- Func SendHi() Send("hi this is my first script i ever made{enter}") Send("second line{enter}") Send("third line") EndFuncoÝ÷ Ù«¢+ÙÕ¹M¹!¤ ¤(M¹ ÅÕ½ÐíQ¡¥Ì¥ÌÉѡȱ½¹±¥¹°Í¼$ÅÕ½ÐìµÀì|(ÅÕ½Ðíɽ¥ÐÝ¥Ñ Ñ¡Õ¹Éͽɰ|°¡ÉÑȸÅÕ½Ðì¤)¹Õ¹ Second line. God damnit. All thoose support to get here, really a nice site, and really, thank you people who have given me some support ! I really like this ! Good job folks !
inloveofrapo Posted May 22, 2008 Author Posted May 22, 2008 1 question more. I scripted one "spam" thing. But it types low. I got one from friend where he did it, but i cant open the script, he got a pass on it xd But his types much fastere. What i typed : HotKeyset("+!l", "SendLol") While(1) Sleep(100) WEnd Func Sendlol() Send("The sence") What and where do i have to type something so it gets fastere to type ?
PsaltyDS Posted May 22, 2008 Posted May 22, 2008 (edited) Func and EndFunc define a function-If you dont want to have to press alt+shift, you can jsut make it a single key-HotKeySet("h", "SendHi")Bad example because "h" is part of what is sent within the function, which triggers the hot key for "h", recursively calls the function again..., etc.But you knew that. Edited May 22, 2008 by PsaltyDS Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
inloveofrapo Posted May 22, 2008 Author Posted May 22, 2008 Bad example because "h" is part of what is sent within the function, which triggers the hot key for "h", recursively calls the function again..., etc.But you knew that. Yeah i found out of that ^^Need to know how to make this script type fastere, any1 know how to fix this ?
PsaltyDS Posted May 22, 2008 Posted May 22, 2008 Need to know how to make this script type fastere, any1 know how to fix this ?The Send functions have built-in delays that can be adjusted with the Opt() option function using SendKeyDelay and SendKeyDownDelay. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
inloveofrapo Posted May 22, 2008 Author Posted May 22, 2008 (edited) The Send functions have built-in delays that can be adjusted with the Opt() option function using SendKeyDelay and SendKeyDownDelay. Ah okay.So where i have to type it at this sence ?HotKeySet("+!h", "SendHi")While(2) Sleep(100)WEndFunc SendHi() Send("hi this is a try.") EndFunc Edited May 22, 2008 by inloveofrapo
PsaltyDS Posted May 22, 2008 Posted May 22, 2008 So where i have to type it at this sence ? Somewhere before your Send functions do this: Opt("SendKeyDelay", 1) Opt("SendKeyDownDelay", 1) Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
inloveofrapo Posted May 22, 2008 Author Posted May 22, 2008 Somewhere before your Send functions do this: Opt("SendKeyDelay", 1) Opt("SendKeyDownDelay", 1) Great, works, thanks for this support, i rlly like this
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now