nain93 Posted December 25, 2007 Share Posted December 25, 2007 (edited) Im want my script send a sentence when i press F11 i tried some things with : HotKeySet("{F11}", "autoadvertising") While 1 Sleep(10) WEnd Func autoadvertising() AutoItSetOption("SendKeyDelay", 20) Send("{ENTER} Runs hosted by channel: Clan Xnlg {ENTER}") EndFunc but its slow, i see it typing in my screen. I would like something which send this sentence like in 1shot if it possible. How i do that? Can Somebody help me plz? Edited December 25, 2007 by nain93 Link to comment Share on other sites More sharing options...
The Kandie Man Posted December 25, 2007 Share Posted December 25, 2007 (edited) @Everyone: For future reference, try not to use "plz" in any post, especially in the title. It's not cool and it just makes the poster look mentally challenged. Type "please" instead. AutoItSetOption("SendKeyDelay", 20) ProcessSetPriority ( @AutoItPID, 4 ) HotKeySet("{F11}", "autoadvertising") While 1 Sleep(1000) WEnd Func autoadvertising() Send("{ENTER} Runs hosted by channel: Clan Xnlg {ENTER}") EndFunc Try that, it should help. If it still runs a little slow, change the the second parameter of ProcessSetPriority to 5. - The Kandie Man ;-) EDIT: I normally don't help people like this, but since it is Christmas, I have been feeling particularly nice. I suddenly remember why I stopped now. Edited December 25, 2007 by The Kandie Man "So man has sown the wind and reaped the world. Perhaps in the next few hours there will no remembrance of the past and no hope for the future that might have been." & _"All the works of man will be consumed in the great fire after which he was created." & _"And if there is a future for man, insensitive as he is, proud and defiant in his pursuit of power, let him resolve to live it lovingly, for he knows well how to do so." & _"Then he may say once more, 'Truly the light is sweet, and what a pleasant thing it is for the eyes to see the sun.'" - The Day the Earth Caught Fire Link to comment Share on other sites More sharing options...
star2 Posted December 25, 2007 Share Posted December 25, 2007 (edited) HotKeySet("{F11}", "autoadvertising") Opt("SendKeyDelay", 0) While 1 Sleep(10) WEnd Func autoadvertising() ClipPut ("Runs hosted by channel: Clan Xnlg") ClipGet() Send("{ENTER}") Send ("^v") Send("{ENTER}") EndFunc the good old fashion Ctrl + v !!!! hope u like this !!! see ya Edited December 25, 2007 by star2 [quote]Baby you're all that I want, When you're lyin' here in my armsI'm findin' it hard to believe, We're in heavenAnd love is all that I need , And I found it there in your heartIt isn't too hard to see, We're in heaven .Bryan Adams[/quote].............................................................................[u]AUTOIT[/u] Link to comment Share on other sites More sharing options...
nain93 Posted December 25, 2007 Author Share Posted December 25, 2007 ok srry, i edited my post Thx 4 the help, but its not explactly what i want, i would like something the send the sentence in 1shot. i dont want see it typing, i would press F11 and the sentence would appear. Do u think its possible? (my friend his able, but i tried his script and it dosent work on my comp..) If yes let me know how Plz Link to comment Share on other sites More sharing options...
star2 Posted December 25, 2007 Share Posted December 25, 2007 ok srry, i edited my post Thx 4 the help, but its not explactly what i want, i would like something the send the sentence in 1shot. i dont want see it typing, i would press F11 and the sentence would appear. Do u think its possible? (my friend his able, but i tried his script and it dosent work on my comp..)If yes let me know how Plz did u try the script I wrote for you?it will make the sentence would appear at 1shot !!! [quote]Baby you're all that I want, When you're lyin' here in my armsI'm findin' it hard to believe, We're in heavenAnd love is all that I need , And I found it there in your heartIt isn't too hard to see, We're in heaven .Bryan Adams[/quote].............................................................................[u]AUTOIT[/u] Link to comment Share on other sites More sharing options...
nain93 Posted December 25, 2007 Author Share Posted December 25, 2007 (edited) i want use this on Diablo. u cant copy/past thx tought But its something like that i want. Something which appear at 1shot Edited December 25, 2007 by nain93 Link to comment Share on other sites More sharing options...
star2 Posted December 25, 2007 Share Posted December 25, 2007 (edited) HotKeySet("{F11}", "autoadvertising") Opt("SendKeyDelay", 1) ;0 milliseconds Opt("SendKeyDownDelay", 1) While 1 Sleep(10) WEnd Func autoadvertising() Send("{ENTER} Runs hosted by channel: Clan Xnlg {ENTER}") EndFunc this is it !!! Edited December 25, 2007 by star2 [quote]Baby you're all that I want, When you're lyin' here in my armsI'm findin' it hard to believe, We're in heavenAnd love is all that I need , And I found it there in your heartIt isn't too hard to see, We're in heaven .Bryan Adams[/quote].............................................................................[u]AUTOIT[/u] Link to comment Share on other sites More sharing options...
nain93 Posted December 25, 2007 Author Share Posted December 25, 2007 ok, now i get it working in the notepad, but not on Diablo .. hmm on Diablo, it sends the message but i see it typing :/ Any idea? Link to comment Share on other sites More sharing options...
star2 Posted December 25, 2007 Share Posted December 25, 2007 I think u should use the ProcessSetPriority just like The Kandie Man did [quote]Baby you're all that I want, When you're lyin' here in my armsI'm findin' it hard to believe, We're in heavenAnd love is all that I need , And I found it there in your heartIt isn't too hard to see, We're in heaven .Bryan Adams[/quote].............................................................................[u]AUTOIT[/u] Link to comment Share on other sites More sharing options...
nain93 Posted December 25, 2007 Author Share Posted December 25, 2007 i didnt worked Link to comment Share on other sites More sharing options...
star2 Posted December 25, 2007 Share Posted December 25, 2007 I'm really sorry but I don't even know Diablo so I have to run it to find out the problem [quote]Baby you're all that I want, When you're lyin' here in my armsI'm findin' it hard to believe, We're in heavenAnd love is all that I need , And I found it there in your heartIt isn't too hard to see, We're in heaven .Bryan Adams[/quote].............................................................................[u]AUTOIT[/u] Link to comment Share on other sites More sharing options...
nain93 Posted December 25, 2007 Author Share Posted December 25, 2007 thx tought 4 ur help ill keep trying Link to comment Share on other sites More sharing options...
BrettF Posted December 25, 2007 Share Posted December 25, 2007 *Coughs* Game guard or similar? *Coughs* Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
nain93 Posted December 26, 2007 Author Share Posted December 26, 2007 *Coughs* Game guard or similar? *Coughs*yeah i think its something like this, but my friend got it working and me it dosent works. the 1st day i tried it it was ok but the day after, the message wasnt send in 1shot, it was more slow.i was using this script ( and my friend still using it and he dosent have problemes...)http://www.autoitscript.com/forum/index.ph...8&hl=emelee Link to comment Share on other sites More sharing options...
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