Search found 71 matches
- 25 Dec 2017, 01:31
- Forum: Ask for Help (v1)
- Topic: Reading first two bytes/characters problem
- Replies: 3
- Views: 766
Re: Reading first two bytes/characters problem
LAddr: this_path := Selected_Files() File := FileOpen(this_path, "r") adresa := File.Read(2) StringLeft, LO, adresa, 1 StringRight, HI, adresa, 1 LB := LBS := Asc(LO) HB := HBS := Asc(HI) SetFormat, IntegerFast, hex LBS += 0 LBS .= "" HBS += 0 HBS .= "" SetFormat, IntegerFast, d MsgBox, %this_path%...
- 17 Dec 2017, 12:12
- Forum: Ask for Help (v1)
- Topic: Implied G-label not respected when button contains (some?) non-alphabetic characters
- Replies: 2
- Views: 649
Re: Implied G-label not respected when button contains (some?) non-alphabetic characters
Code: Select all
ButtonButton2(toggle):
- 03 Jun 2017, 23:49
- Forum: Ask for Help (v1)
- Topic: calculate difference between dates? Topic is solved
- Replies: 2
- Views: 809
Re: calculate difference between dates? Topic is solved
You're looking for the EnvSub function.
- 31 May 2017, 23:58
- Forum: Ask for Help (v1)
- Topic: Button font color
- Replies: 2
- Views: 1518
Re: Button font color
Changing the color of text isn't the same as changing the color of button text. One option is to instead just change the boldness. #Persistent SetBatchLines -1 SysGet, Size, MonitorWorkArea GuiRight := SizeRight - 147 Button_Right := SizeRight - 147 Button_Bottom := SizeBottom - 31 Gui, 1: Color, cF...
- 28 May 2017, 15:59
- Forum: Ask for Help (v1)
- Topic: Help changing Keyboard key Function
- Replies: 1
- Views: 593
Re: Help changing Keyboard key Function
Code: Select all
ctrl::lwin
lwin::ctrl
- 27 May 2017, 19:00
- Forum: Ask for Help (v1)
- Topic: Cycling forwards and backwards through a list. Topic is solved
- Replies: 2
- Views: 711
Re: Cycling forwards and backwards through a list. Topic is solved
list1 := ["1", "a", "b", "c", "d", "e"] list2 := ["1", "a", "b", "c", "d", "e"] $1::Cycle(list1) $2::Cycle(list1, 1) $3::Cycle(list2) $4::Cycle(list2, 1) Cycle(list, back = 0){ list[1] := list[1] + (back ? -1 : 1) list[1] := list[1] = 1 ? list.length() : list[1] = list.length() + 1 ? 2 : list[1] Se...
- 24 May 2017, 23:48
- Forum: Ask for Help (v1)
- Topic: Assigning values to variable names
- Replies: 2
- Views: 994
Re: Assigning values to variable names
Code: Select all
p::
a = apple
b = banana
c = carrot
d = date
e = elephant
msgbox % a b c d e
msgbox %a%%b%%c%%d%%e%
msgbox % a " " b " " c " " d " " e
msgbox %a% %b% %c% %d% %e%
- 23 May 2017, 21:20
- Forum: Ask for Help (v1)
- Topic: Simplifying array/loop function and how to make the delimiter parameter a variable?
- Replies: 5
- Views: 1155
Re: Simplifying array/loop function and how to make the delimiter parameter a variable?
Can be simplified a bit with a for loop.
Code: Select all
makearray(object_in,column){
object_out := []
for a, v in object_in
object_out[a]:=StrSplit(v,"@")[column]
return object_out
}
- 22 May 2017, 17:17
- Forum: Ask for Help (v1)
- Topic: Needing help with CSV library from old forums
- Replies: 3
- Views: 993
Re: Needing help with CSV library from old forums
You'll probably need to correct the various comment errors that pop up.
- 21 May 2017, 18:26
- Forum: Ask for Help (v1)
- Topic: Gui button color
- Replies: 3
- Views: 3482
Re: Gui button color
Gui,+AlwaysOnTop Gui, Color, 444444 Gui, Add, Progress, x62 y36 w90 h90 Disabled BackgroundFF0000 vProgress Gui, Add, Text, xp yp wp hp cFFFFFF BackgroundTrans 0x201 vText gMayaPlay, MayaPlay Gui, Show, x436 y230 h162 w200, MAYA test Return MayaPlay: #Include C:\Users\ITV\Documents\maya.ahk Return ...
- 21 May 2017, 18:03
- Forum: Ask for Help (v1)
- Topic: Skipping a line with ControlSetText Topic is solved
- Replies: 2
- Views: 724
Re: Skipping a line with ControlSetText Topic is solved
Code: Select all
array:=["3279","23897","23897"]
n:=0, s:=""
while(n<array.Length())
++n, s.=array[n] "`r`n"
controlsettext, edit1, % s, Untitled - Notepad
- 21 May 2017, 00:47
- Forum: Ask for Help (v1)
- Topic: Problem turning an App volume down in Volume mixer
- Replies: 2
- Views: 822
Re: Problem turning an App volume down in Volume mixer
My guess is you'll need to modify the two RegExMatch( ControlName , "Mute for *" Arma3Title "*" , ControlName ) ; regex fix for use with full screen, window mode and full screen window lines for your language. While using window spy hover over the mute buttons and check to see if it's something othe...
- 09 May 2017, 15:09
- Forum: Ask for Help (v1)
- Topic: Timer within timed GUI window
- Replies: 1
- Views: 720
Re: Timer within timed GUI window
Code: Select all
SetTimer, Message, 3600000
Message:
progress, r0-300, 300, Take A Break`, Do it!
loop 300 {
progress, % a_index, % 300 - a_index
sleep 1000
}
progress, hide
return
- 09 May 2017, 14:49
- Forum: Ask for Help (v1)
- Topic: Interrupt a threat, rests after idle time
- Replies: 2
- Views: 716
Re: Interrupt a threat, rests after idle time
arr := [[50, "4"] , [1522, "3"] , [311, "NumpadSub"]] ~mbutton::activate(1) ~space::activate(1) NumpadMult::activate() activate(interrupt := 0) { static global arr if !position and interrupt return settimer disable, -30000 if !position { position := 1 settimer label, % -arr[position][1] } else if p...
- 25 Apr 2017, 13:42
- Forum: Ask for Help (v1)
- Topic: Random selection without replacement Topic is solved
- Replies: 1
- Views: 677
Re: Random selection without replacement Topic is solved
Code: Select all
Loop,% Choices.MaxIndex() {
send % Unique_RChoice(Choices)
sleep 500
}
- 23 Apr 2017, 21:32
- Forum: Ask for Help (v1)
- Topic: Fileread a file with delimiter and store value for statistics Topic is solved
- Replies: 1
- Views: 687
Re: Fileread a file with delimiter and store value for statistics Topic is solved
f3:: FileRead, file, test.txt m := "", pos := 1, o := {} while (pos := regexmatch(file, "\b(\w+)\b", m, pos+strlen(m))) ; finds each word o[m1] := o.haskey(m1) ? o[m1] + 1 : 1 ; adds them up in an object s := "" for i in o { highest := "" for k, v in o if (!highest or v >= highest) highest := v, wo...
- 22 Apr 2017, 16:53
- Forum: Ask for Help (v1)
- Topic: Double press F1 to perform another action Topic is solved
- Replies: 2
- Views: 687
Re: Double press F1 to perform another action Topic is solved
Move SetTimer, F1KeyPressDefault, Off earlier to just before the beeps.
- 22 Apr 2017, 16:42
- Forum: Ask for Help (v1)
- Topic: Stop toggle when any key is pressed
- Replies: 2
- Views: 1425
Re: Stop toggle when any key is pressed
F8:: settimer label, 5500 gosub label Input, SingleKey, L1 I, {LControl}{RControl}{LAlt}{RAlt}{LShift}{RShift}{LWin}{RWin}{AppsKey}{F1}{F2}{F3}{F4}{F5}{F6}{F7}{F8}{F9}{F10}{F11}{F12}{Left}{Right}{Up}{Down}{Home}{End}{PgUp}{PgDn}{Del}{Ins}{BS}{Capslock}{Numlock}{PrintScreen}{Pause} settimer label, o...
- 22 Apr 2017, 11:19
- Forum: Ask for Help (v1)
- Topic: Clipboard into Google Sheet
- Replies: 4
- Views: 2083
Re: Clipboard into Google Sheet
Code: Select all
!a::
send {f2}
clipboard := clip1 "`n" clip2 ; or a natural clipboard with multiple lines
Send ^v{enter}
return
- 21 Apr 2017, 21:43
- Forum: Ask for Help (v1)
- Topic: Clipboard into Google Sheet
- Replies: 4
- Views: 2083
Re: Clipboard into Google Sheet
Code: Select all
!a::
clipboard := clip1 "`t`t" clip5 "`t`t" clip4 "`t`t" clip2 "`t`t" clip3
Send ^v
return