Hyflex Posted July 29, 2008 Share Posted July 29, 2008 (edited) I need to make an autoit script where it does the following: It stays on top of any windows ALL the time. (down in botttom right...) A box must be on the GUI where i can type sentences into and it must save the text to an INI file so i can keep the text even if i close the program. (Maybe a save button...) Then a hotkey (insert) and it types what i put really fast... How do i do this? I can do the hotkey and send bits but dont know how to incoperate them with a text dialog.. Edited July 29, 2008 by XxXGoD Link to comment Share on other sites More sharing options...
TerarinKerowyn Posted July 29, 2008 Share Posted July 29, 2008 I think $GUI_ONTOP will help you out in GUIConstantsEx.au3 Can you write what you have so far so we can help you out instead of writing the application for you I think you are trying to make a error correction with the hotkey, so right before you send the box you auto-correct it? Contact via MSN: [email=terarink_msn@hotmail.com]terarink_msn@hotmail.com[/email], yahoo: terarink_yah Link to comment Share on other sites More sharing options...
Hyflex Posted July 29, 2008 Author Share Posted July 29, 2008 (edited) Well, I havn't been able to write any code, because i dont know how to incorporate the chat box into the send....What this is for is:When i press Insert it types the text our fast, so i dont have to keep typing it.Obviously i use:http://www.autoitscript.com/autoit3/docs/f...s/HotKeySet.htmhttp://www.autoitscript.com/autoit3/docs/a...ix/SendKeys.htm Edited July 29, 2008 by XxXGoD Link to comment Share on other sites More sharing options...
Hyflex Posted July 29, 2008 Author Share Posted July 29, 2008 (edited) $Chat = IniRead ( @ScriptDir & "\Settings.ini", "ChatBox", "Text", "" ) HotKeySet("{INSERT}", "StartChat") HotKeySet("{END}", "Escape") Opt("SendKeyDownDelay", 1) Opt("SendKeyDelay", 1) While 1 Sleep(100) WEnd Func StartChat() While 1 Send($Chat) Sleep("100") WEnd EndFunc Func Escape() Exit EndFunc Thats what i go so far, but it doesnt work like i want it to.. That just keeps typing, i want it to type once and stop and then when i press insert again it types it, but i want it gui form.. Edited July 29, 2008 by XxXGoD Link to comment Share on other sites More sharing options...
Smiley357 Posted July 29, 2008 Share Posted July 29, 2008 To do what you are asking you will need to use controlsend since the message box will always be on top. You will need to provide a lot more information to do that. But to do this simply you can use this code. It will only send the text to the window on top. HotKeySet("{F11}", "_Entertext") HotKeySet("{INSERT}", "_Sendtext") HotKeySet("{END}", "_Quit") While 1 Sleep(10) WEnd Func _Sendtext() $txt = IniRead("myfile.ini", "Text", "txt","NotFound") Send($txt, 1) EndFunc Func _Entertext() $answer = InputBox("Question", "Where were you born?", "Planet Earth", "", _ -1, -1, 0, 0) IniWrite("Myfile.ini", "Text", "txt", $answer) EndFunc Func _Quit() Exit EndFunc Link to comment Share on other sites More sharing options...
Hyflex Posted July 29, 2008 Author Share Posted July 29, 2008 Ahh Perfect. Is it possible for in the Input box for me to be able to have a dropdown menu with each one adding a different value before the $answer Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted July 29, 2008 Share Posted July 29, 2008 GUICtrlCreateCombo() ?? .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
Hyflex Posted July 29, 2008 Author Share Posted July 29, 2008 GUICtrlCreateCombo() ??But this is just a popup window... Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted July 29, 2008 Share Posted July 29, 2008 Drop the InputBox() and build your own gui with GUICreate() etc .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
Minikori Posted July 29, 2008 Share Posted July 29, 2008 As for saving to an ini, you can check here. For those who are asking questions, look in the help file first. I'm tired of people asking stupid questions about how to do things when 10 seconds in the help file could solve their problem.[quote name='JRowe' date='24 January 2010 - 05:58 PM' timestamp='1264381100' post='766337'][quote name='beerman' date='24 January 2010 - 03:28 PM' timestamp='1264372082' post='766300']They already have a punishment system for abuse.[/quote]... and his his name is Valik.[/quote]www.minikori.com Link to comment Share on other sites More sharing options...
Hyflex Posted July 30, 2008 Author Share Posted July 30, 2008 How can i make it type the text faster, its kind slow... Link to comment Share on other sites More sharing options...
d4rk Posted July 30, 2008 Share Posted July 30, 2008 How can i make it type the text faster, its kind slow...are you using Send() ?Add data to clipboard and send(Ctrl + V) would be faster [quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys Link to comment Share on other sites More sharing options...
Hyflex Posted July 30, 2008 Author Share Posted July 30, 2008 are you using Send() ?Add data to clipboard and send(Ctrl + V) would be fasterCan't do that, the program im using has anti cnp Link to comment Share on other sites More sharing options...
TerarinKerowyn Posted July 30, 2008 Share Posted July 30, 2008 By changing Opt("SendKeyDownDelay", 1) and Opt("SendKeyDelay", 1) to: Opt("SendKeyDownDelay", 0) Opt("SendKeyDelay", 0) Contact via MSN: [email=terarink_msn@hotmail.com]terarink_msn@hotmail.com[/email], yahoo: terarink_yah 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