Sign in to follow this  
Followers 0
Forge

Isn't there something like..

4 posts in this topic

On {F1} Then

Do something

Stop

I want to do something when someone press F1, then I just want the script to Idle until it's pressed again.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

hotkeyset

Edited by emmanuel

"I'm not even supposed to be here today!" -Dante (Hicks)

Share this post


Link to post
Share on other sites

$osversion = @OSVersion

$DesktopWidth = @DesktopWidth
$DesktopHeight = @DesktopHeight
$answer = MsgBox(4, "Forge System Information (Test)", "Writes your system specs.")
if $answer = 7 Then
MsgBox(0, "Exit", "Exiting.")
exit
EndIf
Func Resolution()
Send ("My computer is running " & $OSVersion & ". I am also using the resolution " & $DesktopWidth & "x" & $DesktopHeight & ". Tibia System Spec 1.0.")
EndFunc
AutoItSetOption("SendKeyDelay", 10)
HotKeySet ( "{+F1}", "Resolution" )

I want it script to stay "on"

Share this post


Link to post
Share on other sites

HoyKeySet is needed write to Start.

and...

HotKeySet ( "+{F1}", "Resolution" )

OR

HotKeySet ( "{F1}", "Resolution" )

But don't:

HotKeySet ( "{+F1}", "Resolution" )

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  
Followers 0