| Author |
Message |
Forum: Support Topic: lose delay from setTime / KeyWait with GetKeyState? [SOLVED] |
| deandoe |
|
Posted: October 15th, 2008, 11:10 pm
|
|
Replies: 9 Views: 881
|
| the solution is the usage of: A_TimeSinceThisHotkey thanks to laz0r in the irc channel #ahk =) $r:: KeyWait r If A_TimeSinceThisHotkey > 200 Send a Else Send r Return this function will always type an r (as rapid as writing other characters) when typing in a word processor but will execute a functio... |
|
 |
Forum: Support Topic: lose delay from setTime / KeyWait with GetKeyState? [SOLVED] |
| deandoe |
|
Posted: October 15th, 2008, 10:38 am
|
|
Replies: 9 Views: 881
|
| thnx, so may i conclude that the answer to the topic question is no ? every function (setTime, KeyWait, GetKeyState) created has it's delay at the beginning of the script; there will be always a, no matter how short, a delay? when typing all functions fail, no becomes on.. so the proposed function i... |
|
 |
Forum: Support Topic: lose delay from setTime / KeyWait with GetKeyState? [SOLVED] |
| deandoe |
|
Posted: October 14th, 2008, 11:16 pm
|
|
Replies: 9 Views: 881
|
| i'm not giving up and still try to make things work. since my programming experience is not that great i hope someone could tell me if it's even possible to perform an action like this. or that i'm trying to do the impossible. thanks anyway. GetKeyState, state, r ;define the button which will be wat... |
|
 |
Forum: Support Topic: lose delay from setTime / KeyWait with GetKeyState? [SOLVED] |
| deandoe |
|
Posted: October 13th, 2008, 1:28 pm
|
|
Replies: 9 Views: 881
|
| based on my previous posts i figured out that both the constructions SetTimer and KeyWait for performing different actions when pressing 1 button once (maintain original function, typing the letter r) or twice (call function x) brings a significant delay. (when typing words involving r the effect is... |
|
 |
Forum: Support Topic: when button gets quickly pressed twice |
| deandoe |
|
Posted: October 12th, 2008, 12:59 pm
|
|
Replies: 5 Views: 695
|
| [topic problem solved, delay NOT] so i did some more searching, and i did find another script which with some modifications is nearly perfect. the only problem here is the delay.. so if someone has other suggestions.. (how to decrease the delay..) AutoCast(grid) { If (grid = 0) ... |
|
 |
Forum: Support Topic: when button gets quickly pressed twice |
| deandoe |
|
Posted: October 11th, 2008, 3:34 pm
|
|
Replies: 5 Views: 695
|
| many thanks for the quick reply! now when pressing r once it indeed produces an r, when pressing twice it indeed moves the cursor etc.. only it also writes an r so: while it should be: r->r rr-> (a.k.a. nothing it only should execute the autocast function, and not type an r and execute the function)... |
|
 |
Forum: Support Topic: when button gets quickly pressed twice |
| deandoe |
|
Posted: October 11th, 2008, 2:11 pm
|
|
Replies: 5 Views: 695
|
| thanks for your reaction, but indeed it doesn't solve the problem. the program i use this script for doesn't require any double rr's to be typed (typing is not possible in the program). it's an function in the program which you can access by the hotkey r. but when you use that function a lot you can... |
|
 |
Forum: Support Topic: when button gets quickly pressed twice |
| deandoe |
|
Posted: October 11th, 2008, 2:11 am
|
|
Replies: 5 Views: 695
|
| okay i did my searches and found useful scripts for my problem, i combined them but one little thing is missing... basically, when i press r (once, it types an r), when i press r (twice) the mouse cursor moves to a certain position on the screen, right clicks and moves back to the original position.... |
|
 |
Forum: Support Topic: two actions one button |
| deandoe |
|
Posted: October 2nd, 2008, 7:53 pm
|
|
Replies: 2 Views: 429
|
| okay i figured some things out... the only problem left is to keep track if the enter button is pressed or not... ill keep trying though Enter:: MyVar = 10 if MyVar = 10 { MsgBox MyVar is %MyVar% Suspend,On ;here i want to interrupt the code and set MyVar to 15 when "Enter" is pressed... |
|
 |
Forum: Support Topic: two actions one button |
| deandoe |
|
Posted: October 2nd, 2008, 2:18 pm
|
|
Replies: 2 Views: 429
|
| in many games the ENTER button opens the chat. but because i reassigned key's, typing becomes a real challenge ;) so i just assigned the "suspend" function to a different key. Numpad0::Suspend but i cant stand the fact that i must press two buttons before i can chat. so i came up with the ... |
|
 |
Forum: Support Topic: reassign assigned button |
| deandoe |
|
Posted: October 1st, 2008, 11:37 pm
|
|
Replies: 5 Views: 481
|
| hi, i really hate to post newbie questions :oops: - i did what i could - used search (double key, duplicate hotkey, swap keys, etc, read the FAQ, googled).. no luck so far... i am experimenting with some simple scripts but i already run in some problems... i want the letter a to produce letter b a::... |
|
 |
| Sort by: |