Jump to content
Sign in to follow this  
Zortarg

a little problem with the synthax

Recommended Posts

Zortarg

i want some simple script to have multiple control. but some things i cant do (or that are not working correctly).

i want multiple actions with one key. thats not realy the problem. but all my trys to script ALT+F1 and CTRL+F1 have failed. im sure its just a simple synthax thing or just a litte stupid mistake. i have only limited scripting and programming experiense so be kind with me... :P

here are my trys:

first:

Func ALTF1()

send("{ALT}+{F1}")

EndFunc

second:

Func ALTF1()

send("{ALTDOWN}")

send("{F3}")

send("{ALTUP}")

EndFunc

would realy be nice if someone could help me out....

Share this post


Link to post
Share on other sites
martin

i want some simple script to have multiple control. but some things i cant do (or that are not working correctly).

i want multiple actions with one key. thats not realy the problem. but all my trys to script ALT+F1 and CTRL+F1 have failed. im sure its just a simple synthax thing or just a litte stupid mistake. i have only limited scripting and programming experiense so be kind with me... :P

here are my trys:

first:

Func ALTF1()

send("{ALT}+{F1}")

EndFunc

This will send ALt (down then up), then '+' then F1

second:

Func ALTF1()

send("{ALTDOWN}")

send("{F3}")

send("{ALTUP}")

EndFunc

.

The second way shpould work if you used {F1} instead of {F3}

It's explained very clearly in the help with examples. To send Alt + F1

Send( "!{F1}")

To send Ctrl + F1

Send("^{F1}")

Edited by martin

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

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  

×