Jump to content

Recommended Posts

Posted

so in the example scripts they drew a clock and made it move and tick and what not but I just want a simple black rectangle that uses the macros to find your desktop height and width. so no matter what computer you use it on it will always make the screen look black. If someone could make a code with some description so that I can learn from it I'd be very appreciative. Thank you.

Posted

so in the example scripts they drew a clock and made it move and tick and what not but I just want a simple black rectangle that uses the macros to find your desktop height and width. so no matter what computer you use it on it will always make the screen look black. If someone could make a code with some description so that I can learn from it I'd be very appreciative. Thank you.

Klovis

The best one can do is to read and practise the help part in AI!

Did you have time to read up on GUI's?

This have no descriptions but if you paste this into scite, click once on the function and hit the "F1" key you are going to get a-lot-of-descriptions.

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
GUICreate("My GUI", @DesktopWidth, @DesktopHeight, 1, 1, $WS_POPUP)
GUISetBkColor(0x000000)
GUISetState(@SW_SHOW)
While 1
    $msg = GUIGetMsg()
    If $msg = $GUI_EVENT_CLOSE Then ExitLoop
WEnd
GUIDelete()
Posted

thanks, I honestly didn't have the time so much family over and I needed it by saturday eve pacific coast time. I really appreciate it!

-Klovis

Posted

thanks, I honestly didn't have the time so much family over and I needed it by saturday eve pacific coast time. I really appreciate it!

-Klovis

Oh Ok. So this was more of a request for writing a script for you?

In that case I think a donation to AutoIT would be in order? (See WebSite for Detail)

And to entertain the family you can have this:

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
GUICreate("My GUI", @DesktopWidth + 2, @DesktopHeight + 2, -1, -1, $WS_POPUP)
GUISetBkColor(0x000000)
$label1 = GUICtrlCreateLabel(" ", -10, -10, 10, 10)
GUICtrlSetBkColor(-1, 0x00ff00)
GUICtrlSetColor(-1, 0xff0000)
GUISetState(@SW_SHOW)
While 1
    $pos = MouseGetPos()
    GUICtrlSetPos($label1, @DesktopWidth - $pos[0], @DesktopHeight - $pos[1])
    $msg = GUIGetMsg()
    If $msg = $GUI_EVENT_CLOSE Then ExitLoop
    If Mod(Number(@SEC), 15) = 0 Then GUISetCursor(Random(1, 15, 1))
    Sleep(13)
WEnd
GUIDelete()
Posted

Oh Ok. So this was more of a request for writing a script for you?

In that case I think a donation to AutoIT would be in order? (See WebSite for Detail)

Sure I'll donate, what's the norm for donations?

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