Jace Posted March 9, 2007 Posted March 9, 2007 (edited) Hello all! I am working on a macro for school to automate a few things in my aid class and alot of the comps have different resolutions! Now what I want to do is this: Tell the user to hover the mouse in the Novell window and wait three seconds, then play a beep or some sound and record the coordinates to a variable saved in an ini file. Is this possible? Oh and also is there anyway to pop a box with a text field on top of all windows asking for the password then also writing that password to the same ini file? Edited March 9, 2007 by Jace
Moderators SmOke_N Posted March 9, 2007 Moderators Posted March 9, 2007 Hello all! I am working on a macro for school to automate a few things in my aid class and alot of the comps have different resolutions! Now what I want to do is this:Tell the user to hover the mouse in the Novell window and wait three seconds, then play a beep or some sound and record the coordinates to a variable saved in an ini file.Is this possible?Yes.While/WEnd + WinExists() + WinGetPos() + MouseGetPos() + Beep(). 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.
Jace Posted March 9, 2007 Author Posted March 9, 2007 (edited) Thank you. But is there a way to GOTO? Like for example: GOTO Startup Startup: <some code> GOTO Main Main: <some code> GOTO Startup I know this is an infinite loop but I hope you get the picture. The above Beep() is a system beep anyway to do a media beep through the speakers? Edited March 9, 2007 by Jace
xcal Posted March 9, 2007 Posted March 9, 2007 Just stick what you want to do in a loop. How To Ask Questions The Smart Way
Vindicator209 Posted March 9, 2007 Posted March 9, 2007 Nuhh, my school uses novell too, novell kills everything, you cant even get the pixel color, it always comes out as like 0000000 and use SoundPlay() to play a windows media beep or something, and use something like $pass=Inputbox("title","password please!") FileWrite("something.ini",$pass) suppose that helps? ~Cheers [center]"When you look at old, classic games like Snake, you often put it off because it's such a simple game, but it's only when you actually try and create your own unique game from scratch, do you finally appreciate those games."[/center][center]Don't ask for answers if you haven't TRIED yet![/center][center]Most answers can be answered in the help file! Use it![/center]
Jace Posted March 9, 2007 Author Posted March 9, 2007 Nuhh, my school uses novell too, novell kills everything, you cant even get the pixel color, it always comes out as like 0000000 and use SoundPlay() to play a windows media beep or something, and use something like$pass=Inputbox("title","password please!")FileWrite("something.ini",$pass)suppose that helps?~CheersThank you so much! So if I write more than one variable to an ini file do I haft to read it every time I need to access the variable? Or can I read it once during execution and keep them in the memory?Thanks!
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