Jump to content
Sign in to follow this  
Reg

Infinite loop

Recommended Posts

hello,

i have tried some tutorials. So i have created this (i used the Logitech G15 keyboard Script Editor.):

function OnEvent(event, arg)

if (event == "G_PRESSED" and arg == 1) then

MoveMouseTo(42000, 22767)

Sleep(2000)

PressAndReleaseMouseButton(1);

MoveMouseTo(32767, 28767)

Sleep(3000)

end

end

now i want that the mouse movements are in a infinite loop. Only when i press "C" i can interuppt it.

Can someone help me ?

Regards, Reg

Share this post


Link to post
Share on other sites

hello,

i have tried some tutorials. So i have created this (i used the Logitech G15 keyboard Script Editor.):

function OnEvent(event, arg)

if (event == "G_PRESSED" and arg == 1) then

MoveMouseTo(42000, 22767)

Sleep(2000)

PressAndReleaseMouseButton(1);

MoveMouseTo(32767, 28767)

Sleep(3000)

end

end

now i want that the mouse movements are in a infinite loop. Only when i press "C" i can interuppt it.

Can someone help me ?

Regards, Reg

Try looking up While...WEnd and HokKeySet...that should help you with the next step.

-Aaron

Share this post


Link to post
Share on other sites

sry

G15 Script Editor based on lua

it has some similiar commands ^^

you can delete this thread

Edited by Reg

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...