King Posted December 4, 2008 Posted December 4, 2008 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
KaFu Posted December 4, 2008 Posted December 4, 2008 (edited) Send("",1) flag = 1, keys are sent raw. Edited December 4, 2008 by KaFu OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2024-Oct-13) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2024-Oct-19) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2025-May-18) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16)
King Posted December 8, 2008 Author Posted December 8, 2008 (edited) 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 December 8, 2008 by King
KaFu Posted December 8, 2008 Posted December 8, 2008 (edited) 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 December 8, 2008 by KaFu OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2024-Oct-13) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2024-Oct-19) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2025-May-18) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16)
Bert Posted December 8, 2008 Posted December 8, 2008 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 The Vollatran project My blog: http://www.vollysinterestingshit.com/
King Posted December 8, 2008 Author Posted December 8, 2008 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now