Search found 160 matches

by Marcosa1020
17 Sep 2017, 06:14
Forum: Ask For Help
Topic: How can I use the %A_Index% code ?
Replies: 2
Views: 461

How can I use the %A_Index% code ?

Hi, How can I to simplify codeA to codeB ? Thanks. Code A: If (D6 = 4) and (D7 = 1) and (D2="8D") { GuiControl,1:,card1,1 Gosub, 8D_S1 GuiControl,1:,card1,2 Gosub, 8D_E2 GuiControl,1:,card1,3 Gosub, 8D_E3 GuiControl,1:,card1,4 Gosub, 8D_E4 GuiControl,1:,card1,5 Gosub, 8D_E5 } Code B: If (D6 = 4) and...
by Marcosa1020
15 Sep 2017, 08:04
Forum: Ask For Help
Topic: How to make "Gosub" stop after I press F7? Topic is solved
Replies: 13
Views: 1723

Re: How to make "Gosub" stop after I press F7? Topic is solved

I'm noticing that you are doing 20 loops, but only have 19 items in your myArray1 and myArray2. MsgBox % myArray1.length() . So when it asks for myArray1[20] and you don't have a value there, it treats it as a 0. And since that's the Y-coordinate, it'll be at the top of the screen. If you prefer, y...
by Marcosa1020
14 Sep 2017, 22:06
Forum: Ask For Help
Topic: How to make "Gosub" stop after I press F7? Topic is solved
Replies: 13
Views: 1723

Re: How to make "Gosub" stop after I press F7? Topic is solved

Hi, When Loop A is done. The mouse will move to the top left of the screen and click 2, then active Loop B. Why the mouse move to the top left of the screen and click 2 ? Thanks. 16D_S1: SetBatchLines -1 Send {Click, 11, 509, 2} Sleep 2000 GuiControl,1:,card2,1 myArray1:=[500,490,480,471,461,451,442...
by Marcosa1020
14 Sep 2017, 20:41
Forum: Ask For Help
Topic: How to make "Gosub" stop after I press F7? Topic is solved
Replies: 13
Views: 1723

Re: How to make "Gosub" stop after I press F7? Topic is solved

Exaskryz wrote:GuiControl,1:,card3,% 11-A_Index ; 10 to 1

A_Index will be 1 the first time, so doing 11-1 = 10. Then next time, 11-2 = 9.
Hi Exaskryz,

Thank you. :clap:
by Marcosa1020
14 Sep 2017, 20:15
Forum: Ask For Help
Topic: How to make "Gosub" stop after I press F7? Topic is solved
Replies: 13
Views: 1723

Re: How to make "Gosub" stop after I press F7? Topic is solved

Hi, Yes, I understand. Loop A GuiControl,1:,card3,%A_Index% is 1 to 10, how can I to set 10 to 1 at Loop B? Thank you. 16D_S1: SetBatchLines -1 Send {Click, 11, 509, 2} Sleep 2000 GuiControl,1:,card2,1 myArray1:=[500,490,480,471,461,451,442,432,422,413] Loop, 10 ;Loop A { GuiControl,1:,card3,%A_Inde...
by Marcosa1020
14 Sep 2017, 08:47
Forum: Ask For Help
Topic: How to make "Gosub" stop after I press F7? Topic is solved
Replies: 13
Views: 1723

Re: How to make "Gosub" stop after I press F7? Topic is solved

Hi, I have modified the script as below (Code A), when I press F7 can stop script. :bravo: But code A cursor position and code B cursor position is not the same. Why ??? :headwall: Code A: F7::stop:=True 16D_S1: SetBatchLines -1 Send {Click, 11, 509, 2} Sleep 2000 GuiControl,1:,card2,1 myArray:=[500...
by Marcosa1020
14 Sep 2017, 02:28
Forum: Ask For Help
Topic: How to make "Gosub" stop after I press F7? Topic is solved
Replies: 13
Views: 1723

Re: How to make "Gosub" stop after I press F7? Topic is solved

Hi, BoBo, Exaskryz, Thank you. 1. One error number 47: This parameter contains a variable name missing its ending percent sign. Send {Click, 11, % myArray[A_Index], 2} 2. Can not stop script after I press F7. Could you please check to me ? thanks. Pause::Pause F6::Reload F7:: stop:=True 16D_S1: SetB...
by Marcosa1020
14 Sep 2017, 00:06
Forum: Ask For Help
Topic: How to make "Gosub" stop after I press F7? Topic is solved
Replies: 13
Views: 1723

Re: How to make "Gosub" stop after I press F7? Topic is solved

Never ever saw that much redundant code. You should probably think about to invest some time in learning how to use functions (and arrays)! :) Hi BoBo, Yes, This is not a good script. Could you please modify some of my script ? Let me know how to use functions and arrays. Do you think the script is...
by Marcosa1020
13 Sep 2017, 21:45
Forum: Ask For Help
Topic: How to make "Gosub" stop after I press F7? Topic is solved
Replies: 13
Views: 1723

How to make "Gosub" stop after I press F7? Topic is solved

Hello everyone, I have 2 questions need your help. 1. If D3=0, D4=1 then I press "F5". How to make "Gosub" stop afrer I press F7 ? I used the "Exit" to control, but test is failed. 2. Sometimes while running script will be wrong, please see the attach file, I don't understand what is this. Thank you...
by Marcosa1020
03 Sep 2017, 22:14
Forum: Ask For Help
Topic: Variables Topic is solved
Replies: 2
Views: 604

Re: Variables Topic is solved

Hi Exaskryz,

Yes, Thank you.
by Marcosa1020
03 Sep 2017, 21:21
Forum: Ask For Help
Topic: Variables Topic is solved
Replies: 2
Views: 604

Variables Topic is solved

Hello, Please see the flow B, I want to write GuiControl,1:,card2, (%card2% + 1) but failed, could you tell me how to write GuiControl,1:,card2, (%card2% + 1) ? Thanks. #NoTrayIcon CoordMode, XD7500 X-ray System, Window Gui, Color, C000000 Gui +AlwaysOnTop +LastFound +HWNDa_ID WinSet, Transparent, 2...
by Marcosa1020
03 Sep 2017, 05:23
Forum: Ask For Help
Topic: About click.... Topic is solved
Replies: 3
Views: 692

Re: About click.... Topic is solved

Gui, Add, DropDownList, x87 y20 w30 h200 vD4, 0||1|2|3|4|5|6|7|8 Gui,Show clicks:=["15, 516, 2","15, 506, 2","15, 496, 2"] return F5:: clk:=[] Gui, Submit, NoHide for a,b in clicks { if(d4>=a) { clk.push(b) } } for c,d in clk { click,% d Sleep,600 } return Thank you, but I don't understand the foll...
by Marcosa1020
02 Sep 2017, 23:14
Forum: Ask For Help
Topic: About click.... Topic is solved
Replies: 3
Views: 692

Re: About click.... Topic is solved

Hi,
Any suggestion or ideas ?
by Marcosa1020
02 Sep 2017, 07:56
Forum: Ask For Help
Topic: About click.... Topic is solved
Replies: 3
Views: 692

About click.... Topic is solved

Hello, I don't understand, I have three program for A, B, C. Program A: Send {Click, 15, 516, 2} Sleep 600 Program B: Send {Click, 15, 506, 2} Sleep 600 Program C: Send {Click, 15, 496, 2} Sleep 600 When I press F5, if D4 = 1 then active program A. When I press F5, if D4 = 2 then active program A & ...
by Marcosa1020
09 Jun 2017, 08:42
Forum: Ask For Help
Topic: Excel
Replies: 13
Views: 2134

Re: Excel

Hi Nightwolf85,

PERFECT !
THANK YOU VERY MUCH.
by Marcosa1020
07 Jun 2017, 08:05
Forum: Ask For Help
Topic: Excel
Replies: 13
Views: 2134

Re: Excel

Hello, When I press the Copy button then open B.xlsx, I can get something like attach file(1.jpg). In fact, A6: F13 = A5: E5. The last number of the F Row is how many items in the A.xlsx. If I want the same as the attach file(2.jpg) A6: F13 = A5: E5. how can I do ? @@" :headwall: THANK YOU! #NoTrayI...
by Marcosa1020
27 May 2017, 17:04
Forum: Ask For Help
Topic: Excel
Replies: 13
Views: 2134

Re: Excel

kon wrote:Add this to the top of your F6 hotkey:
Gui, Submit, NoHide

This is an expression, so remove the %%.
wb1.ActiveSheet.Range("B1").Value := %Column1%
Thank you.
by Marcosa1020
27 May 2017, 07:03
Forum: Ask For Help
Topic: Excel
Replies: 13
Views: 2134

Re: Excel

All, Sorry, I don't understand, I type some number in the column1 and column2, why can not be saved in file A and file B ? Thanks. Gui +AlwaysOnTop Gui, Color, dcdcdc Gui, Font, S09, Tahoma Gui, Show, x131 y91 h120 w180,AAA Gui, Add, Text, x5 y15, A Gui, Add, Edit, vColumn1 x20 y10 ; w75 h25 Gui, Ad...
by Marcosa1020
26 May 2017, 19:24
Forum: Ask For Help
Topic: Excel
Replies: 13
Views: 2134

Re: Excel

All,
Thanks.
by Marcosa1020
26 May 2017, 08:39
Forum: Ask For Help
Topic: Excel
Replies: 13
Views: 2134

Re: Excel

Try this and let me know: F6:: xl := ComObjCreate("Excel.application") wb0 := xl.Workbooks.Open("C:\B.xlsx") lRow := wb0.ActiveSheet.Range("A65536").End(-4162).Row wb1 := xl.Workbooks.Open("C:\A.xlsx") wb1.ActiveSheet.Range("A1:D100").copy(wb0.ActiveSheet.Cells(lRow+2, 1)) wb0.Save() wb1.Close() wb...

Go to advanced search