Search found 402 matches

by Sabestian Caine
18 Jun 2019, 13:36
Forum: Ask For Help
Topic: How to change the icon of compiled script namedly .exe file (not tray icon)?
Replies: 3
Views: 143

How to change the icon of compiled script namedly .exe file (not tray icon)?

I want to change the icon of compiled script permanently. Most of the stuff is available about changing the tray icon, but i want to change the icon of .exe file as shown below- 19_06_19 @12_01_21.PNG I want to change the above icon permanently. I tried to follow the steps as told in documentation h...
by Sabestian Caine
16 Jun 2019, 13:46
Forum: Ask For Help
Topic: Why this msgbox showing empty while it should show 6?
Replies: 1
Views: 87

Why this msgbox showing empty while it should show 6?

My codes are- obj:= new Tm obj.fn1(6) class Tm{ fn1(ss){ gui,Destroy SetTimer,aa,On SetTimer,bb,Off SetTimer,aa,5000 return aa: MsgBox % ss ; Please tell why it is showing empty here while i am passing 6 in function call above? Please tell... gui, destroy gui, font, s15, Times New Roman bold Gui, +A...
by Sabestian Caine
10 Jun 2019, 11:04
Forum: Ask For Help
Topic: Why is OnMessage Function not working?
Replies: 1
Views: 92

Why is OnMessage Function not working?

Hello Friends.. Please look at these codes- OnMessage(0x200, "fn") ; 0x200 is window message for mouse move fn() { MsgBox, You are moving Mouse Pointer!!! } When i run these codes, it should show msgbox saying You are moving Mouse Pointer!!! when i move my mouse pointer, but it is doing nothing. Whe...
by Sabestian Caine
10 Jun 2019, 08:19
Forum: Ask For Help
Topic: How to make fn() function work in this simple GUI? Topic is solved
Replies: 5
Views: 154

Re: How to make fn() function work in this simple GUI? Topic is solved

There are several errors in your approach. g1: fn(v2, v1) return If you want to pass the contents of the control variables to the function, you have to get the current contents of the controls by either Gui, Submit, ... or GuiControlGet, ... prior to this. gui, Submit, NoHide This updates the globa...
by Sabestian Caine
10 Jun 2019, 08:17
Forum: Ask For Help
Topic: How to make fn() function work in this simple GUI? Topic is solved
Replies: 5
Views: 154

Re: How to make fn() function work in this simple GUI? Topic is solved

Odlanir wrote:
10 Jun 2019, 05:23

Code: Select all

Gui Add, Edit, w200 vv1 gg1
Gui Add, Edit, w200 vv2
Gui Show
Return

g1:
gui, Submit, NoHide
fn("v2", v1)
return

fn(param1, param2) {
    GuiControl,,%param1%, % param2*100
}
ExitApp
Thanks dear Odlanir... Now codes are working... Thanks a lot ... :clap:
by Sabestian Caine
10 Jun 2019, 02:02
Forum: Ask For Help
Topic: How to make fn() function work in this simple GUI? Topic is solved
Replies: 5
Views: 154

How to make fn() function work in this simple GUI? Topic is solved

Hello Friends.. Please look at these codes- Gui Add, Edit, x165 y66 w120 h21 vv1 gg1 Gui Add, Edit, x365 y63 w120 h21 vv2 Gui Show, w620 h420, Window Return g1: fn(v2, v1) return fn(param1, param2) { gui, Submit, NoHide GuiControl,,param1, % param2*100 } The above codes are not working. While the fo...
by Sabestian Caine
09 Jun 2019, 13:25
Forum: Ask For Help
Topic: How to instantly duplicate the current line (i.e. make a copy of current line & paste in next line) M S Word and Notepad Topic is solved
Replies: 7
Views: 183

Re: How to instantly duplicate the current line (i.e. make a copy of current line & paste in next line) M S Word and Not Topic is solved

At the moment I got only an old Word 2003 to test it but this works in this version f8:: oWord := ComObjActive("Word.Application") selection := oWord.selection Selection.HomeKey(wdLine:=5) Selection.EndKey(wdLine, wdExtend:=1) currentline := Selection.Range Selection.HomeKey(wdLine) Selection.TypeT...
by Sabestian Caine
09 Jun 2019, 13:24
Forum: Ask For Help
Topic: How to instantly duplicate the current line (i.e. make a copy of current line & paste in next line) M S Word and Notepad Topic is solved
Replies: 7
Views: 183

Re: How to instantly duplicate the current line (i.e. make a copy of current line & paste in next line) M S Word and Not Topic is solved

I've been using the following: #IfWinActive ahk_class Notepad ^d:: ;notepad - send text - duplicate line ControlGet, hCtl, Hwnd,, Edit1, A ControlGet, vLineNum, CurrentLine,,, % "ahk_id " hCtl ControlGet, vText, Line, % vLineNum-1,, % "ahk_id " hCtl Control, EditPaste, % vText,, % "ahk_id " hCtl re...
by Sabestian Caine
09 Jun 2019, 11:55
Forum: Ask For Help
Topic: How to instantly duplicate the current line (i.e. make a copy of current line & paste in next line) M S Word and Notepad Topic is solved
Replies: 7
Views: 183

Re: How to instantly duplicate the current line (i.e. make a copy of current line & paste in next line) M S Word and Not Topic is solved

the above codes are working fine, but I want more professional way to do that. Like in scite it provides the facility to duplicate the current line by shortcut key ctrl+d and in AHK studio it has built in shortcut key f2. Please tell me how to do this in MS Word and in Notepad? The script you poste...
by Sabestian Caine
09 Jun 2019, 03:55
Forum: Ask For Help
Topic: How to instantly duplicate the current line (i.e. make a copy of current line & paste in next line) M S Word and Notepad Topic is solved
Replies: 7
Views: 183

How to instantly duplicate the current line (i.e. make a copy of current line & paste in next line) M S Word and Notepad Topic is solved

Hello Friends.. As we can instantly duplicate the current line in Scite and AHK Studio with the help me shortcut keys like ctrl+D and f2 respectively, I want any similar way to duplicate the current line for MS Word and notepad. Presently, I have mapped the default keys to duplicate the current line...
by Sabestian Caine
07 Jun 2019, 14:16
Forum: Ask For Help
Topic: How to insert IDs of customers as KEYS and names of customers as VALUES in an Associative Array? Topic is solved
Replies: 5
Views: 168

Re: How to insert IDs of customers as KEYS and names of customers as VALUES in an Associative Array? Topic is solved

str= ( 10058 JAMES MARTIEN 920098 SABESTIAN CAINE 6500042 DAVID MAC JONESLEY ) Array := {} for key, row in StrSplit(str, "`n") { CustomerInfo := StrSplit(row, "`t") ; if ur list is tab-separated, which it seemingly is id := CustomerInfo[1] name := CustomerInfo[2] Array[id] := name } for id, name in...
by Sabestian Caine
07 Jun 2019, 14:15
Forum: Ask For Help
Topic: How to insert IDs of customers as KEYS and names of customers as VALUES in an Associative Array? Topic is solved
Replies: 5
Views: 168

Re: How to insert IDs of customers as KEYS and names of customers as VALUES in an Associative Array? Topic is solved

#SingleInstance, Force str = ( 10058 JAMES MARTIEN 920098 SABESTIAN CAINE 6500042 DAVID MAC JONESLEY ) MyArray := {} Loop, Parse, str, `n { RegExMatch(A_LoopField, "mi)(\d+)\s(\w.*)", obj) MyArray[obj1] := obj2 } ; Using For Loop For CustID, CustName In MyArray { MsgBox, % CustID " - " CustName } ;...
by Sabestian Caine
07 Jun 2019, 12:31
Forum: Ask For Help
Topic: How to insert IDs of customers as KEYS and names of customers as VALUES in an Associative Array? Topic is solved
Replies: 5
Views: 168

How to insert IDs of customers as KEYS and names of customers as VALUES in an Associative Array? Topic is solved

Hello Friends.. Please look at these codes- str= ( 10058 JAMES MARTIEN 920098 SABESTIAN CAINE 6500042 DAVID MAC JONESLEY ) ; The above is a very long list. Above three lines are just a sample.. for key, value in StrSplit(str, "`n") { RegExMatch(value, "mi)(\d+)\s(\w.*)", obj) MsgBox % obj1 "`n" obj2...
by Sabestian Caine
02 Jun 2019, 15:21
Forum: Ask For Help
Topic: How to change the color of ListView's rows according to their values? Topic is solved
Replies: 6
Views: 288

Re: How to change the color of ListView's rows according to their values? Topic is solved

How to use: First create a new instance of LV_Colors with MyInstance := New LV_Colors(HLV) passing the HWND of your ListView. Then call MyInstance.Cell() or MyInstance.Row() to setup colours for individual cells and/or rows. That's all you have to do for colouring. ? Thanks dear just me... I just f...
by Sabestian Caine
02 Jun 2019, 15:20
Forum: Ask For Help
Topic: How to change the color of ListView's rows according to their values? Topic is solved
Replies: 6
Views: 288

Re: How to change the color of ListView's rows according to their values? Topic is solved

Try this: Gui, Add, ListView, r20 w700 grid HWNDHLV, 1|1|10|10|20|50|100|200|500|2000|Total LV_Add("", "jack","paul") LV_Add("", "rock","mik") new LV_Colors(HLV).Row(1, 0xFFFFB5) gui,show #Include Class_LV_Colors.ahk I hope that helps. Thanks dear wolf_II... Now it is working... Thanks a lot...
by Sabestian Caine
31 May 2019, 15:14
Forum: Ask For Help
Topic: How to change the color of ListView's rows according to their values? Topic is solved
Replies: 6
Views: 288

Re: How to change the color of ListView's rows according to their values? Topic is solved

have a look at https://www.autohotkey.com/boards/viewtopic.php?f=6&t=1081 Hubert Thanks dear hd0202 for your kind reply... But, sir please tell me how to use LV_Colors class as mentioned in above link.. I tried to use LV_Colors class like this- Gui, Add, ListView, r20 w700 grid HWNDHLV, 1|1|10|10|2...
by Sabestian Caine
30 May 2019, 10:11
Forum: Ask For Help
Topic: How to show values from MS Excel's row into ListView's row? Topic is solved
Replies: 2
Views: 86

Re: How to show values from MS Excel's row into ListView's row? Topic is solved

Try this arr := Object() loop, 11 arr[a_index] := round(xl.Cells(lastrow, a_index+1).value) LV_Add("",arr[1],arr[2],arr[3],arr[4],arr[5],arr[6],arr[7],arr[8],arr[9],arr[10],arr[11]) or LV_Add("") loop, 11 LV_Modify(1,"Col"A_index+0, round(xl.Cells(lastrow, a_index+1).value)) Thanks dear Odlanir... ...
by Sabestian Caine
30 May 2019, 10:08
Forum: Ask For Help
Topic: How to change the color of ListView's rows according to their values? Topic is solved
Replies: 6
Views: 288

How to change the color of ListView's rows according to their values? Topic is solved

Hello Friends.. I have to work on MS excel to manage data. My excel sheet and data looks like this- 30_05_19 @8_13_51.PNG In the above image you can see that I have used two colors in rows. One color is sky blue which indicates the positive entry. Namely, if the value in column L is positive then it...
by Sabestian Caine
30 May 2019, 02:43
Forum: Ask For Help
Topic: How to show values from MS Excel's row into ListView's row? Topic is solved
Replies: 2
Views: 86

How to show values from MS Excel's row into ListView's row? Topic is solved

Hello Friends.. I have to use MS Excel a lot to manage my data. I want that the last row's all values of Excel sheet should be shown into ListView. Look at this image- 30_05_19 @1_11_54.PNG I want the data of row 2 should be shown horizontally in list view. Currently, i tried these codes- xl:=comobj...
by Sabestian Caine
27 May 2019, 00:40
Forum: Ask For Help
Topic: How to change the color of edit box which has input focus in GUI? Topic is solved
Replies: 15
Views: 587

Re: How to change the color of edit box which has input focus in GUI? Topic is solved

Because I've been passionate about control colors, does this work more stable for you? #NoEnv BackColor := 0xFFFF00 EditControls := {} Gui Add, Edit, x183 y57 w205 h51 hwndHED, Edit 1 SetFocusedBkColor(HED, BackColor) Gui Add, Edit, x184 y128 w205 h51 hwndHED, Edit 2 SetFocusedBkColor(HED, BackColo...

Go to advanced search