MyWish Posted August 24, 2008 Share Posted August 24, 2008 Hi every1. Any1 could tell me what the command is if I'd like to write a script which can hold a button + press another one? Like shift + f4? Link to comment Share on other sites More sharing options...
dbzfanatic Posted August 24, 2008 Share Posted August 24, 2008 Send() should work,just check the helpfile. Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote] Link to comment Share on other sites More sharing options...
MyWish Posted August 24, 2008 Author Share Posted August 24, 2008 WEll my english sux and I'm rly newbie at writing scripts . I hardly understand what the helpfile is saying . Link to comment Share on other sites More sharing options...
herewasplato Posted August 24, 2008 Share Posted August 24, 2008 (edited) Send("+{F4}") Edited August 24, 2008 by herewasplato [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
dbzfanatic Posted August 24, 2008 Share Posted August 24, 2008 WEll my english sux and I'm rly newbie at writing scripts . I hardly understand what the helpfile is saying . You could copy the text from the helpfile into a translator and just translate it to your native language, should be pretty close,at least close enough to get the basic idea. Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote] Link to comment Share on other sites More sharing options...
MyWish Posted August 24, 2008 Author Share Posted August 24, 2008 (edited) I failed so alt+f4 = Send("(ALT)"+"{F4}") its not working at all Edited August 24, 2008 by MyWish Link to comment Share on other sites More sharing options...
dbzfanatic Posted August 24, 2008 Share Posted August 24, 2008 Taken from the helpfile.'!'This tells AutoIt to send an ALT keystroke, therefore Send("This is text!a") would send the keys "This is text" and then press "ALT+a".N.B. Some programs are very choosy about capital letters and ALT keys, i.e. "!A" is different to "!a". The first says ALT+SHIFT+A, the second is ALT+a. If in doubt, use lowercase!'+'This tells AutoIt to send a SHIFT keystroke, therefore Send("Hell+o") would send the text "HellO". Send("!+a") would send "ALT+SHIFT+a".'^'This tells AutoIt to send a CONTROL keystroke, therefore Send("^!a") would send "CTRL+ALT+a".N.B. Some programs are very choosy about capital letters and CTRL keys, i.e. "^A" is different to "^a". The first says CTRL+SHIFT+A, the second is CTRL+a. If in doubt, use lowercase!'#'The hash now sends a Windows keystroke; therefore, Send("#r") would send Win+r which launches the Run dialog box. Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote] Link to comment Share on other sites More sharing options...
MyWish Posted August 24, 2008 Author Share Posted August 24, 2008 (edited) thats cool thats cool but I want the special f4 key. I found this in the helpfile Use Alt-key combos to access menu items. Also, open Notepad and try the following: Send("!f") Send Alt+f, the access key for Notepad's file menu. Try other letters! er alt command is ("!F) ? Edited August 24, 2008 by MyWish Link to comment Share on other sites More sharing options...
dbzfanatic Posted August 24, 2008 Share Posted August 24, 2008 No just the ! is the key for alt and not {ALT}. if you want to press alt+f4 then you need Send("!{F4}") Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote] Link to comment Share on other sites More sharing options...
MyWish Posted August 24, 2008 Author Share Posted August 24, 2008 I have no more question Link to comment Share on other sites More sharing options...
dbzfanatic Posted August 24, 2008 Share Posted August 24, 2008 I have no more question I have one for you,why do you need to close a window with alt+f4? What are you closing? Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote] Link to comment Share on other sites More sharing options...
MyWish Posted August 24, 2008 Author Share Posted August 24, 2008 (edited) Well it would be hard to explain this is a game and I rly need to close it in every 30 mins or so and then restart it. Is a script able to start a file from my desktop ? Edited August 24, 2008 by MyWish Link to comment Share on other sites More sharing options...
dbzfanatic Posted August 24, 2008 Share Posted August 24, 2008 Well it would be hard to explain this is a game and I rly need to close it in every 30 mins or so and then restart it. Is a script able to start a file from my desktop ?Yes just use the Run() command but why would you need to restart the game? Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote] Link to comment Share on other sites More sharing options...
MyWish Posted August 24, 2008 Author Share Posted August 24, 2008 cause it freezes like hell ... er could you gimme an example for instance I'd like the script to run the olimpia.exe from my desktop ? Link to comment Share on other sites More sharing options...
dbzfanatic Posted August 24, 2008 Share Posted August 24, 2008 Run("C:\Documents and settings\YourUsername\Desktop\olimpia.exe) ;xp Run("C:\Users\YourUsername\Desktop\olimpia.exe") ;vista Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote] Link to comment Share on other sites More sharing options...
MyWish Posted August 24, 2008 Author Share Posted August 24, 2008 Ty very much Link to comment Share on other sites More sharing options...
MyWish Posted August 24, 2008 Author Share Posted August 24, 2008 (edited) error messege unterminated string never mind it works. Edited August 24, 2008 by MyWish Link to comment Share on other sites More sharing options...
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