Jump to content

Little Help


Recommended Posts

i cant speak english very well but ill work to tell my problem.

firstime im using autoit i want to learn this aplication.

firsty i began Send Command but its not working

Send ("Z") but not working ...

for examlpe i m openig notpad but not not writing Z when this script run.

and how can i make this script ? i dont want close this script everytime working when i dont want will be close..

it muss always click "Z" on windows....???

Link to comment
Share on other sites

i cant speak english very well but ill work to tell my problem.

firstime im using autoit i want to learn this aplication.

firsty i began Send Command but its not working

Send ("Z") but not working ...

for examlpe i m openig notpad but not not writing Z when this script run.

and how can i make this script ? i dont want close this script everytime working when i dont want will be close..

it muss always click "Z" on windows....???

You should wait notepad being active before sending a keystroke, search in the help file for WinWaitActive
Link to comment
Share on other sites

If I got it right this is what you want..

taken from helpfile;

Run("notepad.exe")
WinWaitActive("Untitled - Notepad")
Send("This is some text.")
WinClose("Untitled - Notepad")
WinWaitActive("Notepad", "Do you want to save")
Send("!n")
Link to comment
Share on other sites

Offff i wish i know good english

i will tell again

1. Step send A

2. step : send B

3. Step : send C

4. Step : mouse left click

then 4.step muss run 1.step always

If your using it for a game then I probably wont work.

Most games these days got gameguard or some other anticheat system.

Anyways, here is the code for what you requested now..

HotKeySet("{ESC}","_exit") ; ESC to exit.

While 1
sleep(30)
    Send("{a}")
    Send("{b}")
    Send("{c}")
    Send("{d}")
    MouseClick("left",100,100)
    
WEnd

Func _exit()
Exit
EndFunc
Edited by Zisly
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...