Jump to content



Photo

How to speed up SEND?


  • Please log in to reply
20 replies to this topic

#1 lawonama

lawonama

    Wayfarer

  • Active Members
  • Pip
  • 54 posts

Posted 31 July 2012 - 11:23 PM

So I have this command:

Send("hello!")

Can I make it, that in 1 second it would said 100 times Send("hello!") ??





#2 czardas

czardas

  • Active Members
  • PipPipPipPipPipPip
  • 5,063 posts

Posted 31 July 2012 - 11:28 PM

First look for SendKeyDelay in the help file. Secondly don't rely on using Send (depending on circumstance).

#3 BrewManNH

BrewManNH

    באָבקעס מיט קודוצ׳ה

  • MVPs
  • 6,834 posts

Posted 01 August 2012 - 01:16 AM

Thirdly, if this goes towards making an auto-spammer for some game don't expect too much help. :D
  • elektron likes this

How to ask questions the smart way!

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.

Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.

_FileGetProperty - Retrieve the properties of a file SciTE Toolbar - A toolbar demo for use with the SciTE editorGUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.

GUIToolTip UDF Demo - Demo script to show how to use the GUIToolTip UDF to create and use customized tooltips.

Posted Image


#4 lawonama

lawonama

    Wayfarer

  • Active Members
  • Pip
  • 54 posts

Posted 01 August 2012 - 11:16 AM

Thirdly, if this goes towards making an auto-spammer for some game don't expect too much help. Posted Image


I know the forum rules, and I know what I'm asking for. This isn't for a game neither is it a spam bot.
I just want-to learn everything possible about this. Like 100 times in one second was just something.
I might need 10 times in one second or something like that.

#5 czardas

czardas

  • Active Members
  • PipPipPipPipPipPip
  • 5,063 posts

Posted 01 August 2012 - 11:43 AM

There was a similar question asked yesterday which appeared to be about bypassing anti-bot login proceedures. I think that's why BrewManNH was warning you against anything like that. This question seems normal enough to me though, just avoid anything like that and people will glady help you. :)

Edited by czardas, 01 August 2012 - 11:43 AM.


#6 lawonama

lawonama

    Wayfarer

  • Active Members
  • Pip
  • 54 posts

Posted 01 August 2012 - 12:22 PM

I quit scripting for a very long time and now I want to re-start it.. So I really want-to learn it.
I couoldn't understand anything about the "SendKeyDelay" though.. Is there any example or something.. Please/

#7 kaotkbliss

kaotkbliss

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 2,106 posts

Posted 01 August 2012 - 01:00 PM

AutoItSetOption ( "SendKeyDelay" , 0 )

For $i = 1 To 100 Step 1
Send("hello")
Next

I think that's about as fast as it will get as SetOption 0 removes any delay
Posted Image010101000110100001101001011100110010000001101001011100110010000001101101011110010010000001110011011010010110011100100001My first project Allin1 Program launcherBill CalculatorGot <Insert problem here>?There's an AutoIt script for that!

#8 Mechaflash

Mechaflash

    Sons of Anarchy

  • Active Members
  • PipPipPipPipPipPip
  • 1,352 posts

Posted 01 August 2012 - 01:24 PM

AutoItSetOption can be written as Opt as well

Opt("SendKeyDelay", 0) For $i = 1 To 100 ; Step 1 isn't necessary as that is the default behavior when no 'step' value is defined.     Send("hello") Next

“Hello, ladies, look at your man, now back to me, now back at your man, now back to me. Sadly, he isn’t me, but if he stopped using ladies scented body wash and switched to Old Spice, he could smell like he’s me. Look down, back up, where are you? You’re on a boat with the man your man could smell like. What’s in your hand, back at me. I have it, it’s an oyster with two tickets to that thing you love. Look again, the tickets are now diamonds. Anything is possible when your man smells like Old Spice and not a lady. I’m on a horse.”

#9 lawonama

lawonama

    Wayfarer

  • Active Members
  • Pip
  • 54 posts

Posted 01 August 2012 - 02:05 PM

AutoItSetOption ( "SendKeyDelay" , 0 )

For $i = 1 To 100 Step 1
Send("hello")
Next

I think that's about as fast as it will get as SetOption 0 removes any delay


Can't this be even FASTER ?

#10 PianothShaveck

PianothShaveck

    Seeker

  • Normal Members
  • 4 posts

Posted 01 August 2012 - 02:08 PM

Can't this be even FASTER ?

There is no delay, so I think that it should be the maximum speed.

#11 Venix

Venix

    Adventurer

  • Active Members
  • PipPip
  • 131 posts

Posted 01 August 2012 - 02:11 PM

Can't this be even FASTER ?

Already seems fast enough to me? What do you need to make that would need to send keys so many times in a small amount of time. There are probs alternative solutions.
Posted Image

#12 JLogan3o13

JLogan3o13

    Down to 98

  • MVPs
  • 2,085 posts

Posted 01 August 2012 - 02:22 PM

This finished for me in just over 3 seconds. I would concur with Venix, if you have a specific problem you're trying to overcome, explain what you are trying to do. There may be other ways to give you the result you're looking for.
  • czardas likes this
J.I spent 10 minutes reviewing code and thinking "What kind of drugs is this guy on?" before realizing it was something I wrote.My Scripts:Include Source with Compiled Script, Disk Maintenance for Windows XP, "Deal-A-Day" Sites, SCCM 2007 Front End, Windows Firewall UDF

#13 JohnQSmith

JohnQSmith

    Polymath

  • Active Members
  • PipPipPipPip
  • 226 posts

Posted 01 August 2012 - 02:26 PM

Can't this be even FASTER ?

I haven't tried it, but how about...
AutoItSetOption ( "SendKeyDelay" , 0 ) $hello = "" For $i = 1 To 100    $hello = $hello & "hello" Next Send($hello)


#14 Mechaflash

Mechaflash

    Sons of Anarchy

  • Active Members
  • PipPipPipPipPipPip
  • 1,352 posts

Posted 01 August 2012 - 02:28 PM

You want faster?
Opt("SendKeyDelay", 0) Opt("WinTitleMatchMode", 2) ClipPut("hello") $sWindowTitle = "Put window title here." WinActivate($sWindowTitle) For $i = 1 To 100    ControlSend($sWindowTitle, "", "", "^v") Next


:bike:

tested both the previous post and this one in notepad and there's about a 1/2 second difference XD

Edited by mechaflash213, 01 August 2012 - 02:32 PM.

“Hello, ladies, look at your man, now back to me, now back at your man, now back to me. Sadly, he isn’t me, but if he stopped using ladies scented body wash and switched to Old Spice, he could smell like he’s me. Look down, back up, where are you? You’re on a boat with the man your man could smell like. What’s in your hand, back at me. I have it, it’s an oyster with two tickets to that thing you love. Look again, the tickets are now diamonds. Anything is possible when your man smells like Old Spice and not a lady. I’m on a horse.”

#15 JohnQSmith

JohnQSmith

    Polymath

  • Active Members
  • PipPipPipPip
  • 226 posts

Posted 01 August 2012 - 02:32 PM

Or even faster... combine mine with the code from mechaflash213.

#16 lawonama

lawonama

    Wayfarer

  • Active Members
  • Pip
  • 54 posts

Posted 01 August 2012 - 03:23 PM

Nevermind it worked.. But can't it be even MORE faster?

Edited by lawonama, 01 August 2012 - 03:26 PM.


#17 Mechaflash

Mechaflash

    Sons of Anarchy

  • Active Members
  • PipPipPipPipPipPip
  • 1,352 posts

Posted 01 August 2012 - 03:29 PM

Maybe This Guy can help it go faster.

Here's their contact information and corporate headquarters location.

Just tell Ginni that you want to borrow him for a day or two.

Edited by mechaflash213, 01 August 2012 - 03:55 PM.

“Hello, ladies, look at your man, now back to me, now back at your man, now back to me. Sadly, he isn’t me, but if he stopped using ladies scented body wash and switched to Old Spice, he could smell like he’s me. Look down, back up, where are you? You’re on a boat with the man your man could smell like. What’s in your hand, back at me. I have it, it’s an oyster with two tickets to that thing you love. Look again, the tickets are now diamonds. Anything is possible when your man smells like Old Spice and not a lady. I’m on a horse.”

#18 BrewManNH

BrewManNH

    באָבקעס מיט קודוצ׳ה

  • MVPs
  • 6,834 posts

Posted 01 August 2012 - 03:57 PM

Nevermind it worked.. But can't it be even MORE faster?

Simple answer, NO it can't be that much faster. It takes time to send the characters to a window, the window takes time accepting them, this all adds up to a delay. It's similar to a propagation delay in a network or electronic circuit. Even though the electrons are speeding along at nearly the speed of light, the delay introduced by the circuitry is going to make things take longer than it would take to send it by other means, such as a fiber optic cable has a VERY slight propagation delay but the circuits needed to translate what was sent so other equipment can understand it introduces a larger delay.

How to ask questions the smart way!

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.

Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.

_FileGetProperty - Retrieve the properties of a file SciTE Toolbar - A toolbar demo for use with the SciTE editorGUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.

GUIToolTip UDF Demo - Demo script to show how to use the GUIToolTip UDF to create and use customized tooltips.

Posted Image


#19 Bowmore

Bowmore

    Feinschmecker

  • Active Members
  • PipPipPipPipPipPip
  • 781 posts

Posted 01 August 2012 - 04:57 PM

Nevermind it worked.. But can't it be even MORE faster?

Yes you can get it to go a little bit faster if you are prepared to spend a few thousand of the fastest PC availble.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning."- Rick Cook

#20 YogiBear

YogiBear

    deFinitely not yoUr average bear!

  • MVPs
  • 9,864 posts

Posted 01 August 2012 - 05:25 PM

Nevermind it worked.. But can't it be even MORE faster?


<_< bollockspeak is being detected....




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users