tchld Posted April 14, 2009 Posted April 14, 2009 I'm making a small script to switch to my game window and hit the space bar. When i run the script it switches but the space key is not entered. Am i doing something wrong? WinActivate("Untitled", ""); Sleep(1000) Send("{SPACE}");
Andreik Posted April 14, 2009 Posted April 14, 2009 tchld said: I'm making a small script to switch to my game window and hit the space bar. When i run the script it switches but the space key is not entered. Am i doing something wrong? WinActivate("Untitled", ""); Sleep(1000) Send("{SPACE}");What is with this char ; after first and last line from your code?
tchld Posted April 14, 2009 Author Posted April 14, 2009 i thought it was part of the syntax, but i guess not. took out the semicolons and the program still doesnt hit space
Andreik Posted April 14, 2009 Posted April 14, 2009 tchld said: i thought it was part of the syntax, but i guess not. took out the semicolons and the program still doesnt hit spaceAutoItSetOption("WinTitleMatchMode",2) Run("notepad.exe") WinWait("Notepad") WinActivate("Notepad") Send("{SPACE}")
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