AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[module] HiEdit 3.0.0.1-2
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  

Do you want HiEdit internaly
Yes
45%
 45%  [ 20 ]
No, I like Edit control
27%
 27%  [ 12 ]
Other (please explain)
27%
 27%  [ 12 ]
Total Votes : 44

Author Message
majkinetor



Joined: 24 May 2006
Posts: 3544
Location: Belgrade

PostPosted: Tue May 22, 2007 8:55 pm    Post subject: Reply with quote

It doesn't exist. AniGif has this.
_________________
Back to top
View user's profile Send private message MSN Messenger
Elevator_Hazard



Joined: 28 Oct 2006
Posts: 303
Location: Illinois

PostPosted: Tue May 22, 2007 10:16 pm    Post subject: Reply with quote

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 Very Happy
Back to top
View user's profile Send private message
Elevator_Hazard



Joined: 28 Oct 2006
Posts: 303
Location: Illinois

PostPosted: Sat May 26, 2007 2:40 pm    Post subject: Reply with quote

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 Very Happy
Back to top
View user's profile Send private message
mwharri



Joined: 15 Mar 2007
Posts: 70

PostPosted: Sat May 26, 2007 5:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
majkinetor



Joined: 24 May 2006
Posts: 3544
Location: Belgrade

PostPosted: Sat May 26, 2007 7:46 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
mwharri



Joined: 15 Mar 2007
Posts: 70

PostPosted: Sat Jun 02, 2007 3:16 am    Post subject: Reply with quote

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
View user's profile Send private message
majkinetor



Joined: 24 May 2006
Posts: 3544
Location: Belgrade

PostPosted: Sat Jun 02, 2007 1:49 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
majkinetor



Joined: 24 May 2006
Posts: 3544
Location: Belgrade

PostPosted: Sat Jun 02, 2007 3:19 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
Elevator_Hazard



Joined: 28 Oct 2006
Posts: 303
Location: Illinois

PostPosted: Sun Jun 03, 2007 4:16 am    Post subject: Reply with quote

Hmmm... I am really bored on the linux compy and I love how easy FTP things are on this so...



Congrats Very Happy I set up a small little system Cool
_________________
Changed siggy at request of ahklerner Very Happy
Back to top
View user's profile Send private message
majkinetor



Joined: 24 May 2006
Posts: 3544
Location: Belgrade

PostPosted: Sun Jun 03, 2007 9:48 am    Post subject: Reply with quote

ROFL.

Very Happy
_________________
Back to top
View user's profile Send private message MSN Messenger
Supercalifragilistic
Guest





PostPosted: Mon Jun 04, 2007 5:17 pm    Post subject: Reply with quote

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

PostPosted: Mon Jun 04, 2007 5:34 pm    Post subject: Reply with quote

I know Very Happy

Thx for the thought anyway

Its not useful btw.
_________________
Back to top
View user's profile Send private message MSN Messenger
z3lig



Joined: 13 Aug 2007
Posts: 11

PostPosted: Fri Aug 17, 2007 11:04 am    Post subject: Reply with quote

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
View user's profile Send private message
Ian



Joined: 15 Jul 2007
Posts: 1077
Location: Enterprise, Alabama

PostPosted: Sun Sep 09, 2007 12:56 am    Post subject: Reply with quote

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
View user's profile Send private message
majkinetor



Joined: 24 May 2006
Posts: 3544
Location: Belgrade

PostPosted: Sun Sep 09, 2007 12:14 pm    Post subject: Reply with quote

no, i also asked author to support this.
_________________
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6, 7  Next
Page 5 of 7

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group