Key Press Script
#1
Posted 30 January 2007 - 01:01 AM
Press key "1" to activate the loop of Z.
Key Z is looped (pressed over and over till otherwise..)
Press key "1" a second time to stop the loop of Z
#2
Posted 30 January 2007 - 01:08 AM
http://www.autoitscript.com/autoit3/docs/f...s/HotKeySet.htmIts me again, I can't get the key macro to work. Could someone please give me a full example script instead of telling to look myself, I found the help file but its not what I want because the example is mixed up with a GUI window create, and isn't the kind of key press I want, its just a hotkey for pause script or something. So could someone please give me an example script that does the following:
Press key "1" to activate the loop of Z.
Key Z is looped (pressed over and over till otherwise..)
Press key "1" a second time to stop the loop of Z
Has the only example you need.
Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
#3
Posted 30 January 2007 - 01:29 AM
http://www.autoitscript.com/forum/index.php?showtopic=40326Its me again, I can't get the key macro to work. Could someone please give me a full example script instead of telling to look myself, I found the help file but its not what I want because the example is mixed up with a GUI window create, and isn't the kind of key press I want, its just a hotkey for pause script or something. So could someone please give me an example script that does the following:
Press key "1" to activate the loop of Z.
Key Z is looped (pressed over and over till otherwise..)
Press key "1" a second time to stop the loop of Z
Is the only topic you need for this subject.
#4
Posted 30 January 2007 - 01:41 AM
.....
......
..........*Ignores the posts above seeming they didn't read*....
Can someone post an example script?
#5
Posted 30 January 2007 - 01:58 AM
Not to sound insulting but you only need to add two example scripts together that were provided in that previous thread.....
.....
......
..........*Ignores the posts above seeming they didn't read*....
Can someone post an example script?
Edited by BALA, 30 January 2007 - 02:01 AM.
#6
Posted 30 January 2007 - 02:06 AM
If_IsPressed(31)<-----How is that 1?Not to sound insulting but you only need to add two example scripts together that were provided in that previous thread.
Oh, and what would the keys be for numpad 1-9, insert, home, page up, delete, end, page down
#7
Posted 30 January 2007 - 02:08 AM
From help file under _IsPressed:
60 Numeric keypad 0 key 61 Numeric keypad 1 key 62 Numeric keypad 2 key 63 Numeric keypad 3 key 64 Numeric keypad 4 key 65 Numeric keypad 5 key 66 Numeric keypad 6 key 67 Numeric keypad 7 key 68 Numeric keypad 8 key 69 Numeric keypad 9 key
Edited by BALA, 30 January 2007 - 02:11 AM.
#8
Posted 30 January 2007 - 02:18 AM
You resemble that remark.....
.....
......
..........*Ignores the posts above seeming they didn't read*....
Can someone post an example script?
Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
#10
Posted 30 January 2007 - 02:24 AM
Did you even read my post....the 31 is a hexkey for the key "1"
From help file under _IsPressed:
60 Numeric keypad 0 key 61 Numeric keypad 1 key 62 Numeric keypad 2 key 63 Numeric keypad 3 key 64 Numeric keypad 4 key 65 Numeric keypad 5 key 66 Numeric keypad 6 key 67 Numeric keypad 7 key 68 Numeric keypad 8 key 69 Numeric keypad 9 key
If you want numerical 0 for example, you would replace 31 with 60. 61 if you want numerical 1, 62 for numerical 2, etc.
Edited by BALA, 30 January 2007 - 02:25 AM.
#11
Posted 30 January 2007 - 02:27 AM
Oh, damn...you're totally right. Me referring you to your previous topic makes it perfectly clear that I didn't read...*Ignores the posts above seeming they didn't read*....
Eehm, I don't see the logic in that. Also, please do explain how it's needed to create another topic one hour after
the last post in your previous topic on the very same subject.
#12
Posted 30 January 2007 - 02:29 AM
#13
Posted 30 January 2007 - 03:31 AM
Stop getting people to work for you. All the necessary information has been given to you, they referred IsPressed and HotkeySet, which are the two functions you are looking for. Open up the damn helpfile, read the information, attempt a "test", experiment, then, if all fails, come back for a little more advice.Did you even read my post? Re-read it...
Kurt
#14
Posted 30 January 2007 - 03:32 AM
You reject the statements of 2 regulars(Smoke_N and Helge) on the forum without reading their posts? And then have the intestinal fortitude to actually accuse them of not reading?
Do you have a brain defect?
And why would you used "_IsPressed" for this script? This problem is much quicker and easier to solve with "Hotkeyset" as mentioned above.
Copied straight from smokes link with minor alterations:
; Press Esc to terminate script Global $UnPaused HotKeySet("1", "TogglePause") HotKeySet("{ESC}", "Terminate") While 1 Sleep(100) ToolTip("Script is Paused",0,0) WEnd Func TogglePause() $UnPaused = NOT $UnPaused While $UnPaused ToolTip("Sending...",0,0) Send("z") WEnd EndFunc Func Terminate() Exit 0 EndFunc
I wanna hear some apologies from you mouth.
Edited by Paulie, 30 January 2007 - 03:34 AM.
#15
Posted 12 December 2011 - 10:35 PM
#16
Posted 12 December 2011 - 10:51 PM
#17
Posted 12 December 2011 - 11:06 PM
Edited by IanN1990, 13 December 2011 - 07:24 AM.
#18
Posted 17 December 2011 - 10:39 PM
Yeah i do and i must be pretty "interesting" to you considering you are watching what i postKrankios, do you realize you posted in a 4 year old thread?
#19
Posted 18 December 2011 - 01:28 AM
Well I do read most new posts, but when they're from you, I just can't click fast enough..Yeah i do and i must be pretty "interesting" to you considering you are watching what i post
#20
Posted 18 December 2011 - 09:27 AM
Not interesting and please don't do this unless there is a real use for it.Yeah i do and i must be pretty "interesting" to you considering you are watching what i post
Jos
Visit the SciTE4AutoIt3 Download page for the latest versions Forum Rules
Live for the present,
Dream of the future,
Learn from the past.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users





