mooboo Posted April 24, 2004 Posted April 24, 2004 1. how do i get autoit to type faster in windows xp? i set the key delay to 1 but. it. still. goes. really. slow. 2. is there a way to run a script in only a certain window? allowing scripts to be run in a window that is currently minimized, but is still clicking away and typing in it.
Developers Jos Posted April 24, 2004 Developers Posted April 24, 2004 1. how do i get autoit to type faster in windows xp? i set the key delay to 1 but. it. still. goes. really. slow.2. is there a way to run a script in only a certain window? allowing scripts to be run in a window that is currently minimized, but is still clicking away and typing in it.1. does this also happen when typing characters to notepad ??2. ControlClick / ControlSend.. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
mooboo Posted April 24, 2004 Author Posted April 24, 2004 1. yes, it does 2. so using controlclick and control send will work in a minimized window??
Developers Jos Posted April 24, 2004 Developers Posted April 24, 2004 (edited) 1. yes, it does 2. so using controlclick and control send will work in a minimized window??1. strange ... could you post the portion thats slow... 2. yes... try this to demo.... run("notepad.exe") sleep(2000) WinSetState('Untitled - Notepad','',@SW_HIDE) sleep(500) controlsend('Untitled - Notepad','','Edit1','this is typed while minimised') sleep(500) WinSetState('Untitled - Notepad','',@SW_SHOW ) Edited April 24, 2004 by JdeB SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
mooboo Posted April 24, 2004 Author Posted April 24, 2004 (edited) ok, a little info... im adding on to my diablo 2 spambot...1. only slow in d22. control... works in notepad but not in diablo 2... i tried this, whats wrong?winactivate ("Diablo II", "")controlenable ("Diablo II", "", "Edit")controlfocus ("Diablo II", "", "Edit")controlsend ("Diablo II", "", "Edit", "Account")At first it was just the focus and the send, then I kept trying to add more to try and get it to work. It doesnt do anything tho. it activates the window, script runs for a second, then it just quits. should i add some rests or something?(please note that it isnt because there is not a place to type text, there is. the text just doesnt type in.) Edited April 24, 2004 by mooboo
mooboo Posted April 24, 2004 Author Posted April 24, 2004 so i dont get any help becuase its a spambot? it was just for fun. .
Developers Jos Posted April 24, 2004 Developers Posted April 24, 2004 At first it was just the focus and the send, then I kept trying to add more to try and get it to work. It doesnt do anything tho. it activates the window, script runs for a second, then it just quits. should i add some rests or something?Send just types the characters to the window/field that has the Focus.ControlSend will send the characters to the specified control.Is your control called EDIT that you want to send the character too ?? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
mooboo Posted April 24, 2004 Author Posted April 24, 2004 Send just types the characters to the window/field that has the Focus.ControlSend will send the characters to the specified control.Is your control called EDIT that you want to send the character too ??So, I don't have to do like Controlsend every time, just the normal Send command??? Sounds easy enough, ill post back after i try it!
mooboo Posted April 24, 2004 Author Posted April 24, 2004 still doesnt work.... is it just not gonna work for diablo 2? and i dont understand the whole deal with the "Edit1" thing at the end. What does that mean? Could that be why it isnt working?
Developers Jos Posted April 24, 2004 Developers Posted April 24, 2004 (edited) Just RTFH a bit ... there's a good explanation in the helpfile on it .... look for "Using AutoIt/Autoit windows spy" ..... Edited April 24, 2004 by JdeB SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Valik Posted April 24, 2004 Posted April 24, 2004 It's a game, not Windows. It doesn't have controls in the conventional sense that Windows does. Control functions will not work. You will have to have the game open and running (Can't be minimized or hidden, it must have focus), you'll have to manually (By manually, I mean automated mouse clicks) make sure the cursor is in the correct location before you start using Send to send keystrokes.(Look Larry, I posted in a game-related thread all helpful like. )
scriptkitty Posted April 24, 2004 Posted April 24, 2004 To make AutoIt send more reliable, it sends a bit differently in the newer versions. If you can find a version before the keydowndelay, it sends a lot faster. I have a game I send text to, cause I am a lazy typer, and if I send it with autoit, it types about as fast as I can, but if I use the old version, it types 255 characters in the blink of an eye. I need the new version for a ton of things, but I made a simple script to send the contents of the clipboard to the program, and compiled it, then re-installed the newest version. Worked like a charm for me. In every program I have tried, the old send works faster than the new one, in some programs they are close, and in some the new send (even with keydowndelay and send at 0 they are about 30cps), however there are a few programs that the old send looses a few characters every now and then, so I am really glad for how it is now. AutoIt3, the MACGYVER Pocket Knife for computers.
mooboo Posted April 24, 2004 Author Posted April 24, 2004 (edited) lol... nvm about this... new project! close this thread or do whatever... thanks for all the support guys!! I got more help than i expected. if you want to check out my site, its pretty cool, we are lookin for administrators... err... moderators.... www.clananp.com Edited April 24, 2004 by mooboo
Valik Posted April 24, 2004 Posted April 24, 2004 To make AutoIt send more reliable, it sends a bit differently in the newer versions. If you can find a version before the keydowndelay, it sends a lot faster. I have a game I send text to, cause I am a lazy typer, and if I send it with autoit, it types about as fast as I can, but if I use the old version, it types 255 characters in the blink of an eye.I need the new version for a ton of things, but I made a simple script to send the contents of the clipboard to the program, and compiled it, then re-installed the newest version.Worked like a charm for me. In every program I have tried, the old send works faster than the new one, in some programs they are close, and in some the new send (even with keydowndelay and send at 0 they are about 30cps), however there are a few programs that the old send looses a few characters every now and then, so I am really glad for how it is now.Have you tried changing the attach mode? SendAttachMode or something like that in the help file. I think one of those options is the same as the old versions used...
Administrators Jon Posted April 25, 2004 Administrators Posted April 25, 2004 To make AutoIt send more reliable, it sends a bit differently in the newer versions. If you can find a version before the keydowndelay, it sends a lot faster. I have a game I send text to, cause I am a lazy typer, and if I send it with autoit, it types about as fast as I can, but if I use the old version, it types 255 characters in the blink of an eye.I need the new version for a ton of things, but I made a simple script to send the contents of the clipboard to the program, and compiled it, then re-installed the newest version.Worked like a charm for me. In every program I have tried, the old send works faster than the new one, in some programs they are close, and in some the new send (even with keydowndelay and send at 0 they are about 30cps), however there are a few programs that the old send looses a few characters every now and then, so I am really glad for how it is now.I'll check the code, I can't remember if pauses of 0 still do a Sleep(0) which would be slower than no pause at all. Or I could make -1 be accepted as "really no pause" and leave 0 as it is. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/
jpm Posted April 25, 2004 Posted April 25, 2004 I'll check the code, I can't remember if pauses of 0 still do a Sleep(0) which would be slower than no pause at all. Or I could make -1 be accepted as "really no pause" and leave 0 as it is.Jon If you do something can we have back a value for sleeping for ever as the old sleep(0)?
Administrators Jon Posted April 25, 2004 Administrators Posted April 25, 2004 (edited) Actually, just checked the code and -1 for SendKeyDelay and SendKeyDownDelay already misses out the sleep completely. It was just undocumented. Edited April 25, 2004 by Jon Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/
Administrators Jon Posted April 25, 2004 Administrators Posted April 25, 2004 Jon If you do something can we have back a value for sleeping for ever as the old sleep(0)? Sleep(0) never used to wait forever. Iit was a bug that waited for a random and undefined amount of time that just happened to be in most cases so long that it appeared to wait forever.... Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/
jpm Posted April 25, 2004 Posted April 25, 2004 Sleep(0) never used to wait forever. Iit was a bug that waited for a random and undefined amount of time that just happened to be in most cases so long that it appeared to wait forever....Bad luck I was use to the bug. But it is not a problem to put 2147483648
Lilla Posted April 26, 2004 Posted April 26, 2004 I found a workaround, use cut and paste, it's very fast... EXAMPLE: $var=$var & 'AutoIt v3 is a BASIC-like scripting language designed for automating ' & @crlf $var=$var & 'the Windows GUI.It uses a combination of simulated keystrokes, mouse' & @crlf $var=$var & 'movement and window/control manipulation in order to automate tasks in a way not' & @crlf Run('Notepad.exe' , '', @SW_MAXIMIZE) winwaitactive('Untitled - Notepad') Winactivate('Untitled - Notepad') ClipPut($var) ;copy to clipboard Sleep(100) Send('^v') ;paste from clipboard Sleep(100)
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