Ventana Posted October 31, 2004 Share Posted October 31, 2004 While I was playing around trying to learn Autoit and Scite, I used Script Writer to write a small little do-nothing script. My purpose was to study the code to see how things are done. The following is a portion of the code that Script Writer produced. Opt("MouseCoordMode",0) WinWait("Program Manager","") If Not WinActive("Program Manager","") Then WinActivate("Program Manager","") WinWaitActive("Program Manager","") MouseMove(686,426) MouseDown("right") MouseUp("right") Sleep(1000) MouseMove(565,411) MouseDown("left") MouseUp("left") Sleep(1000) My question is, in order to streamline code, how can I make it not use MouseMove, MouseUp and MouseDown and make it use MouseClick instead? I can understand the purpose if I were using this for distribution but I am the only one using it and I do not swap my mouse keys. is this possible or must I go back and do it manualy? Link to comment Share on other sites More sharing options...
Matt @ MPCS Posted October 31, 2004 Share Posted October 31, 2004 RTFM Link to comment Share on other sites More sharing options...
Ventana Posted October 31, 2004 Author Share Posted October 31, 2004 RTFM<{POST_SNAPBACK}>I did, I couldn't find it. Also, I've been using these 2 great programs exactly 2 days, so. please, forgive my ignorance. Otherwise, your post was very helpful and informative. I look forward to reading more of your contiributions in the future. Link to comment Share on other sites More sharing options...
Matt @ MPCS Posted October 31, 2004 Share Posted October 31, 2004 I apologize for being short but if you actually did read the manual or searched the forum then you would have found the Control commands. These commands will prove more useful to your "streamlined" code. *** Matt @ MPCS Link to comment Share on other sites More sharing options...
Ventana Posted October 31, 2004 Author Share Posted October 31, 2004 The script writer is optimized to Not Assume... you can change things like...MouseMove(565,411)MouseDown("left")MouseUp("left")toMouseClick("left",565,411)<{POST_SNAPBACK}>Thanks. Ok, guess I'll have to just do it manualy. Link to comment Share on other sites More sharing options...
Developers Jos Posted October 31, 2004 Developers Share Posted October 31, 2004 I apologize for being short but if you actually did read the manual or searched the forum then you would have found the Control commands. These commands will prove more useful to your "streamlined" code.*** Matt @ MPCS<{POST_SNAPBACK}>The question was about Scite/ScriptWriter and couldn't be answered by looking at the helpfile..... And yes .... Control commands are better when possible... SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Matt @ MPCS Posted October 31, 2004 Share Posted October 31, 2004 @JdeB, The question was not about Scite. He said that he was trying to learn the language by studying scriptwritter generated scripts and was displeased with the output so was asking about another way to do it. To do this you need to read the manual. *** Matt @ MPCS Link to comment Share on other sites More sharing options...
Ventana Posted October 31, 2004 Author Share Posted October 31, 2004 @JdeB, The question was not about Scite. He said that he was trying to learn the language by studying scriptwritter generated scripts and was displeased with the output so was asking about another way to do it. To do this you need to read the manual. *** Matt @ MPCS<{POST_SNAPBACK}>Sorry to say Matt, you're wrong. I already know (by reading the manual) that there is another way to do it. That's why I asked if there was a way to make Scite not assume I had swapped my mouse keys. Here's my original question......."My question is, in order to streamline code, how can I make it not use MouseMove, MouseUp and MouseDown and make it use MouseClick instead? I can understand the purpose if I were using this for distribution but I am the only one using it and I do not swap my mouse keys. is this possible or must I go back and do it manualy? "See, I did read the manual. I know that Scite uses the "SAFE" MouseMove, MouseUp and MouseDown INSTEAD of MouseClick, just incase I swapped my mouse keys. I wanted to know if Scite could be CONFIGURED to use the "UN-SAFE" MouseClick INSTEAD. Also, I apologize for say streamline code. I meant optimize. Link to comment Share on other sites More sharing options...
Developers Jos Posted October 31, 2004 Developers Share Posted October 31, 2004 (edited) Sorry to say Matt, you're wrong. I already know (by reading the manual) that there is another way to do it. That's why I asked if there was a way to make Scite not assume I had swapped my mouse keys. Here's my original question......."My question is, in order to streamline code, how can I make it not use MouseMove, MouseUp and MouseDown and make it use MouseClick instead? I can understand the purpose if I were using this for distribution but I am the only one using it and I do not swap my mouse keys. is this possible or must I go back and do it manualy? "See, I did read the manual. I know that Scite uses the "SAFE" MouseMove, MouseUp and MouseDown INSTEAD of MouseClick, just incase I swapped my mouse keys. I wanted to know if Scite could be CONFIGURED to use the "UN-SAFE" MouseClick INSTEAD. Also, I apologize for say streamline code. I meant optimize.<{POST_SNAPBACK}>@Ventana, Matt was right that your question wasn't about Scite but Scriptwriter, the program that is distributed with the Scite4Autoit3 installer. ( not sure if i said anything different...)The issue was that, in my mind, you didn't get a fair answer... thats why i replied.Don't worry about me... iam not worried at all when people don't agree with me and also don't feel the urge to reply to say I am rigth or something.So lets move on and close the subject.... Edited October 31, 2004 by JdeB SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Ventana Posted October 31, 2004 Author Share Posted October 31, 2004 @Ventana, Matt was right that your question wasn't about Scite but Scriptwriter, the program that is distributed with the Scite4Autoit3 installer. ( not sure if i said anything different...)<{POST_SNAPBACK}>Ah, ok, I see. I didn't realize Scriptwriter wasn't part of Scite. Yes, my question was about making "ScriptWriter" not assume I swapped my mouse keys. Ok, done with this thread. Link to comment Share on other sites More sharing options...
Developers Jos Posted October 31, 2004 Developers Share Posted October 31, 2004 (edited) Ah, ok, I see. I didn't realize Scriptwriter wasn't part of Scite. Yes, my question was about making "ScriptWriter" not assume I swapped my mouse keys. Ok, done with this thread.<{POST_SNAPBACK}>What i have been trying to do is to incorporate Scite and all usefull programs like (a modified version) of Larrys Scriptwriter etc into one single installer which would just take you a few minutes to get on your way creating autoit3 scripts.Just check out the Scite4Autoit3.chm (Ctrl+F1) helpfile which tells you all utilities and its creators... Edited October 31, 2004 by JdeB SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. 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