 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
ahkiot0
Joined: 31 May 2008 Posts: 17
|
Posted: Wed Nov 18, 2009 6:21 pm Post subject: iniWrite replace string, not add new |
|
|
| Code: | F1::
ControlGetText, 1Ed, Edit1, A ;Get Path of Active Window Explorer
IniWrite, %1Ed%, %A_ScriptDir%\CapMate.ini, History, path ; here problem
return
F2:: ; Read History ( but only one
IniRead, path, %A_ScriptDir%\CapMate.ini, History, path
MsgBox %path%
return |
need add string, not replace. Then F2 press and show all Hisotry paths
will be great show history in systray for next click and browse them |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 7159
|
Posted: Wed Nov 18, 2009 6:35 pm Post subject: |
|
|
| Code: | F1::
ControlGetText, Ed, Edit1, A ;Get Path of Active Window Explorer
IniRead, _path, %A_ScriptDir%\CapMate.ini, History, path, %A_Space%
Ed := Ed "``n" _path
IniWrite, %Ed%, %A_ScriptDir%\CapMate.ini, History, path ; here problem
Return
F2:: ; Read History ( but only one
IniRead, _path, %A_ScriptDir%\CapMate.ini, History, path
Transform, _path, DeRef, %_path%
MsgBox, % _path
Return
|
|
|
| Back to top |
|
 |
ahkiot0
Joined: 31 May 2008 Posts: 17
|
Posted: Wed Nov 18, 2009 9:54 pm Post subject: |
|
|
| Thanks for help, but i guess my bad eng play bad jokes, |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 7159
|
Posted: Wed Nov 18, 2009 10:00 pm Post subject: |
|
|
| Which part of my code is a bad joke? |
|
| Back to top |
|
 |
ahkiot0
Joined: 31 May 2008 Posts: 17
|
Posted: Wed Nov 18, 2009 10:46 pm Post subject: |
|
|
my stupidity, i guess im not correct make topic name
i guess my problem in Loop func
that in CapMate.ini
| Code: | [History]
191109,00-51-46=G:\1prog\Graph\!Screen Capture\`Console\Capturemation
191109,00-51-48=F:\1Prg\Helpfile\Mp3DirectCut
191109,00-52-43=G:\1prog\Aud\!Ed\Sound forge 10.0.368
191109,00-52-44=F:\Program Files\Sonic Foundry\Sound Forge 6.0\FileIO Plug-Ins
191109,00-52-51=F:\1Prg\Rsrc\XNResourceEditor3
191109,00-52-53=G:\1prog\Vid\`Ed\VirtulaDub ext
|
i make that i Add FormatTime and now String Add not Replace, that good.
| Code: | F1::
FormatTime, 3DnT,, ddMMyy,HH-mm-sss
ControlGetText, 1Ed, Edit1, A ;Get Path of Active Window Explorer
IniWrite, %1Ed%, %A_ScriptDir%\CapMate.ini, History, %3DnT%
return
F2:: ; Read History
IniRead, path, %A_ScriptDir%\CapMate.ini, History, path
MsgBox %path%
return |
now i try go all keys of [History] to SysTray menu. sorry for waste Ur & forum time.
that Just Example
 |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|