Rjt12345 Posted April 3, 2011 Share Posted April 3, 2011 Hello there. I downloaded AutoIt last night, so I'm fairly new to it. But after reading through the tutorial and a few posts, I came up with the following script: WinWaitActive("Untitled - Notepad") While 1 Sleep(3 * 1000) ControlSend("Untitled - Notepad", "", "[CLASS:Edit; INSTANCE:1]", "Q") WEnd It worked like a charm. Each time I would open Notepad manually, Q would be pressed every 3 seconds. Now here's the glitch. I used the same thing for another programme. WinWaitActive("LuminaRO v8.1 ~~~~ by Adhelle") While 1 Sleep(3 * 10000) ControlSend("LuminaRO v8.1 ~~~~ by Adhelle", "", "Edit1", "Q") WEnd Nothing happens... I thought maybe something was wrong with the window name, so I used Send ("Q") instead of ControlSend, and it worked perfectly. But if I continue using Send, then I will have to keep the window open. I've read through many forums and there is no solution. Can someone please help me out? Thanks in advance. Link to comment Share on other sites More sharing options...
Malkey Posted April 3, 2011 Share Posted April 3, 2011 Welcome to the forums. In your second script, you have " Sleep(3 * 10000)" which equals 30 seconds. Are you waiting 30 seconds for nothing to happen? Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted April 3, 2011 Share Posted April 3, 2011 @Rjt12345http://www.cp.lumina-ro.com/That looks like a game to me.Did you forget to read the announcement?Game Bots and Automation .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...
Rjt12345 Posted April 3, 2011 Author Share Posted April 3, 2011 Well firstly I'm not here just for the game. I intend to work a lot with the programme, and one of my first assignments are making a programme for my friend in Lumina RO. Secondly, your 'Game Bots and Automation' is shut, so I was forced to comment here. Yes, I'm waiting 30 seconds and nothing is happening. Also, I've done a vast amount of research before resorting to post here. If the solution's out there, I would have found it. Thanks again. Link to comment Share on other sites More sharing options...
Rjt12345 Posted April 3, 2011 Author Share Posted April 3, 2011 (edited) I noticed that many people using AutoIt are facing a similar problem. Send works and ControlSend doesnt... One would think that some sort of gameguard is blocking it, but in that case Send wouldn't work too... There's got to be a solution, because I intend to work this script on many other programmes. Edited April 3, 2011 by Rjt12345 Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted April 3, 2011 Share Posted April 3, 2011 Why you are doing it is irrelevant. We don't automate games here. .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...
Developers Jos Posted April 3, 2011 Developers Share Posted April 3, 2011 case stated ...topic closed. 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...
Recommended Posts