Jump to content

Recommended Posts

Posted (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 by Jace
  • Moderators
Posted

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.

Posted (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 by Jace
Posted

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]

Posted

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

Thank 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!

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...