Jump to content

Send script error.


King
 Share

Recommended Posts

Ok first all let me tell you I am horibly bad at scripting so do not laugh at my script :) .

What i am looking for is when i press Alt+crtl+Z it types a url for me.

Here is the code i have and here is what it is doing.

It only types [ and it doesn't stop.

Thanks in advance.

Chris

HotKeySet("^!z","Movment");
HotKeySet("^!x","End");
While 1 
Sleep(100) 
WEnd 
Func Movment() 
While 1 
Send("{[url=http://gsi.xw.gm.com/image_en_us/gif/000/001/802/1802158.gif][img]http://gsi.xw.gm.com/si/images/tif.gif[/img][/url]}") 


WEnd 
EndFunc 
Func End() 
Exit 
EndFunc
Link to comment
Share on other sites

Send("",1)

flag = 1, keys are sent raw.

New code is this. The only problem is now... it sends over and over and over... I just want it to send once.

HotKeySet("^!z","Movment");
HotKeySet("^!x","End");
While 1 
Sleep(100) 
WEnd 
Func Movment() 
While 1 
Send("{[url=http://gsi.xw.gm.com/image_en_us/gif/000/001/802/1802158.gif][img]http://gsi.xw.gm.com/si/images/tif.gif[/img][/url]}",1) 


WEnd 
EndFunc 
Func End() 
Exit 
EndFunc
Edited by King
Link to comment
Share on other sites

HotKeySet("^!z", "Movment");
HotKeySet("^!x", "End");

While 1
    Sleep(100)
WEnd

Func Movment()
    Send("{[url=http://gsi.xw.gm.com/image_en_us/gif/000/001/802/1802158.gif][img]http://gsi.xw.gm.com/si/images/tif.gif[/img][/url]}", 1)
EndFunc  ;==>Movment

Func End()
    Exit
EndFunc  ;==>End

Edited by KaFu
Link to comment
Share on other sites

Try this:

HotKeySet("^!z", "Movment");
HotKeySet("^!x", "End")

While 1
    Sleep(10);idle around
WEnd

Func Movment()
    Send("{[url=http://gsi.xw.gm.com/image_en_us/gif/000/001/802/1802158.gif][img]http://gsi.xw.gm.com/si/images/tif.gif[/img][/url]}")
EndFunc  ;==>Movment

Func End()
    Exit
EndFunc  ;==>End
Link to comment
Share on other sites

Try this:

HotKeySet("^!z", "Movment");
HotKeySet("^!x", "End")

While 1
    Sleep(10);idle around
WEnd

Func Movment()
    Send("{[url=http://gsi.xw.gm.com/image_en_us/gif/000/001/802/1802158.gif][img]http://gsi.xw.gm.com/si/images/tif.gif[/img][/url]}")
EndFunc ;==>Movment

Func End()
    Exit
EndFunc ;==>End
Ok this almost worked. It does work when I add ,1 to the "" So the code looks like this now. But the only thing is After I run it and it types everything in, I have to press Ctrl again to use any computer options. Any reason for this?

HotKeySet("^!z", "Movment");
HotKeySet("^!x", "End")

While 1
    Sleep(10);idle around
WEnd

Func Movment()
    Send("{[url=http://gsi.xw.gm.com/image_en_us/gif/000/001/802/1802158.gif][img]http://gsi.xw.gm.com/si/images/tif.gif[/img][/url]}",1)
EndFunc ;==>Movment

Func End()
    Exit
EndFunc ;==>End
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...