| View previous topic :: View next topic |
| Do you want HiEdit internaly |
| Yes |
|
45% |
[ 20 ] |
| No, I like Edit control |
|
27% |
[ 12 ] |
| Other (please explain) |
|
27% |
[ 12 ] |
|
| Total Votes : 44 |
|
| Author |
Message |
majkinetor
Joined: 24 May 2006 Posts: 3544 Location: Belgrade
|
Posted: Tue May 22, 2007 8:55 pm Post subject: |
|
|
It doesn't exist. AniGif has this. _________________
 |
|
| Back to top |
|
 |
Elevator_Hazard
Joined: 28 Oct 2006 Posts: 303 Location: Illinois
|
Posted: Tue May 22, 2007 10:16 pm Post subject: |
|
|
majkinetor
Thanks much I haven't tried it yet because the newest version of the program using this control is at my grandparent's house. Its going to hopefully be a much improved program from my preview HTML Notepad I had made, its almost ready for release but I need a friend to implement the ftp upload stuff because I can't get ftp to work on... Wait a minute I can just do that at grandparent's house *hits self*...
Anyways thanks. _________________ Changed siggy at request of ahklerner  |
|
| Back to top |
|
 |
Elevator_Hazard
Joined: 28 Oct 2006 Posts: 303 Location: Illinois
|
Posted: Sat May 26, 2007 2:40 pm Post subject: |
|
|
majkinetor how did you figure this stuff out? I can't even find out what functions in this other dll are called or what parameters it accepts, how did you find out? _________________ Changed siggy at request of ahklerner  |
|
| Back to top |
|
 |
mwharri
Joined: 15 Mar 2007 Posts: 70
|
Posted: Sat May 26, 2007 5:49 pm Post subject: |
|
|
| I am also curious regarding Elevator_Hazard's post. I've begun what I hope will soon be a feature-rich ahk editor in HiEdit....referenced here: http://www.autohotkey.com/forum/viewtopic.php?t=19529. I'm definitely curious as to what else I can do with that dll. |
|
| Back to top |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 3544 Location: Belgrade
|
Posted: Sat May 26, 2007 7:46 pm Post subject: |
|
|
| Quote: | | majkinetor how did you figure this stuff out? |
THe HiEditor is open source so you can read its code (its ASM code, so you have to know it). HiEditor is done by acyprian, Jupiter and some other guys from WinAsm forum and it is using HiEdit, of course. _________________
 |
|
| Back to top |
|
 |
mwharri
Joined: 15 Mar 2007 Posts: 70
|
Posted: Sat Jun 02, 2007 3:16 am Post subject: |
|
|
OK....I'm new to this whole dll call, send message craziness, but I'm trying to emulate find and find/replace functionality for HiEdit, and I can't seem to figure it out. I have written the below code a hundred ways and I can't seem to get the function to work. It always returns ErrorLevel as FAIL.
| Code: |
HE_FindText(hEdit, w="", l="") {
static EM_FINDTEXT := 1080
l = 0|-1%l%
SendMessage, EM_FINDTEXT, w, l,, ahk_id %hEdit%
Return ErrorLevel
}
|
According to the HiEdit.inc file, the return value is supposed to be either the character position of the next match in the control, or -1 if it's not found. i've written the line
l = 0|-1%l% as:
l = 0|-1"%l%"
l := "0|-1" . l
there are a couple of more, but I don't remember them. No matter what I do, ErrorLevel is always FAIL. What stupid thing am I missing? |
|
| Back to top |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 3544 Location: Belgrade
|
Posted: Sat Jun 02, 2007 1:49 pm Post subject: |
|
|
| Quote: | | lParam = lpFindText :Pointer to a FINDTEXT structure containing information about the find operation. |
U didn't fill any structure.
| Quote: | EM_FINDTEXT EQU WM_USER + 56
wParam = fuFlags :Zero or more of the FT_MATCHCASE, FT_WHOLEWORD, FR_NOTNULLTERMINATED values.
lParam = lpFindText :Pointer to a FINDTEXT structure containing information about the find operation.
FINDTEXT STRUCT
chrg CHARRANGE <> Range to search
lpstrText DWORD ? If FR_NOTNULLTERMINATED is used, the first 4 bytes
is the length of the string to find followed by the
actual (not null-termianated) string to find.
Otherwise, Null terminated string to find
FINDTEXT ENDS |
Custom controls are not trivial to wrap. It may seem so if you watch finshed code, but I have lot of experience and know pretty much about architechture of Windows NT OS family. _________________
 |
|
| Back to top |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 3544 Location: Belgrade
|
Posted: Sat Jun 02, 2007 3:19 pm Post subject: |
|
|
v0.1
| Code: |
;Styles: HSCROLL ,VSCROLL, TABBED, HILIGHT, TABBEDBTOP, TABBEDHRZSB ,TABBEDBOTTOM
HE_Add(hwnd,x,y,w,h,style="HSCROLL VSCROLL"){
;flags: WHOLEWORD MATCHCASE NOTNULLTERMINATED
HE_FindText(hEdit, sText, cpMin=0, cpMax=-1, flags="")
HE_SetSel(hEdit, nStart=0, nEnd=-1)
HE_Redo(hEdit)
HE_Undo(hEdit) |
The new features are added into Features menu. _________________
 |
|
| Back to top |
|
 |
Elevator_Hazard
Joined: 28 Oct 2006 Posts: 303 Location: Illinois
|
Posted: Sun Jun 03, 2007 4:16 am Post subject: |
|
|
Hmmm... I am really bored on the linux compy and I love how easy FTP things are on this so...
Congrats I set up a small little system  _________________ Changed siggy at request of ahklerner  |
|
| Back to top |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 3544 Location: Belgrade
|
Posted: Sun Jun 03, 2007 9:48 am Post subject: |
|
|
ROFL.
 _________________
 |
|
| Back to top |
|
 |
Supercalifragilistic Guest
|
Posted: Mon Jun 04, 2007 5:17 pm Post subject: |
|
|
| HiEditor V2.0.0.6b is out. May be is it usefull for you, majkinetor. |
|
| Back to top |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 3544 Location: Belgrade
|
Posted: Mon Jun 04, 2007 5:34 pm Post subject: |
|
|
I know
Thx for the thought anyway
Its not useful btw. _________________
 |
|
| Back to top |
|
 |
z3lig
Joined: 13 Aug 2007 Posts: 11
|
Posted: Fri Aug 17, 2007 11:04 am Post subject: |
|
|
Nice work, dude. Couple questions:
1. How can I put this on multiples tabs in Gui, Tab?
2. When I do a Gui, Submit can I assign the contents of an hEdit box to a variable?
I'm considering using this in place of Edit because for some reason Edit envokes different ahk_ids everytime you input text to it. hEdit doesn't seem to do this.
Thanks in advance! |
|
| Back to top |
|
 |
Ian
Joined: 15 Jul 2007 Posts: 1077 Location: Enterprise, Alabama
|
Posted: Sun Sep 09, 2007 12:56 am Post subject: |
|
|
Is there a way of adjusting the LineNumbersBar text? Like to get it away from the code to reduce confusion? _________________ 1,000 Posts achieved on Saturday April 26, 2008 1:45 am |
|
| Back to top |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 3544 Location: Belgrade
|
Posted: Sun Sep 09, 2007 12:14 pm Post subject: |
|
|
no, i also asked author to support this. _________________
 |
|
| Back to top |
|
 |
|