Search found 528 matches

by Sabestian Caine
10 Oct 2016, 02:17
Forum: Ask for Help (v1)
Topic: Is com interface available for Notepad?
Replies: 4
Views: 1004

Re: Is com interface available for Notepad?

lexikos wrote:Why would you want one?

Now, if you mean Notepad++, the answer is yes: install the ActiveX plugin from the plugin manager.

Thanks dear lexikos.....
by Sabestian Caine
10 Oct 2016, 01:54
Forum: Ask for Help (v1)
Topic: Is com interface available for Notepad?
Replies: 4
Views: 1004

Re: Is com interface available for Notepad?

Notepad is a giant edit control. exactly like ahk's "gui, add, edit". though, it has a couple options like font and wordwrap. I highly doubt there is COM for an edit control. However, you can directly get/set things using all these built-in ahk commands: get/set selection, get current line, get tex...
by Sabestian Caine
09 Oct 2016, 11:36
Forum: Ask for Help (v1)
Topic: Is com interface available for Notepad?
Replies: 4
Views: 1004

Is com interface available for Notepad?

I want to know is com interface available for notepad? As it is available for excel, word, powerpoint, internet explorer etc. If it is available then please provide me some basic codes to use it for natepad.
Thanks....
by Sabestian Caine
03 Oct 2016, 13:25
Forum: Ask for Help (v1)
Topic: How to convert these two columns of data into var1 and var2 respectively?
Replies: 4
Views: 1169

Re: How to convert these two columns of data into var1 and var2 respectively?

Personally I would use a loop, but this will work if there never is anything in in both the debit and credit column at the same time and if the delimiter is tab. Clipboard := "02-08-2016`tDL5771`t`tCASH PAYMENT`t40,000.00`t`t8,02,826.00Dr`t`n02-08-2016`tDL5771`t`tCASH PAYMENT`t`t20,000.00`t8,02,826...
by Sabestian Caine
03 Oct 2016, 13:24
Forum: Ask for Help (v1)
Topic: How to convert these two columns of data into var1 and var2 respectively?
Replies: 4
Views: 1169

Re: How to convert these two columns of data into var1 and var2 respectively?

depends if the columns are delimited by tabs or not. if they are then the following will assign each column to var1 var2, var3, etc.. loop read, % "your file name" { stringsplit var, A_loopReadLine, %A_Tab% msgbox % var1 "," var2 "," var3 "," var4 "," var5 "," var6 "," var7 "," var8 } exitapp thank...
by Sabestian Caine
03 Oct 2016, 11:33
Forum: Ask for Help (v1)
Topic: How to convert these two columns of data into var1 and var2 respectively?
Replies: 4
Views: 1169

How to convert these two columns of data into var1 and var2 respectively?

Please look at this snapshot- http://tinypic.com/r/29wad1h/9 http://tinypic.com/r/29wad1h/9 Above is a snapshot of notepad file in which there are 6 columns. The first column consists dates (i.e.02-08-2016). The second column contains alpha-numeric values (like DL5771, DL7410 etc.). The third column...
by Sabestian Caine
26 Sep 2016, 05:15
Forum: Ask for Help (v1)
Topic: How to select sheet2 if sheet1 is activated and sheet3 if sheet2 is activated in ms excel?
Replies: 15
Views: 3373

Re: How to select sheet2 if sheet1 is activated and sheet3 if sheet2 is activated in ms excel?

The hotkey command will disable the hotkey for all subsequent presses. I don't think this is what you want? I think your solution of sending ^f is probably the simplest way to do this: #IfWinActive Microsoft Excel - Book1 $^f:: xl := ComObjActive("excel.application") If (xl.ActiveSheet.Name = "DATA...
by Sabestian Caine
26 Sep 2016, 05:05
Forum: Ask for Help (v1)
Topic: Problem related to debugging a script as there are a lot of infinite loops in it
Replies: 2
Views: 629

Re: Problem related to debugging a script as there are a lot of infinite loops in it

Helgef wrote:Set it to off in the auto execute section, and set it to on at place of interest.
Also, consider making a function for looping pixelsearch. And you miss-spelled errorlevel, erorlevel.
Thanks dear Helgef for your good guidance....
Thanks a lot....
by Sabestian Caine
24 Sep 2016, 14:03
Forum: Ask for Help (v1)
Topic: Problem related to debugging a script as there are a lot of infinite loops in it
Replies: 2
Views: 629

Problem related to debugging a script as there are a lot of infinite loops in it

I have a very ling script and that script contains so many loops. Now i want to add listline off in all the loops so that i may not face any difficulty in debugging it. my script looks like this- !a:: loop { PixelSearch, Px, Py, 464, 316, 560, 367, 0xFF0000, 3, Fast RGB if errorlevel=1 continue if e...
by Sabestian Caine
22 Sep 2016, 12:49
Forum: Ask for Help (v1)
Topic: How to use HotKey command in a script?
Replies: 2
Views: 677

Re: How to use HotKey command in a script?

The problem is that the line Hotkey, z, MyLabel is never executed, since when a script is run only the lines from the top of the script to the first return or hotkey are executed. To make your script work move Hotkey, z, MyLabel to the top of your script. For more info see The Auto-execute Section ...
by Sabestian Caine
22 Sep 2016, 07:01
Forum: Ask for Help (v1)
Topic: How to select sheet2 if sheet1 is activated and sheet3 if sheet2 is activated in ms excel?
Replies: 15
Views: 3373

Re: How to select sheet2 if sheet1 is activated and sheet3 if sheet2 is activated in ms excel?

Those are constants (see MS Office Basics - Section "5.1 Constants"). xlUp = -4162 xlPasteValues = -4163 Hi dear kon.... Dear kon.... I have these codes- #IfWinActive Microsoft Excel - CANTEEN NEWSPAPER AND TA BILL.xlsx ^f:: xl:=comobjactive("excel.application") If (xl.ActiveSheet.Name = "DATA") { ...
by Sabestian Caine
22 Sep 2016, 05:54
Forum: Ask for Help (v1)
Topic: How to use HotKey command in a script?
Replies: 2
Views: 677

How to use HotKey command in a script?

When i use hotkey command in a empty script i.e. in a script which contains no other codes except these codes- Hotkey, z, MyLabel return MyLabel: MsgBox You pressed %A_ThisHotkey%. return then hotkey command works but when i use the same codes in a script which contains other codes above it for exam...
by Sabestian Caine
20 Sep 2016, 13:39
Forum: Ask for Help (v1)
Topic: How to select sheet2 if sheet1 is activated and sheet3 if sheet2 is activated in ms excel?
Replies: 15
Views: 3373

Re: How to select sheet2 if sheet1 is activated and sheet3 if sheet2 is activated in ms excel?

kon wrote:Those are constants (see MS Office Basics - Section "5.1 Constants").
xlUp = -4162
xlPasteValues = -4163
Thanks dear kon....got it... :D
by Sabestian Caine
20 Sep 2016, 12:58
Forum: Ask for Help (v1)
Topic: How to select sheet2 if sheet1 is activated and sheet3 if sheet2 is activated in ms excel?
Replies: 15
Views: 3373

Re: How to select sheet2 if sheet1 is activated and sheet3 if sheet2 is activated in ms excel?

Great! :D I'm glad to hear that my explanations are helping. Hi dear kon..... could you please tell me why these negative numbers are used some codes- As in the following codes -4162 and -4163 are used- oExcel := ComObjActive("Excel.Application") Count := oExcel.Range("k" oExcel.Cells.Rows.Count).E...
by Sabestian Caine
17 Sep 2016, 00:35
Forum: Ask for Help (v1)
Topic: How to retrieve ClassNN of a control by the coordinates under which it falls?
Replies: 9
Views: 2314

Re: How to retrieve ClassNN of a control by the coordinates under which it falls?

Helgef wrote:Since between is inclusive, you might want to use >= in capn Odin's code.
Dear Helgef.. how can i combine these two statements into one line of codes-
If (X between 15 and 104) && (Y between 146 and 156)

please help
thanks...
by Sabestian Caine
17 Sep 2016, 00:34
Forum: Ask for Help (v1)
Topic: How to retrieve ClassNN of a control by the coordinates under which it falls?
Replies: 9
Views: 2314

Re: How to retrieve ClassNN of a control by the coordinates under which it falls?

Capn Odin wrote:You probably want if((x > 15 && x < 104) && (y > 146 && y < 156))
Dear Capn Odin.. how can i combine these two statements into one line of codes-
If (X between 15 and 104) && (Y between 146 and 156)

please help
thanks...
by Sabestian Caine
16 Sep 2016, 13:42
Forum: Ask for Help (v1)
Topic: How to retrieve ClassNN of a control by the coordinates under which it falls?
Replies: 9
Views: 2314

Re: How to retrieve ClassNN of a control by the coordinates under which it falls?

I tried to use these codes also- f1:: WinGet, ClassNNList, ControlList, A Loop, PARSE, ClassNNList, `n { ControlGetPos, X, Y, Width, Height, %A_LoopField%, A if (X>15 or X<104 and Y>146 or Y<156) { ClassNN := A_LoopField Break } } MsgBox, % ClassNN and these codes also- f1:: WinGet, ClassNNList, Con...
by Sabestian Caine
16 Sep 2016, 13:07
Forum: Ask for Help (v1)
Topic: How to retrieve ClassNN of a control by the coordinates under which it falls?
Replies: 9
Views: 2314

Re: How to retrieve ClassNN of a control by the coordinates under which it falls?

The operators "between", "is", "in", and "contains" are not supported in expressions. From the documentation. Thanks dear Helgef for your reply... Could you please tell me how can I use these two coordinates into the codes- (X between 15 and 104) && (Y between 146 and 156) Please guide me.. thanks..
by Sabestian Caine
16 Sep 2016, 12:26
Forum: Ask for Help (v1)
Topic: How to retrieve ClassNN of a control by the coordinates under which it falls?
Replies: 9
Views: 2314

How to retrieve ClassNN of a control by the coordinates under which it falls?

My codes are these- f1:: WinGet, ClassNNList, ControlList, A Loop, PARSE, ClassNNList, `n { ControlGetPos, X, Y, Width, Height, %A_LoopField%, A If (X between 15 and 104) && (Y between 146 and 156) ; here i am putting the coordinates in which the control is situated { ClassNN := A_LoopField Break } ...
by Sabestian Caine
16 Sep 2016, 02:46
Forum: Ask for Help (v1)
Topic: How to determine classsNN of a control by its color or by its location in autohotkey?
Replies: 54
Views: 15125

Re: How to determine classsNN of a control by its color or by its location in autohotkey?

Hello manoj, since you got it working, remove that first MsgBox and use it. The value of interest is stored in ControlText . I don't know what you want to do with it. Hi dear just me.... Sir i want to retrieve the classNN of a control by the coordinates in which it falls. My codes are these- f1:: W...

Go to advanced search