Andrejj Posted October 30, 2011 Share Posted October 30, 2011 (edited) Hello, atm I am trying to create a script which sends a predefinied keystroke to multiple windows in a predifinied delay. The most is done and it already sends the keystroke via controlsend to one window. But afterall the key doesn't get send to the remaining windows (they have all the same name). $INPUTTEXT = InputBox("Gib die Spamnaricht an:", "Spamnaricht:") $INPUTTIME = InputBox("Gib den Abstand an:", "Abstand:") HotKeySet("{F4}", "_Spam") HotKeySet("{F5}", "_StopSpam") Global $ACTIVE = 0 While 1 If $ACTIVE = 1 Then ControlSend("notepad (just an example)", "", "", $INPUTTEXT) Sleep($INPUTTIME) EndIf WEnd Func _SPAM() $ACTIVE = 1 EndFunc Func _STOPSPAM() $ACTIVE = 0 EndFunc Someone knows what can I do to get it working? Thanks in advance Edited October 30, 2011 by Andrejj Link to comment Share on other sites More sharing options...
water Posted October 30, 2011 Share Posted October 30, 2011 Could you please explain what you want to do with your script? "Spam" and "Spamnaricht" (Spam Message) sounds like something we don't want to support. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Andrejj Posted October 30, 2011 Author Share Posted October 30, 2011 (edited) Yep It should be some kind of a bot for a game. I got this source myself from Youtube and didnt changed the names since they don't matter at all. Edited October 30, 2011 by Andrejj Link to comment Share on other sites More sharing options...
Developers Jos Posted October 30, 2011 Developers Share Posted October 30, 2011 Yep It should be some kind of a bot for a game.I got this source myself from Youtube and didnt changed the names since they don't matter at all.Great, so first read our forum rules and stick to it. 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. Link to comment Share on other sites More sharing options...
Andrejj Posted October 30, 2011 Author Share Posted October 30, 2011 If you talk about the FaQ I already did it. Cant find any other thread about rules. Link to comment Share on other sites More sharing options...
water Posted October 30, 2011 Share Posted October 30, 2011 Jos is talking about the forum rules which can be found here. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted October 30, 2011 Share Posted October 30, 2011 (edited) If you talk about the FaQ I already did it.Cant find any other thread about rules.The one at the top of the forum Edited October 30, 2011 by AdmiralAlkex .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...
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