Search found 69 matches

by smarq8
22 Aug 2017, 05:48
Forum: Ask For Help
Topic: change grouped radio buttons with GuiControl not working? Topic is solved
Replies: 5
Views: 866

Re: change grouped radio buttons with GuiControl not working? Topic is solved

what if i have many other gui elements? It must somehow to be corelated with ahk var name (v_ShiftMode)
by smarq8
22 Aug 2017, 05:16
Forum: Ask For Help
Topic: change grouped radio buttons with GuiControl not working? Topic is solved
Replies: 5
Views: 866

change grouped radio buttons with GuiControl not working? Topic is solved

i try to change my grouped radio button using GuiControl but seomthing geos wrong and not working. Gui Add, Radio, x+0 w52 h10 vv_ShiftMode Group , ALL Gui Add, Radio, y+0 w52 h10 Checked , FROM Gui Add, Radio, y+0 w52 h10 , SEL GuiControl,,v_ShiftMode3,1 ; it shoul change radio button to "SEL" but ...
by smarq8
17 Aug 2017, 05:37
Forum: Ask For Help
Topic: assign object content to other object without enum?
Replies: 3
Views: 647

Re: assign object content to other object without enum?

not exactly. Here is new example that should better visualise my problem. a := {Event:{1:"aaa"}} ; its my main object b := a ; here some other code use my main object f(a.Event) ; just unquote once of them to check ;f2(a.Event) ;f3(a.Event) MsgBox % a.Event.1 "`n" b.Event.1 ; resoult should be bbb /...
by smarq8
17 Aug 2017, 04:19
Forum: Ask For Help
Topic: assign object content to other object without enum?
Replies: 3
Views: 647

assign object content to other object without enum?

For example I set array 'a' content same as 'b' and I know a := b or a := object(&b) do not overwrite old content but assign new address and old array still exist in memory. What I need is something like in 2nd example. So my question is here simpler method to do that? Erase array and refill it via ...
by smarq8
08 Feb 2017, 13:07
Forum: Ask For Help
Topic: How to Create HotKey to Class function in one line?
Replies: 1
Views: 394

How to Create HotKey to Class function in one line?

f:=ObjBindMethod(this, "ZoomOut") Hotkey, *Wheeldown,% f f:=ObjBindMethod(this, "Zoomin") Hotkey, *WheelUp,% f Can I somehow create hotkey in one line to myclass functions? Something like this: Hotkey, *Wheeldown,% ObjBindMethod(this, "ZoomOut") ; not working or Hotkey, *Wheeldown,% f:=ObjBindMetho...
by smarq8
07 Feb 2017, 13:14
Forum: AHK Studio
Topic: AHK Studio
Replies: 1079
Views: 335591

Re: AHK Studio

My list of issues/suggestions noted in past one week: * When class functions are in separate files via #Include then they are not visible in Code Explorer in "Project.ahk>Class>ClassName" but they are in "Project.ahk>Function" * Checkmarks in "Options>Formating Options" are updated after restart AHK...
by smarq8
29 Jan 2017, 09:17
Forum: Ask For Help
Topic: Gdip_MeasureString return odd boudary rect
Replies: 0
Views: 343

Gdip_MeasureString return odd boudary rect

I use Gdip_TextToGraphics() to draw some text and retuned value is used to clear old data in graph, everything is good exepct that returned rect form Gdip_MeasureString() that is inside Gdip_TextToGraphics() is not boudary rect that I expect, so when I use this then it also erase other data that sho...
by smarq8
26 Jan 2017, 16:16
Forum: AHK Studio
Topic: AHK Studio
Replies: 1079
Views: 335591

Re: AHK Studio

Include with LineFile is not recognized in explorer at right http://i.share.pho.to/6f0492f8_o.png I also have some suggestion. When select text then highlight other and show them places ner scroll bar like in np++ currently it underline other word depend on cursor position, but when select something...
by smarq8
25 Jan 2017, 18:10
Forum: Ask For Help
Topic: "if var between" and objects
Replies: 3
Views: 625

Re: "if var between" and objects

I do not get what you man about short-circuits. f(){ ;some preparing stuff here W := This.W for i,o in This.a1 { x := o.x ;if x<0||x>W ; ~300ms ;if (x<0)||(x>W) ; ~290ms ;if (x<0||x>W) ; ~290ms if x not between 0 and %W% ; ~261ms continue ;some GDIP code ;for testing this if statement everything her...
by smarq8
25 Jan 2017, 14:37
Forum: Ask For Help
Topic: "if var between" and objects
Replies: 3
Views: 625

"if var between" and objects

var := o.x if var not between 0 and %W% Can I somehow avoid Var assignation for if var between command? Eventually how to put all in one line. ; something like that if o.x not between 0 and %W% ; not working or any one know other methot that may be faster ; Like this but it is ~15% slower than if v...
by smarq8
12 Jan 2017, 23:00
Forum: AHK Studio
Topic: AHK Studio
Replies: 1079
Views: 335591

Re: AHK Studio

I found once bug. Run fresh (first run) AHK-Studio > File > New Sctintilla Window
now appear artifact at right side and while to try move/resize window then width gonna increase on each mouse move.
Image
by smarq8
10 Jan 2017, 09:31
Forum: Bug Reports
Topic: Object items not using slow float format mode
Replies: 2
Views: 3269

Object items not using slow float format mode

Im not sure is it bug or I something missunderstend but according to documentation samples it look like this SetFunction is called as any other function (line by line) Var = 11.333333 SetFormat, float, 6.2 Var -= 1 ; Sets Var to be 10.33 with one leading space because the total width is 6. SetFormat...
by smarq8
08 Jan 2017, 16:33
Forum: Ask For Help
Topic: The same variable cannot be used for more than one control
Replies: 5
Views: 832

Re: The same variable cannot be used for more than one control

because "Gui, MyGui2:Add (...)" should be called only once at begin script. And in place where you actually create MyGui2 you need to use GuiControl for fill ListBox with your elements and then show that gui. Also ListBox should be cleared before add any element or after close MyGui2.
by smarq8
08 Jan 2017, 15:42
Forum: Ask For Help
Topic: The same variable cannot be used for more than one control
Replies: 5
Views: 832

Re: The same variable cannot be used for more than one control

Gui, MyGui:Add, Text, x10 y15 w250, Search for running Games exe Gui, MyGui:Add, Edit, x10 y30 w250 vSearch Gui, MyGui:Add, Button, xm+40 y60 w150 h23 gSearch, Search Gui, MyGui:Show, AutoSize, Process Search cnt :=0 return ; Win32_Process: http://msdn.microsoft.com/en-us/library/aa394372.aspx Sear...
by smarq8
08 Jan 2017, 10:57
Forum: Ask For Help
Topic: Saving modified but unsaved scripts before reloading
Replies: 3
Views: 645

Re: Saving modified but unsaved scripts before reloading

I use it out of habit, because of some plugins, easy text menaging (find, replace, algin, marking etc), and its universal editor. I use Scite very rarely for debug some coplex classes. Is it better? For me, yes, but as i said mostly because I do not use so often Scite. Maybe I'm wrong but its my cho...
by smarq8
08 Jan 2017, 09:55
Forum: Ask For Help
Topic: Saving modified but unsaved scripts before reloading
Replies: 3
Views: 645

Re: Saving modified and unsaved scripts before reloading

I use np++ to write sripts with installed sytax for ahk files. So I can here to save multiple files using ctrl+shift+s. I also always add to any script hotkey for reloading (f4::reload).
So ctrl+s (or ctrl+shft+s) and then f4 and i have reloaded script with saved modyfications in less than 1/3 sec ;p.
by smarq8
07 Jan 2017, 15:45
Forum: Ask For Help
Topic: Need help creating a basic script
Replies: 1
Views: 333

Re: Need help creating a basic script

#SingleInstance force #NoEnv SetBatchLines -1 t:=0 return ;~=:: ; use this if you want to work "=" key as normal and as hotkey (just delete ";" to use this hotkey) =:: ; use this if you want to block type "=" when press key (just add ";" at begin or remove this line if you do not want this) t:=!t i...
by smarq8
07 Jan 2017, 15:30
Forum: Ask For Help
Topic: Message with random probability when pressing a button
Replies: 13
Views: 1530

Re: Message with random probability when pressing a button

You can also use SetTimer with negative value, it will execute specyfied label after for eg 20000ms once and you do not need disable timer later (SetTimer, HideTip, Off) Tab:: Random Num, 1, 600 if (Num=1) { MsgBox, , this is a title!,blablabla, } else { ToolTip, blablablabla ; (, , , 1) <--- in thi...
by smarq8
07 Jan 2017, 14:42
Forum: Ask For Help
Topic: Capture streaming cli output?
Replies: 2
Views: 544

Re: Capture streaming cli output?

https://autohotkey.com/board/topic/9690 ... douttovar/

here are 2 version
StdOutToVar that return only once after end and of execute command
and
StdOutStream - watch in live any messages (eg. ping google.pl -t)

Go to advanced search