Jump to content

3 Questions


Recommended Posts

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...