Search found 105 matches
- 28 Nov 2016, 08:55
- Forum: Ask for Help (v1)
- Topic: Global Variable issue
- Replies: 13
- Views: 1915
Re: Global Variable issue
the script are suppose to turbo "a" every 1 sec when you hold down "a". But even if I use your one, the script still just ignore that "sleep sleeptime" which suppose to be "sleep 1000". try this: *a:: ;"*", keyboard physical "a" key instead "a" logical key Send {a} ;this is a logical "a" key or som...
- 27 Nov 2016, 17:46
- Forum: Ask for Help (v1)
- Topic: Why defining variables through Functions is too slow? Is there any workaround to make it faster?
- Replies: 23
- Views: 3893
Re: Why defining variables through Functions is too slow? Is there any workaround to make it faster?
Haha, "Tha Sir Mister Funny Guy" always making me Laugh as Hell!LolLolLolLolLolLolLolLolLolLolLolLol ....!just me wrote: I'm so sorry master, ...
- 27 Nov 2016, 09:02
- Forum: Ask for Help (v1)
- Topic: Why defining variables through Functions is too slow? Is there any workaround to make it faster?
- Replies: 23
- Views: 3893
Re: Why defining variables through Functions is too slow? Is there any workaround to make it faster?
And you are really opinionated my friend! Haha, you really know how to make me Laugh Out Loud, Lol! You are really, really, really funny my friend! I already gave up on this, but anyway, your 2 functions seems to be pretty fast! (I will keep testing them to certify if they are bug-free) by the way,...
- 26 Nov 2016, 23:55
- Forum: Ask for Help (v1)
- Topic: Why defining variables through Functions is too slow? Is there any workaround to make it faster?
- Replies: 23
- Views: 3893
Re: Why defining variables through Functions is too slow? Is there any workaround to make it faster?
It would make more sense and likely perform better to just use an array when you want an array (or call it a sequence, a list, whatever). If you want multiple arrays, then use multiple array objects. Instead of static Array := [] , use static ArrayKey := [], ArrayValue := [] . Instead of Array["Key...
- 26 Nov 2016, 23:34
- Forum: Ask for Help (v1)
- Topic: Why defining variables through Functions is too slow? Is there any workaround to make it faster?
- Replies: 23
- Views: 3893
Re: Why defining variables through Functions is too slow? Is there any workaround to make it faster?
Wow!!! Now I'm really in Shock!!! My last hope was to use "LoopParse" and "StringReplace", but they proved to be a tremendous slowness disaster!!! here is the code (for 5000 Rows, the function took 128561 milliseconds to finish its task): File = VarWrite - VarRead (LoopParse - Test).txt gui, add, te...
- 26 Nov 2016, 20:08
- Forum: Ask for Help (v1)
- Topic: ControlClick paint example Topic is solved
- Replies: 5
- Views: 4090
Re: ControlClick paint example Topic is solved
Thank you so mutch! Its working well! Also, i could write it to the program i want. In the program what i need this, the x,y coordinate is not working, but when i pointing to the position, where the macro should click and press alt+tap to other app its doing the job well, so again thank you! You ar...
- 26 Nov 2016, 18:07
- Forum: Scripts and Functions (v1)
- Topic: My understanding of Global, Static and Local Variables
- Replies: 15
- Views: 5092
Re: My understanding of Global, Static and Local Variables
Off course I know! I wanted to post a very pretty useful script, and I just did it!
- 26 Nov 2016, 18:05
- Forum: Ask for Help (v1)
- Topic: Why defining variables through Functions is too slow? Is there any workaround to make it faster?
- Replies: 23
- Views: 3893
Re: Why defining variables through Functions is too slow? Is there any workaround to make it faster?
Haha, you are really funny my friend!just me wrote:Why should it? If you have to solve a special problem use a suitable function. If you want to dream on your dream of "one size fits all", just dream on. But do not complain about less performance, then.
- 26 Nov 2016, 17:21
- Forum: Ask for Help (v1)
- Topic: ControlClick paint example Topic is solved
- Replies: 5
- Views: 4090
Re: ControlClick paint example Topic is solved
Try this (press "k" to Exit Script if anything goes wrong): x = 150 y = 250 run, mspaint, , , PaintPid ;stores the executed paint Process id (Pid) in "PaintPid" variable loop { ControlClick, x%x% y%y%, ahk_pid %PaintPid% ;"ahk_pid" search windows by their Process Id (Pid) x++ y++ sleep, 50 } k:: ;__...
- 26 Nov 2016, 15:55
- Forum: Gaming Help (v1)
- Topic: WheelDown WheelUp script
- Replies: 4
- Views: 6706
Re: WheelDown WheelUp script
$WheelDown:: ;________________________ loop, 10 ;adjust to any desired number Send {K} return or WheelDown: Send "k" \ WheelUp: Stop Send "k" $WheelDown:: ;________________________ SetTimer, SendK, 50 return $WheelUp:: ;________________________ SetTimer, SendK, Off return SendK: ;__________________...
- 26 Nov 2016, 13:00
- Forum: Ask for Help (v1)
- Topic: Why defining variables through Functions is too slow? Is there any workaround to make it faster?
- Replies: 23
- Views: 3893
Re: Why defining variables through Functions is too slow? Is there any workaround to make it faster?
Compare the two functions in the following script, please: My friend, I just used "Row" Keys as example! Can your function deal with the example below? (My function can): Iterations = 5 loop, %Iterations% ArrayWrite("Row" a_index, a_index) loop, %Iterations% ArrayWrite("Col" a_index, a_index) loop,...
- 26 Nov 2016, 11:36
- Forum: Scripts and Functions (v1)
- Topic: My understanding of Global, Static and Local Variables
- Replies: 15
- Views: 5092
Re: My understanding of Global, Static and Local Variables
You can do whatever you want with this thread! It's up to you!just me wrote:If you want changes in behaviour, I could move this thread to 'Wish List'.
- 26 Nov 2016, 11:22
- Forum: Ask for Help (v1)
- Topic: Why defining variables through Functions is too slow? Is there any workaround to make it faster?
- Replies: 23
- Views: 3893
Re: Why defining variables through Functions is too slow? Is there any workaround to make it faster?
"IniWrite" is the slowest one for sure (Called 5000 Times and took 160931 milliseconds to finish its task): File = IniWrite - IniRead (Test).txt FileDelete, %File% ;Delete File gui, add, text, w300 r10 center 0x200 , Please Wait!!! ;"0x200" center text vertically (but "`n" or "`r`n" will not represe...
- 26 Nov 2016, 08:50
- Forum: Scripts and Functions (v1)
- Topic: My understanding of Global, Static and Local Variables
- Replies: 15
- Views: 5092
Re: My understanding of Global, Static and Local Variables
I think that "Static" should have the same effect that "Static x" has over "x" Super-Global Variable!
and
"Local" should be a valid AutoHotkey Command and should have the same effect that "Local x" has over "x" Super-Global Variable!
and
"Local" should be a valid AutoHotkey Command and should have the same effect that "Local x" has over "x" Super-Global Variable!
- 25 Nov 2016, 22:28
- Forum: Scripts and Functions (v1)
- Topic: My understanding of Global, Static and Local Variables
- Replies: 15
- Views: 5092
Re: My understanding of Global, Static and Local Variables
Super-Global variables issues with functions "Static" Mode: global x ;since this global variable is outside a function, All Functions will write\Read the same "x" variable from the Main Script, instead their own "x" variables ;so "x" is a "Super-Global" Variable loop, 10 test() msgbox, from Main Scr...
- 25 Nov 2016, 20:30
- Forum: Ask for Help (v1)
- Topic: Why defining variables through Functions is too slow? Is there any workaround to make it faster?
- Replies: 23
- Views: 3893
Re: Why defining variables through Functions is too slow? Is there any workaround to make it faster?
Try same in AHK_H , because of this 'problem' I have separated static and local var arrays internally. See end of page AHK_H New Features . I want to make a function that works reasonably fast with the official AutoHotKey, though I think "AutoHotkey_H" is better since it contains extra functionalit...
- 23 Nov 2016, 12:07
- Forum: Ask for Help (v1)
- Topic: Simplify these RegEx !? Topic is solved
- Replies: 23
- Views: 4999
Re: Simplify these RegEx !? Topic is solved
With your code I have all the lines beetween Look Down: and ***** But I need to have the result ONLY if there is just one line if TotalResultFound > 1 { ResultText = More than 1 Result found break } text= ( line1 line2 line3 Look Down: ResultLine ResultLine2 ResultLine3 ****************************...
- 23 Nov 2016, 11:25
- Forum: Ask for Help (v1)
- Topic: Simplify these RegEx !? Topic is solved
- Replies: 23
- Views: 4999
Re: Simplify these RegEx !? Topic is solved
@V for Vendetta I've done the *t this (?:\n|\r)).*?(?=\R\*{78}) doesn't work use "loop, parse" instead "RegEx", much easier and faster example: text= ( line1 line2 line3 Look Down: ResultLine ResultLine2 ResultLine3 ****************************************************************************** ) lo...
- 23 Nov 2016, 10:53
- Forum: Ask for Help (v1)
- Topic: Simplify these RegEx !? Topic is solved
- Replies: 23
- Views: 4999
Re: Simplify these RegEx !? Topic is solved
Thanks, I needed also to escape the parentheses. I don't know why but this is working with the text= but not with a fileread, text, %file% Again thanks. I will do what I can to understand why it's not working with the fileread use "*t" option while reading the file (translate any "`r`n" to "`n") Fi...
- 23 Nov 2016, 07:47
- Forum: Scripts and Functions (v1)
- Topic: My understanding of Global, Static and Local Variables
- Replies: 15
- Views: 5092
Re: My understanding of Global, Static and Local Variables
Off course it is! It seems pretty suitable for general use!just me wrote:Your code is not suitable for general use. Is it intended to be some kind of tutorial or is it a question? It will be moved to the corresponding forum.
It's neither a question nor a tutorial! It's just a pretty useful script!