Sign in to follow this  
Followers 0
Ventana

AU3ScriptWriter Question

11 posts in this topic

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?

Share this post


Link to post
Share on other sites



RTFM

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

The script writer is optimized to Not Assume... you can change things like...

MouseMove(565,411)

MouseDown("left")

MouseUp("left")

to

MouseClick("left",565,411)

<{POST_SNAPBACK}>

Thanks. Ok, guess I'll have to just do it manualy.

Share this post


Link to post
Share on other sites

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...


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

@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

Share this post


Link to post
Share on other sites

@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.

Share this post


Link to post
Share on other sites

#9 ·  Posted (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 by JdeB

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

@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.

Share this post


Link to post
Share on other sites

#11 ·  Posted (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 by JdeB

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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  
Followers 0