Search found 1404 matches

by Xtra
07 May 2016, 03:09
Forum: Ask For Help
Topic: Create Vars in a loop & running a cmd line exe
Replies: 11
Views: 958

Re: Create Vars in a loop & running a cmd line exe

Example to show how the commandline string could be built : command := "`"`"`"`"" . "C:\MTGen\ & mandrel_tool_gen -i tgts.txt -r 1 -d MTGen_OUT -n 3 -a 90,10,10 -s 20 -t" . A_Space Loop { InputBox, a%A_Index%, MyTitleHere, Input Angle of Device %A_Index% if (ErrorLevel) break ; CANCEL was pressed. e...
by Xtra
06 May 2016, 22:49
Forum: Ask For Help
Topic: Create Vars in a loop & running a cmd line exe
Replies: 11
Views: 958

Re: Create Vars in a loop & running a cmd line exe

This will make it change to your folder and then run

Code: Select all

RunWait %comspec% /c cd "C:\MTGen\" & "mandrel_tool_gen -i tgts.txt -r 1 -d MTGen_OUT -n 3 -a 90,10,10 -s 20 -t MYtool"
by Xtra
06 May 2016, 18:07
Forum: Ask For Help
Topic: Create Vars in a loop & running a cmd line exe
Replies: 11
Views: 958

Re: Create Vars in a loop & running a cmd line exe

Here is a link to helpfile RunWait

Also note: Hyperlinks for commands / functions are clickable in the codeboxes they will bring up that item in the helpfile.
by Xtra
06 May 2016, 18:05
Forum: Ask For Help
Topic: Create Vars in a loop & running a cmd line exe
Replies: 11
Views: 958

Re: Create Vars in a loop & running a cmd line exe

n := 3 Loop % n InputBox , a%A_Index%, MyTitleHere, Input Angle of Device %A_Index% try: RunWait %comspec% /c C:\MTGen\mandrel_tool_gen -i tgts.txt -r 1 -d MTGen_OUT -n 3 -a 90`,10`,10 -s 20 -t MYtool or: RunWait %comspec% /c "C:\MTGen\mandrel_tool_gen -i tgts.txt -r 1 -d MTGen_OUT -n 3 -a 90,10,10...
by Xtra
06 May 2016, 16:44
Forum: Ask For Help
Topic: text cursor
Replies: 3
Views: 643

Re: text cursor

by Xtra
06 May 2016, 16:38
Forum: Ask For Help
Topic: Create Vars in a loop & running a cmd line exe
Replies: 11
Views: 958

Re: Create Vars in a loop & running a cmd line exe

Code: Select all

n := 3

Loop % n
    InputBox , a%A_Index%, MyTitleHere, Enter angle n

Remove [] :

Code: Select all

RunWait %comspec% /c mandrel_tool_gen , -i tgts.txt -r 1 -d MTGen_OUT -n 3 -a 90`,10`,10 -s 20 -t tool
Then add a1 a2 a3 to the commandline string as %a1% etc where needed.
by Xtra
06 May 2016, 03:43
Forum: Gaming
Topic: Need help with this script
Replies: 5
Views: 2497

Re: Need help with this script

Not sure why you are not checking errorlevel for the pixel searches? All those subroutines are run each iteration of the loop. Think of it like this: a player is not on the screen so their health bar is not on screen... The Subroutines still run every time anyways when not checking errorlevel.(it ca...
by Xtra
05 May 2016, 11:41
Forum: Gaming
Topic: Alpha testing Poof-Boxing
Replies: 3
Views: 810

Re: Alpha testing Poof-Boxing

by Xtra
05 May 2016, 11:38
Forum: Ask For Help
Topic: Delimit then store each item as variable.
Replies: 4
Views: 716

Re: Delimit then store each item as variable.

Sorry about that remove the %'s

Code: Select all

Loop, Parse, A_LoopField, |
by Xtra
05 May 2016, 04:29
Forum: Ask For Help
Topic: GUI Creation
Replies: 26
Views: 2614

Re: GUI Creation

@Wolf_II nice.. I somehow missed seeing that new feature from 1.1.23.00.
+BarBreak might look better to help break up the menu cols.
by Xtra
05 May 2016, 04:15
Forum: Ask For Help
Topic: GUI Creation
Replies: 26
Views: 2614

Re: GUI Creation

You can make separate glabels for each button or do like in this example: #NoEnv ; Row 1 : Gui, Add, Button, x-4 y0 w70 h20 gButton, IMDB ; Col 1 Gui, Add, Button, x66 y0 w70 h20 gButton, HULU ; Col 2 Gui, Add, Button, x136 y0 w70 h20 gButton, AMAZON ; Col 3 Gui, Add, Button, x206 y0 w70 h20 gButton...
by Xtra
04 May 2016, 13:53
Forum: Ask For Help
Topic: Delimit then store each item as variable.
Replies: 4
Views: 716

Re: Delimit then store each item as variable.

This assumes the edit control in ExBox contains the pipe delimited rows: Gui, ExBOX: +resize +MinSize400x333 Gui, ExBOX: Add, Text, w300 r1, Paste a list of valid alias names (one per line): Gui, ExBOX: Add, Edit, x5 w390 r20 -vscroll vAliases Gui, ExBOX: Add, Button, gOK1, OK Gui, ExBOX: Show, x400...
by Xtra
03 May 2016, 12:50
Forum: Ask For Help
Topic: Format time with concatenation.
Replies: 2
Views: 621

Re: Format time with concatenation.

Code: Select all

TIME_NOW_1 += -3, Hours 
TIME_NOW_2 += -2, Hours
TIME_NOW_3 += -1, Hours
TIME_NOW_4 += 0, Hours
TIME_NOW_5 += 1, Hours
TIME_NOW_6 += 2, Hours
TIME_NOW_7 += 3, Hours
 
Loop, 7
{
    FormatTime, TIME_NOW_%A_Index%, % TIME_NOW_%A_Index%, HH:mm:ss
    MsgBox, % TIME_NOW_%A_Index%
}
Return
by Xtra
03 May 2016, 12:21
Forum: Ask For Help
Topic: Add specific lines to a variable if a certain word has found in String
Replies: 8
Views: 991

Re: Add specific lines to a variable if a certain word has found in String

Example:

Code: Select all

sampletext := " This is my line with a starting space!"

MsgBox,, Before, "%sampletext%"    ; quotes are just for displaying text
if (SubStr(sampletext, 1, 1) = A_Space)
    StringTrimLeft, sampletext, sampletext, 1
MsgBox,, After, "%sampletext%"     ; quotes are just for displaying text
by Xtra
03 May 2016, 05:18
Forum: Ask For Help
Topic: Add specific lines to a variable if a certain word has found in String
Replies: 8
Views: 991

Re: Add specific lines to a variable if a certain word has found in String

Code: Select all

StringSplit, line_array, SomeVarText, `n
 
Loop, % line_array0
	If InStr(line_array%A_Index%,CN1)
		{
		 line:=A_Index
		 Loop, 3
			{
            StringTrimLeft, cleanline, % line_array%line%, 1    
			MIADD .= "`n" cleanline
			
			line++
			 }
		 break
		}
by Xtra
03 May 2016, 05:04
Forum: Ask For Help
Topic: focus on textbox and paste
Replies: 10
Views: 1999

Re: focus on textbox and paste

try it on the edit box in notepad: ClassNN: Edit1 Text: Color: FFFFFF (Red=FF Green=FF Blue=FF) x: 4 y: 42 w: 1810 h: 486 Client: x: 0 y: 0 w: 1790 h: 466 If there is no ClassNN shown when checking something then you do not have a control you can work with. IE Cloud based programs usually will not s...
by Xtra
03 May 2016, 03:49
Forum: Ask For Help
Topic: focus on textbox and paste
Replies: 10
Views: 1999

Re: focus on textbox and paste

scriptors wrote:Hi, how do you "see", with window spy this: WindowsForms10.Edit.app.0.21af1a5_r32_ad12

???
Under where it says Control Under Mouse Position:

ClassNN: mycontrolnamehere1
by Xtra
02 May 2016, 18:08
Forum: Ask For Help
Topic: How to off/on button
Replies: 1
Views: 353

Re: How to off/on button

Code: Select all

NumLock::
    Suspend, Permit
    SetTimer, SetPixel, % A_IsSuspended ? 1 : "Off"    ; Timer toggle.
    Suspend, toggle
return
by Xtra
02 May 2016, 17:57
Forum: Ask For Help
Topic: focus on textbox and paste
Replies: 10
Views: 1999

Re: focus on textbox and paste

You could probably just send the keystrokes directly to the control on a non-minimized not active window:

Code: Select all

SetTitleMatchMode, 2

IfWinExist, ShipWorks
    ControlSend, WindowsForms10.Edit.app.0.21af1a5_r32_ad12, ^v, Shipworks
return

Go to advanced search