Guest spamingfreak Posted March 24, 2004 Share Posted March 24, 2004 how do u make a file that can copy from the windows clipboard and then past it into another application!my Code; Prompt the user to run the script - use a yes/no prompt (4 - see help file)$answer = MsgBox(4, "mega bot", "Click yes ONLY after you have typed your text and then copied it!");Send("{CTRLDOWN}") ;press and hold Ctrl down;Send("{VDOWN}") ;let go of the V button;Send("{CTRLUP}") ;let go of the ctrl button;Send("{VUP}") ;let go of the V buttonplease send me a working code! Link to comment Share on other sites More sharing options...
CyberSlug Posted March 24, 2004 Share Posted March 24, 2004 Send("^v") See ClipGet and Send in the help file for more info. Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
jpm Posted March 24, 2004 Share Posted March 24, 2004 how do u make a file that can copy from the windows clipboard and then past it into another application!my Codeplease send me a working code!Your problem, if one can come from the fact that the window you want to send must be active when you send.I you insert a msgbox the previous window loose the focus and I am not for sure it will be active when you close the message box.so safe coding isWinWaitActive("the windows you want to send info",...Send(...In fact there is a way in the AutoIt3 which allow you to send to an inactive window provided you know more information about itJust read the doc about ControlSend.I hope that help Link to comment Share on other sites More sharing options...
Guest spamingfreak Posted March 25, 2004 Share Posted March 25, 2004 OMG! I am soooooo mad! IT STILL DOESN'T WORK!cant some one just send me a code that doesn't just shutdown! I want a WORKING code!and the help file is useless! sorry maybe I wasnt clear on what I said.I need a CODE that WORKS and can get text from the Window's Clipboard and send the coad to a full screen application (not windowed) If you can make one then please send it to hellsPRN@gbsecurity.zzn.comO and dont forget to say hi. Link to comment Share on other sites More sharing options...
jpm Posted March 25, 2004 Share Posted March 25, 2004 OMG! I am soooooo mad! IT STILL DOESN'T WORK! cant some one just send me a code that doesn't just shutdown! I want a WORKING code! and the help file is useless! O and dont forget to say hi. ; provided you have what you want in the clipboard before statring the script Run( your application) WinwaitActive("title of you application") Send("^v") I can't help you more, you should describe what is happening with which script you get trouble. Link to comment Share on other sites More sharing options...
scriptkitty Posted March 25, 2004 Share Posted March 25, 2004 (edited) Sample code that opens notepad, types in some text, highlights and copies it, then closes notepad, asks your question, and then opens notepad and pastes it in from windows clipboard. Run("notepad.exe"); opens notepad WinWaitActive("Untitl"); waits till notepad is open to blank document send("la la la I am text"); Type in useless text sleep(2000); time to let you see text is there send("{shiftDOWN}"); hold down shift send("{home}"); move to left send("^c"); copy send("{shiftUP}"); release the shift key winclose("Untitl"); close up notepad sleep(500) controlclick("Notepad","The text in","Button2","Left",1); click do not save button MsgBox(4, "mega bot", "Click yes and I will reopen notepad and type your text we copied into it!") Run("notepad.exe") WinWaitActive("Untitl") WinSetTitle ("Untit","","Ok, now I will paste clipboard into this window") send(clipget()); sends clipboard contents edit... are you using Win95a and an old release of autoit3? Edited March 25, 2004 by scriptkitty AutoIt3, the MACGYVER Pocket Knife for computers. Link to comment Share on other sites More sharing options...
hellsPRN Posted March 25, 2004 Share Posted March 25, 2004 no I need one that allwos me to copy what I want on to the clip board then allows me to past it into a game chat. then automaticlly sends it with the enter key. and can repeet its self at my will, like when I press ctrl D to do the entire prosses again. and closes when I press alt I. Link to comment Share on other sites More sharing options...
hellsPRN Posted March 26, 2004 Share Posted March 26, 2004 P.S. I'm spamingfreak. but my brother stuffed up my Internet connection and I cant access SSL authencation like hotmail or netscape. Link to comment Share on other sites More sharing options...
scriptkitty Posted March 26, 2004 Share Posted March 26, 2004 if you are running WinXP or Win2000, or WinNT, you might have a chance in most games. WinME, Win98, Win95 have less functionality due to Microsoft limitations in games. run this, and hit the pause key to send clipboard contents in any application HotKeySet("{PAUSE}", "sendtext"); waits till pause key is typed to send tooltip("Send clipboard by hitting pause",0,0) while 1 sleep (500) wend func sendtext() send(clipget(),1); send what you copied send("{enter}"); you asked for it to send enter endfunc if you copy returns, they will send enter as well you can remove them if needed. AutoIt3, the MACGYVER Pocket Knife for computers. Link to comment Share on other sites More sharing options...
hellsPRN Posted March 26, 2004 Share Posted March 26, 2004 ty scriptkitty that really worked well! thank you so much 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