Jump to content
Sign in to follow this  
Hello Me You

3 Questions

Recommended Posts

Hello Me You

Question #1:

What is the difference of HotKeySet and _IsPressed

Question #2:

Can you move a window?

Question #3:

With a hotkey I want to copy and paste the selected text (e.g. from Internet Explorer or Word/Excel etc.) to an opened text file (without activating the notepad window - while it is minimized).

Is it possible?


Random

Share this post


Link to post
Share on other sites
Shevilie

Answer #1:

Look in helpfile

Answer #2:

Look in helpfile

Answer #3:

Yes - Look in helpfile

Edited by Shevilie

Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit

Share this post


Link to post
Share on other sites
Hello Me You

Answer #1:

I still can't understand the difference

Answer #2:

WinMove - OK

Answer #3:

Send the selected text - I can't do it

Send to minimized window - OK

And I have a 4th question :whistle:

Question #4:

I have set some hotkeys. Can I add two more hotkeys, that they enable and disable the other hotkeys?

Edited by Hello Me You

Random

Share this post


Link to post
Share on other sites
Shevilie

Well the main difference between _IsPressed and HotKeySet is that the HotKey runs a function when the "hotkey" is pressed... The _IsPressed can check if a button is pressed at the time the program "launches" the line

Answer #4

You wont belive it - Look in the helpfile :whistle:

About the selected text, i think theres an UDF somewhere on the forum

Edited by Shevilie

Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit

Share this post


Link to post
Share on other sites
Hello Me You

hahahah, i looked the help file.... i cant find anything about hotkey enabling and disabling


Random

Share this post


Link to post
Share on other sites
Shevilie

Look again.. And I suggest HotKetSet :whistle: Its a bit tricky but its there


Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit

Share this post


Link to post
Share on other sites
Hello Me You

.....

I have some hotkeys. I just want with F1 to enable them and with F2 disable them


Random

Share this post


Link to post
Share on other sites
Shevilie

Here you go...

HotKeySet("F1", "_EnableKey")
HotKeySet("F2", "_DisableKey")

Func _EnableKey()
    HotKeySet("q","Func1")
    HotKeySet("w","Func2")
    HotKeySet("e","Func3")
    HotKeySet("r","Func4")
    HotKeySet("t","Func5")
    HotKeySet("y","Func6")
    ....
    
EndFunc

Func _DisableKey()
    HotKeySet("q")
    HotKeySet("w")
    HotKeySet("e")
    HotKeySet("r")
    HotKeySet("t")
    HotKeySet("y")
    ....
EndFunc

Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit

Share this post


Link to post
Share on other sites
Hello Me You

Here you go...

HotKeySet("F1", "_EnableKey")
HotKeySet("F2", "_DisableKey")

Func _EnableKey()
    HotKeySet("q","Func1")
    HotKeySet("w","Func2")
    HotKeySet("e","Func3")
    HotKeySet("r","Func4")
    HotKeySet("t","Func5")
    HotKeySet("y","Func6")
    ....
    
EndFunc

Func _DisableKey()
    HotKeySet("q")
    HotKeySet("w")
    HotKeySet("e")
    HotKeySet("r")
    HotKeySet("t")
    HotKeySet("y")
    ....
EndFunc
Finally... thanks Shevilie

Random

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  

×