Search found 34 matches
- 16 Nov 2022, 12:31
- Forum: Ask for Help (v1)
- Topic: calling key assignment runs only once.. (also disables other system keys)
- Replies: 1
- Views: 151
calling key assignment runs only once.. (also disables other system keys)
; Copy part from the Old 67` bak text file ; ---------------------------------------- NumpadDiv:: coordMode, toolTip, screen toolTip, Collectiong Positions and Orders,,,5 soundPlay, %A_WorkingDir%\Sounds\Human sounds\milord3_q.wav, 1 Xtemp:=-1 counter:=0 ;MsgBox, 0,,Xtemp is %Xtemp%,2 while Xtemp!=...
- 10 Aug 2022, 02:37
- Forum: Ask for Help (v1)
- Topic: How to read graph 'values' accurately and reliably
- Replies: 2
- Views: 372
How to read graph 'values' accurately and reliably
I'm writing code that should read a graph (yellow color pixels) and give a sound signal when the graph goes up and another sound signal when the graph goes down (it should also send commands to Buy or Sell, but for that, accuracy is mandatory). The problem is that the graph in many cases gives sever...
- 31 Jul 2022, 13:01
- Forum: Ask for Help (v1)
- Topic: what effects A_TimeIdle ??
- Replies: 2
- Views: 516
Re: what effects A_TimeIdle ??
It seems to solve the problem but the real test will be tomorrow during trading hours..
Thank you.
James
Thank you.
James
- 31 Jul 2022, 04:40
- Forum: Ask for Help (v1)
- Topic: what effects A_TimeIdle ??
- Replies: 2
- Views: 516
what effects A_TimeIdle ??
I have a script that reads graphic data (pixel color) from the screen. In the routine that calls the function, I inserted a line that won't allow the function to run unless A_TimeIdle is grater then 12 seconds. In the body of the function I am posting toolTips and playing sounds (when the graph chan...
- 27 Jul 2022, 09:25
- Forum: Ask for Help (v1)
- Topic: Timer dosn't stop.. ?!
- Replies: 1
- Views: 312
Timer dosn't stop.. ?!
Instead of stopping the script completely, I disable some running timers (leaves one to run). The problem is that even after I disable the timers, they (actually there is only one), even though according to the script it should be off (a timer that runs every 250ms) keep doing its work (I hear it's ...
- 19 Jul 2022, 09:20
- Forum: Ask for Help (v1)
- Topic: how to combine A_TimeIdle with other conditions in one 'if'
- Replies: 1
- Views: 156
how to combine A_TimeIdle with other conditions in one 'if'
I want to check a certain situation, only when the mouse was visiting a certain area on a particular window (x, y). How do you do that? In the meantime, I'm trying to write a condition that say no mouse position change since A_TimeIdle > 12 seconds. All this in one if command. Something like that: i...
- 14 Jul 2022, 03:27
- Forum: Ask for Help (v1)
- Topic: Slow execution of the script (compare to the old script)
- Replies: 1
- Views: 284
Slow execution of the script (compare to the old script)
Few years back I wrote a script for watching & tracking a certain "yellow line", signaling with sound whenever the price advances or retracts. Now I am writing a new script, lighter, with #Include for functions, running on vmWare under linux. My feeling is that the old script (AutoHotKey 1.1.24.00),...
- 01 Jul 2022, 19:09
- Forum: Ask for Help (v1)
- Topic: return multiple vars from an #include script ?
- Replies: 7
- Views: 850
Dear Sir, I apologize.
By saying "I do not have time to read" I did not meant to the four lines in your previous answer, but to the 232 lines explaining the value 'variable scope'. I am sorry that you got offended from me. I didn't meant to disrespect you nor your explanations. I apologize to you . In spite of my busy sch...
- 30 Jun 2022, 18:03
- Forum: Ask for Help (v1)
- Topic: return multiple vars from an #include script ?
- Replies: 7
- Views: 850
Re: 'variable scope' ??!
I started reading about 'variable scope' and it's quite a lot to read.. I do not have that much time for it and I am looking for a quick fix. Is there any definition I should apply for the system to detect variables that should be visible in both scripts? I learned to use ByRef and it works for me. ...
- 29 Jun 2022, 12:37
- Forum: Ask for Help (v1)
- Topic: return multiple vars from an #include script ?
- Replies: 7
- Views: 850
Doesn't work..
This is (part of) the main script. It calls a routine : get_yValues() That routine changes thouse testVar[1-6] but in the main script, these changes doesn't show. The Main script: Yellow_chk: testVar1:=999 testVar2:=888 testVar3:=777 testVar4:=666 testVar5:=555 testVar6:=444 get_yValues() msgbox, 0,...
- 29 Jun 2022, 09:01
- Forum: Ask for Help (v1)
- Topic: return multiple vars from an #include script ?
- Replies: 7
- Views: 850
return multiple vars from an #include script ?
From a function that runs in a separate script (as #include)
I should return about 6 VAR values to the main script.
How do I do that?
James
I should return about 6 VAR values to the main script.
How do I do that?
James
- 27 Jun 2022, 05:56
- Forum: Ask for Help (v1)
- Topic: read in Relative mode from a visible window that is not 'activated' ??
- Replies: 2
- Views: 375
read in Relative mode from a visible window that is not 'activated' ??
I am familiar with the 'winActivate' function and use it. But now I would like to ask if it possible to read data from a visible window in Relative mode without it being activated in front of the other windows? I added a Screenshot. In the picture, you see three windows. The middle one is the "top" ...
- 22 Jun 2022, 08:12
- Forum: Ask for Help (v1)
- Topic: #include disables Timers? Topic is solved
- Replies: 5
- Views: 349
Ok, now it works.. Topic is solved
OK, After I moved those lines to the bottom, the main script finally started to work as expected.
I still don't fully understand why it behaves like this, but for now, I can continue with writing the script.
Thank you,
James
I still don't fully understand why it behaves like this, but for now, I can continue with writing the script.
Thank you,
James
- 22 Jun 2022, 07:55
- Forum: Ask for Help (v1)
- Topic: #include disables Timers? Topic is solved
- Replies: 5
- Views: 349
The main code.. Topic is solved
The error also occurs when the code line #SingleInstance force is enabled. I have a hard time believing that the culprit is in the code location. In any case, the most noticeable fault is that the keepAlive subroutine located at the end of the script - set to run SetTimer timer, keepAlive, 5000 (lin...
- 22 Jun 2022, 07:00
- Forum: Ask for Help (v1)
- Topic: #include disables Timers? Topic is solved
- Replies: 5
- Views: 349
#include disables Timers? Topic is solved
I recently went back to programming. In the past, I always used with single script. Now that I have installed the latest version (v1.1.33.10), I am experimenting with splitting the script, building a sub_script for repetitive functions. In the main script, I use #include <filename> to link the sub_s...
- 31 Jul 2018, 01:03
- Forum: Ask for Help (v1)
- Topic: Subroutine, behaves differently when activated from another script.. ??
- Replies: 4
- Views: 805
Re: Subroutine, behaves differently when activated from another script.. ??
A syntax error or sloppy copy pasting... Dont assume people are going to know all your code you do not post. ie: there isnt even a return for your hotkey. Ok. Here is the full subroutine Multi_Actions: RAlt & F12:: ;Also allow RAlt. It does not work without this assignment !F12:: ;<ALT><F12> - imme...
- 30 Jul 2018, 17:41
- Forum: Ask for Help (v1)
- Topic: Subroutine, behaves differently when activated from another script.. ??
- Replies: 4
- Views: 805
Re: Subroutine, behaves differently when activated from another script.. ??
No, that just the end of my quoteXtra wrote:Typo?
mouseClick, Left, xPosition%c
Beside - It belong to the D type command (double click). Nothing to do with the Move command.
Only the Move command uses the mouse position as an optional destination.
James
- 30 Jul 2018, 12:47
- Forum: Ask for Help (v1)
- Topic: Subroutine, behaves differently when activated from another script.. ??
- Replies: 4
- Views: 805
Subroutine, behaves differently when activated from another script.. ??
Hello all, I wonder if there is an explanation to a situation I encountered. I have a main script that monitor a stock graph. when the graph rises over (or declines below) a particular level, my script performs a subroutine that basically sends a predefined bunch of mouse movements & clicks. Lately,...
- 18 Jan 2017, 13:42
- Forum: Ask for Help (v1)
- Topic: Gui, Add, Progress, display nothing.. Topic is solved
- Replies: 4
- Views: 1769
Re: Gui, Add, Progress, display nothing.. Topic is solved
Thanks hunter99 but it seems that I solved the mystery. In the end, the other two Gui's controls panels (checkBox type) they was the cause that blocked the 'Gui, Add, Progress..' I had to give the 'Gui, Add, Progress' also a number to be able to refer to it separately. Here is a combined three GUIs ...
- 18 Jan 2017, 05:14
- Forum: Ask for Help (v1)
- Topic: Gui, Add, Progress, display nothing.. Topic is solved
- Replies: 4
- Views: 1769
Re: Gui, Add, Progress, display nothing.. Topic is solved
It is about 3,000 lines code... :o Ok, I'll do it by showing you the main parts: This part: Define the function : !F3:: ;<ALT><F3>> = trail enable pause, off P=-1 ;Pause = 1; un_Pause= -1 Suspend, on toolTip,,,,4 ;Clear toolTip! trail_Size:=1 trail_Title= gosub set_levels trail_Size:=LY1-UY1 Upper_Y...