Jump to content
Sign in to follow this  
newb2007

Mega newb help

Recommended Posts

newb2007

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

Share this post


Link to post
Share on other sites
weaponx

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

Share this post


Link to post
Share on other sites
newb2007

Thx alot!! Really appreciate your help!

The first script work, i'll try the second now :)

Share this post


Link to post
Share on other sites
weaponx

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

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.