did i make myself clear?
Edit: i found an alternative way, it also works for me, just simply add in a "Reload"...
Search found 124 matches
- 22 Sep 2017, 17:16
- Forum: Ask for Help (v1)
- Topic: GUI return/break/reload to continue after execution
- Replies: 1
- Views: 684
- 22 Sep 2017, 08:43
- Forum: Ask for Help (v1)
- Topic: GUI return/break/reload to continue after execution
- Replies: 1
- Views: 684
GUI return/break/reload to continue after execution
Hi all, it's me ahk newbie again... again with basic query, sorry i'm keep trying all the time, but with this, i spend days to figure it out, still don't get it... it's a GUI with Editbox&DropDown list&Listbox$Listview once i put some variables in editbox, it stored them all and calculate some stuff...
- 22 Sep 2017, 04:25
- Forum: Ask for Help (v1)
- Topic: GuiControlGet 4-digits number convert to MMMdd%A_YYYY% Topic is solved
- Replies: 6
- Views: 1382
Re: GuiControlGet 4-digits number convert to MMMdd%A_YYYY% Topic is solved
@BoBo somehow it still... not working, could you have a try on the test script: [...] #SingleInstance, Force Gui, Add, Text, x10 y25 , Date: Gui, Add, Edit, x85 y25 w70 h20 number vDate gM1 , 090 Gui, Add, Text, x10 y50 , D: Gui, Add, Edit, x85 y50 w352 h20 ReadOnly vDate1 Gui, Show,,`t Return M1: ...
- 22 Sep 2017, 02:32
- Forum: Ask for Help (v1)
- Topic: GuiControlGet 4-digits number convert to MMMdd%A_YYYY% Topic is solved
- Replies: 6
- Views: 1382
Re: GuiControlGet 4-digits number convert to MMMdd%A_YYYY% Topic is solved
@BoBo somehow it still... not working, could you have a try on the test script: Gui, Add, Text, x10 y25, Date: Gui, Add, Edit, x85 y25 W70 h20 number vMyEdit gM1 Gui, Add, Text, x10 y50, D: Gui, Add, Edit, x85 y50 w352 h20 ReadOnly vDate1 Gui, Show,, Return M1: Gui, Submit, NoHide GuiControlGet, Dat...
- 22 Sep 2017, 01:06
- Forum: Ask for Help (v1)
- Topic: GuiControlGet 4-digits number convert to MMMdd%A_YYYY% Topic is solved
- Replies: 6
- Views: 1382
Re: GuiControlGet 4-digits number convert to MMMdd%A_YYYY% Topic is solved
M1: GuiControlGet, Date,, MyEdit if (StrLen(Date) != 4) return MsgBox % Date ;while type 0901 in Editbox "MyEdit", msgbox prompt "0901" FormatTime, Date2,% yyyy . Date . "000000", MMM. dd, yyyy StringUpper, Date2, Date2 MsgBox % Date2 ;msgbox prompt empty GuiControl,, Date1, %Date2% return <It's no...
- 21 Sep 2017, 22:39
- Forum: Ask for Help (v1)
- Topic: GuiControlGet 4-digits number convert to MMMdd%A_YYYY% Topic is solved
- Replies: 6
- Views: 1382
GuiControlGet 4-digits number convert to MMMdd%A_YYYY% Topic is solved
Allow me to ask a basic question, MyEdit is an EditBox, which i type 4-digits number, for example: 0901, then GuiControl,, Date1, (;the new FormatTime), with the below codes, the result will be current date (SEP. 22, 2017), but not the one it should be (SEP. 01, 2017), what's going on??? M1: GuiCont...
- 21 Sep 2017, 06:34
- Forum: Ask for Help (v1)
- Topic: XL.ActiveWorkbook.SaveAs() use string as title? Topic is solved
- Replies: 2
- Views: 878
Re: XL.ActiveWorkbook.SaveAs() use string as title? Topic is solved
it works like a charm, thanks! @blackholymanBlackholyman wrote:XL.ActiveWorkbook.SaveAs("F:\" . spli1 . spli2 . ".xls", 56)
- 21 Sep 2017, 04:11
- Forum: Ask for Help (v1)
- Topic: XL.ActiveWorkbook.SaveAs() use string as title? Topic is solved
- Replies: 2
- Views: 878
XL.ActiveWorkbook.SaveAs() use string as title? Topic is solved
Loop F:\ { If ( A_LoopFileTimeModified >= Time ) { Time := A_LoopFileTimeModified File := A_LoopFileLongPath Filename := A_LoopFileName } } StringTrimRight, Filename, Filename, 4 Sleep 300 if( RegExMatch(Filename, "(.*?)(\d+)$", spli) ) Sleep 300 spli2 := spli2 +1 ; ;balabalabala ; XL.ActiveWorkboo...
- 20 Sep 2017, 10:22
- Forum: Ask for Help (v1)
- Topic: Number Zero lost after Split&adding numbers Topic is solved
- Replies: 9
- Views: 1636
Re: Number Zero lost after Split&adding numbers Topic is solved
Thanks for all of you, i took up Joe's suggestion,Helgef wrote:See format. Eg splitted2 := format("{:04}", splitted2 + 1)
Edit: I see now that Bobo mentioned it, my eyes are confused by all that green / yellow stuff.
Code: Select all
splitted2:=SubStr("0000" . splitted2+1,-3)
- 20 Sep 2017, 10:20
- Forum: Ask for Help (v1)
- Topic: Number Zero lost after Split&adding numbers Topic is solved
- Replies: 9
- Views: 1636
Re: Number Zero lost after Split&adding numbers Topic is solved
Hi ivill, There are often many ways to achieve objectives in AHK. Another way to do it is shown here: https://autohotkey.com/boards/viewtopic.php?p=170209#p170209 And explained here: https://autohotkey.com/boards/viewtopic.php?p=170634#p170634 So, in your case, you can leave all of your code as is,...
- 20 Sep 2017, 09:46
- Forum: Ask for Help (v1)
- Topic: Wrong path while Read A_LoopFileTimeModified sheet
- Replies: 2
- Views: 628
Re: Wrong path while Read A_LoopFileTimeModified sheet
I might have missed something, but are your Loop's really only setting those two variables (beside that it will only catch the last match that way)? I'd guess it should have been something like this ... Loop, F:\1\2b\1\*.* { several lines of code } :?: Hi BOBO, are you saying i shall separate them ...
- 20 Sep 2017, 08:48
- Forum: Ask for Help (v1)
- Topic: Wrong path while Read A_LoopFileTimeModified sheet
- Replies: 2
- Views: 628
Wrong path while Read A_LoopFileTimeModified sheet
i'm going to create this script, it loads sheets and edit cell values one by one (read the lastest sheet in specific path, any other reliable idea for read/save .XLS sheet? ), however i met a read or save issue, see the pieces of script in the below, When the part "Loop F:\1\2b\2\*.*" starts, it won...
- 18 Sep 2017, 08:53
- Forum: Ask for Help (v1)
- Topic: Number Zero lost after Split&adding numbers Topic is solved
- Replies: 9
- Views: 1636
Re: Number Zero lost after Split&adding numbers Topic is solved
ClipBoard := "FN0089" ; for testing SetFormat, float, 04.0 ; "reset" zero padding myVar := SubStr(Clipboard,3) ; extract the number from the (fixed lenght) string MsgBox % "FN" . myvar += 1.0 ; add 1 to the current number and concatinate it with the string A more sophisticated method: :arrow: Forma...
- 18 Sep 2017, 08:28
- Forum: Ask for Help (v1)
- Topic: Number Zero lost after Split&adding numbers Topic is solved
- Replies: 9
- Views: 1636
Re: Number Zero lost after Split&adding numbers Topic is solved
[url=https://autohotkey.com/boards/viewtopic.php?t=13303]Numbers as strings, how to force treat as string{/url]
i have no idea why the zero set to be trimmed by default in autohotkey? i'm trying to find a simple way to keep the zero after split&add functions
i have no idea why the zero set to be trimmed by default in autohotkey? i'm trying to find a simple way to keep the zero after split&add functions
- 18 Sep 2017, 08:20
- Forum: Ask for Help (v1)
- Topic: Number Zero lost after Split&adding numbers Topic is solved
- Replies: 9
- Views: 1636
Number Zero lost after Split&adding numbers Topic is solved
Code: Select all
Clipboard=
ClipWait
myvar:=Clipboard ;FN0089
if( RegExMatch(myvar, "(.*?)(\d+)$", splitted) )
splitted2 := splitted2 +1
Sleep 100
MsgBox, %splitted1%%splitted2% ;FN90 (supposed to be FN0090)
- 14 Sep 2017, 19:29
- Forum: Ask for Help (v1)
- Topic: Stringsplit while word count reach specific characters Topic is solved
- Replies: 16
- Views: 3177
Re: Stringsplit while word count reach specific characters Topic is solved
Text := "This all works until the row is moved from its current row number above or below another name or below another name 2 This all works until the row is moved from its current row number above or below another name or below another name 3 This all works until the row is moved from its current...
- 14 Sep 2017, 08:27
- Forum: Ask for Help (v1)
- Topic: Stringsplit while word count reach specific characters Topic is solved
- Replies: 16
- Views: 3177
Re: Stringsplit while word count reach specific characters Topic is solved
Try this: Text := "This all works until the row is moved from its current row number above or below another name" loop { if ( substr(text, currChar := 60-A_Index, 1) = " " ) break } MsgBox % substr(Text, 1, currChar-1 ) "`n" substr(Text, currChar+1 ) i'm trying to add "else if" condition, if currCh...
- 14 Sep 2017, 04:12
- Forum: Ask for Help (v1)
- Topic: Stringsplit while word count reach specific characters Topic is solved
- Replies: 16
- Views: 3177
Re: Stringsplit while word count reach specific characters Topic is solved
Try this: Text := "This all works until the row is moved from its current row number above or below another name" loop { if ( substr(text, currChar := 60-A_Index, 1) = " " ) break } MsgBox % substr(Text, 1, currChar-1 ) "`n" substr(Text, currChar+1 ) Thanks, @Odlanir, it does simple and works for me!
- 14 Sep 2017, 04:11
- Forum: Ask for Help (v1)
- Topic: Stringsplit while word count reach specific characters Topic is solved
- Replies: 16
- Views: 3177
Re: Stringsplit while word count reach specific characters Topic is solved
Edit: You should take boiler 's advice and try it yourself with substr first :thumbup: maybe something like this, regexreplace(str,"(.{1,58})\b","$1`n") . You might want to trim leading spaces if it is for display. Thanks anyway @Helgef for your suggestion, i tried @Odlanir's code, and it does simp...
- 14 Sep 2017, 04:09
- Forum: Ask for Help (v1)
- Topic: Stringsplit while word count reach specific characters Topic is solved
- Replies: 16
- Views: 3177
Re: Stringsplit while word count reach specific characters Topic is solved
Thanks @jeeswg, i'll keep focusd on your codes, this function looks a bit difficult for mejeeswg wrote:See 'SEARCH FROM THE NTH CHARACTER BACKWARDS':
jeeswg's strings tutorial - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=7&t=32985