ElijaH Posted May 7, 2009 Share Posted May 7, 2009 (edited) here's my noob script.this script purpose is to toggle keystroke unto your virtual keyboard.. am I doing it right? or there is something im missing? _____________________________________ Global $UnPaused HotKeySet("1", "TogglePause") HotKeySet("{ESC}", "Terminate") While 1 ToolTip("script off",0,0) WEnd Func TogglePause() $UnPaused = Not $UnPaused While $UnPaused WinActive("On-Screen Keyboard") ControlClick( "On-Screen Keyboard", "@", "N191", "" , "" , "57" , "30" ) Sleep(1000) ControlClick( "On-Screen Keyboard", "#", "N201", "" , "" , "84" , "30" ) Sleep(1000) ControlClick( "On-Screen Keyboard", "$", "N211", "" , "" , "111" , "30" ) Sleep(1000) ControlClick( "On-Screen Keyboard", "%", "N221", "" , "" , "138" , "30" ) Sleep(1000) ControlClick( "On-Screen Keyboard", "^", "N231", "" , "" , "165" , "30" ) Sleep(1000) ControlClick( "On-Screen Keyboard", "&", "N241", "" , "" , "192" , "30" ) Sleep(1000) ControlClick( "On-Screen Keyboard", "*", "N251", "" , "" , "219" , "30" ) Sleep(1000) WEnd EndFunc Func Terminate() Exit 0 EndFunc _____________________________________________________ Edited May 7, 2009 by ElijaH Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted May 7, 2009 Moderators Share Posted May 7, 2009 (edited) When a Admin/Developer/Admin closes your post (which are the only 3 types of users that can), it's best you heed their advice (if any is given). I told you not to post again until you took the tutorials and read the help file so you had a basic understanding on how to use this language. Edit: With your other post, you merely copy and pasted out of the help file, and asked someone to fix it. That's just as much as asking someone to do it for you. I have no issues with people asking questions when they get stuck, however, I personally have no tolerance for being to lazy to learn. Edited May 7, 2009 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
youknowwho4eva Posted May 7, 2009 Share Posted May 7, 2009 here's my noob script.this script purpose is to toggle keystroke unto your virtual keyboard..am I doing it right? or there is something im missing?_____________________________________Global $UnPausedHotKeySet("1", "TogglePause")HotKeySet("{ESC}", "Terminate")While 1 ToolTip("script off",0,0)WEndFunc TogglePause() $UnPaused = Not $UnPaused While $UnPaused WinActive("On-Screen Keyboard") ControlClick( "On-Screen Keyboard", "@", "N191", "" , "" , "57" , "30" ) Sleep(1000) ControlClick( "On-Screen Keyboard", "#", "N201", "" , "" , "84" , "30" ) Sleep(1000) ControlClick( "On-Screen Keyboard", "$", "N211", "" , "" , "111" , "30" ) Sleep(1000) ControlClick( "On-Screen Keyboard", "%", "N221", "" , "" , "138" , "30" ) Sleep(1000) ControlClick( "On-Screen Keyboard", "^", "N231", "" , "" , "165" , "30" ) Sleep(1000) ControlClick( "On-Screen Keyboard", "&", "N241", "" , "" , "192" , "30" ) Sleep(1000) ControlClick( "On-Screen Keyboard", "*", "N251", "" , "" , "219" , "30" ) Sleep(1000) WEndEndFuncFunc Terminate() Exit 0EndFunc_____________________________________________________If you're not banned before you read this, what is wrong with the script? have you run it? does it do anything? Does it do what you want it to do? Does it error out? these are all questions you need to have answers for when asking for help. Most wont troubleshoot your program for you for free. Tell us your problem. Don't tell us to see if there is a problem, and if there is fix it for me. Giggity Link to comment Share on other sites More sharing options...
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