Icy Posted March 19, 2011 Posted March 19, 2011 Hello, I looked through many topics, but still didn't found any working answer. So I'm asking by myself: How can I make simple command - to send "space" or "some letter" for minimized application? I guess ControlSend is for that, but ControlSend("NosTale","","","x") doesn't work... Only when maximized. Please help me.
Andreik Posted March 19, 2011 Posted March 19, 2011 Most basic example: AutoItSetOption("WinTitleMatchMode",2) Run("notepad.exe") WinWait("Notepad") WinSetState("Notepad","",@SW_MINIMIZE) ControlSend("Notepad","","Edit1","This text was send when window was minimized.") Sleep(1000) WinSetState("Notepad","",@SW_RESTORE)
Tvern Posted March 19, 2011 Posted March 19, 2011 I guess ControlSend is for that, but ControlSend("NosTale","","","x") doesn't work... Only when maximized.Not allowed to discuss game bots here.
Andreik Posted March 19, 2011 Posted March 19, 2011 BTW if he talk about games is possible to be protected by systems like GameGuard.
Icy Posted March 19, 2011 Author Posted March 19, 2011 Thanks dude, but I had to change it a bit. It worked on my LAST TRY. If it wouldn't work that time , then I would give up... It's working perfectly with these lines: AutoItSetOption ("WinTitleMatchMode",2) While 1 Sleep (2000) ControlSend ("NosTale","","","{Space}") WEnd
Icy Posted March 21, 2011 Author Posted March 21, 2011 oh... yes it works, but!! longer i had this script running - bigger problems starts to appear!! WTF?? Problem like: - numeric keyboard stops working - mouse doing weird stuff - shift was held down without me... - and more like these Why??
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