Jump to content
Sign in to follow this  
fearlumsk

Controlsend Problems

Recommended Posts

fearlumsk

Hey Guys i´m trying to command a program in background while doing something else.

With Nodepad this works finde:

Opt("WinTitleMatchMode",2)
Opt("SendKeyDelay", 0)
Run("notepad.exe")
Sleep(1000)
$number=0
for $number= 0 to 100
ControlSend("Editor", "", "Edit1",("LINE" & $number & "{ENTER}"))
next

While being in a Game (warcraft3) the script works fine and the lines get completed. But as soon as i try to write to other programms the game automatically gets minimized as if i were pressing ALT+TAB.

If i´m not in a game the aplication gets non-active until the function has completed.

Anyone got a Idea how to fix this?

Edited by fearlumsk

Share this post


Link to post
Share on other sites
Valuater

maybe

$number=0
While WinActive(" MY GAME"); or WinExists()
$number= $number + 1
ControlSend("Editor", "", "Edit1",("LINE" & $number & "{ENTER}"))
if $number = 100 then exit
Wend

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites
fearlumsk

Not really working.

The script makes the game minimize even if @SW_Hide is on.

In notepad it works as normal....

Share this post


Link to post
Share on other sites
Thatsgreat2345

ummmmmmmmmmmmmmmmmmmmmm, i would guess making the game windowed mode :think: make life easier for you and it wont go minimized

Edited by thatsgreat2345

Share this post


Link to post
Share on other sites
fearlumsk

Its not possible to window it :think:

The game itself is just a test! The reason i choosed it is becaus its i think the most difficult situation for the script.

I could altough have winword open or winamp or something else...

Hmm it seems its impossible to do this.... so i have to use blockinput in these moments to make the script work... damn :-/

Share this post


Link to post
Share on other sites
Thatsgreat2345

u can window any game :think: easy as pie

Share this post


Link to post
Share on other sites
Infinitex0

How? :think:


The below statement is False.The above statement is True.a lesson I learned from Greenmachine; give a man a code and he'll solve one problem. Teach a man to code and he'll solve all his problems.P.S please don't use autoIt as a virus creator/spyware maker(keyLogger especially)Cick this and help me[center]My Scripts:[/center][center]Port Scanner[/center]

Share this post


Link to post
Share on other sites
Thatsgreat2345

sometimes all you have to do is make a shortcut and add -w to it but thats for most noob games but , u got to know asm and stuff so for me its easy , :think: probaly not for you

Share this post


Link to post
Share on other sites
fearlumsk

But thats not my problem. it has to work EVEN if its maximized or minimized or hidden or something else..... :-/

Hmm i think its the programm im trying to command. With one simmilar other program its working now. I gonna use that one...its even better =)

Thanks to all of you!

Edited by fearlumsk

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.