Jump to content

Mega newb help


newb2007
 Share

Recommended Posts

Sorry for not finding this easy function, i just have to post :&

I need to know how to execute script when i press ex.. space

This is my code now..

HotKeySet ( "{space}" [,"MouseClickDrag"] )"left", 528,491, 364,486, 382,450, 482,650 [, 30] )

Also..

if i set a prefered color code in some way, can my mouse click at the prefered color code?

Edited by newb2007
Link to comment
Share on other sites

Hotkeyset has to call a function (and you had too many params in your mouseclickdrag call):

HotKeySet ( "{space}" , "drag")
Func drag()
;MouseClickDrag ( "button", x1, y1, x2, y2 [, speed] ) 
MouseClickDrag("left", 528,491, 364,486, 30)
EndFuncoÝ÷ Øò¢ìÛh±æ«rè­ªbÅé[ÉÊ%¢·h²¶§X¤zØb±«­¢+ØÀÌØí½½ÉôA¥á±MÉ  À°À°Í­Ñ½Á]¥Ñ °Í­Ñ½Á!¥¡Ð°ÁáÀÀÀÀ¤()!½Ñ-åMÐ ÅÕ½ÐííÍÁôÅÕ½Ðì°ÅÕ½ÐíÉÅÕ½Ðì¤)Õ¹É ¤(í5½ÕÍ
±¥­É ÅÕ½ÐíÕÑѽ¸ÅÕ½Ðì°àÄ°äÄ°àÈ°äÈl°ÍÁt¤)5½ÕÍ
±¥­É ÅÕ½Ðí±ÐÅÕ½Ðì°ÀÌØí½½ÉlÁt°ÀÌØí½½ÉlÅt°ÌØаÐàØ°ÌÀ¤)¹Õ¹
Edited by weaponx
Link to comment
Share on other sites

Here is a better example, if you minimize all your windows it should drag the icon in the upper left corner to the middle of your desktop:

$coord = PixelSearch( 0,  0, @DesktopWidth, @DesktopHeight,  0xFFFFFF )

HotKeySet ( "{space}" , "drag")

While 1
    Sleep(250)
WEnd

Func drag()
    ;MouseClickDrag ( "button", x1, y1, x2, y2 [, speed] )
    MouseClickDrag("left", $coord[0],$coord[1], @DesktopWidth / 2,@DesktopHeight / 2, 30)
EndFunc
Link to comment
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
 Share

  • Recently Browsing   0 members

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