AutoHotkey Community

It is currently May 21st, 2012, 4:56 pm

All times are UTC [ DST ]


Search found 73 matches
Search these results:

Author Message

 Forum: Scripts   Topic: [Func] RelativePath & AbsolutePath

Posted: May 1st, 2012, 4:19 pm 

Replies: 39
Views: 8521


emmanuel d I have found your function did not seem to work with a simple relative path such as Path1 := "..\scripts" If however I added a space in front of a simple path such as Path1 := " ..\scripts" then it worked. I changed the function around a bit to work in both cases. I ch...

 Forum: Custom   Topic: RegEx Class

 Post subject: Re: RegEx Class
Posted: April 19th, 2012, 5:29 pm 

Replies: 25
Views: 1864


nimda wrote:
There's also a way using DllCall which is more compatible:


Thanks nimda, This works great.

Although this does not fix the issue I am having with RegEx at least to solves this current Problem.

I will use this solution,
Thanks again.

 Forum: Custom   Topic: RegEx Class

 Post subject: Re: RegEx Class
Posted: April 18th, 2012, 5:03 am 

Replies: 25
Views: 1864


Frankie wrote:
I updated RegEx.ahk. Did you try the new version?


Yep, I did. I still get the same result. on version 0.5

 Forum: Custom   Topic: RegEx Class

 Post subject: Re: RegEx Class
Posted: April 18th, 2012, 3:37 am 

Replies: 25
Views: 1864


I am getting the same result I am expection the result to be c:\window\system32\calc.exe Instead the result is c:\windows Even with these changes ; From rg := new RegEx("%(\w*)%(.*)") ; Should match SystemRoot, $1 and the remaining captures Number group $2 ; To rg := new RegEx("%(\w*)...

 Forum: Custom   Topic: RegEx Class

 Post subject: Re: RegEx Class
Posted: April 17th, 2012, 11:20 pm 

Replies: 25
Views: 1864


fragman wrote:
Nice example! For real applications ExpandEnvironmentStrings (see MSDN) should be preferred though ;)

Not sure what a real application is but this for a simple launching app.

Thanks Frankie, I will be checking this out shortly.

 Forum: Custom   Topic: RegEx Class

 Post subject: Re: RegEx Class
Posted: April 17th, 2012, 6:54 pm 

Replies: 25
Views: 1864


I am a bit lost on how to use this class var := "%SystemRoot%\system32\calc.exe" rg := new RegEx("%(\w*)%(.*)") ; Should match SystemRoot MsgBox % rg.ReplaceCall(var,"Handle_Env") Handle_Env(m, eVarFull, eVar){ Msgbox In a <%eVarFull%>, the contents are "%eVar%&quo...

 Forum: Scripts   Topic: SetClipboardData and GetClipboardData functions

Posted: January 23rd, 2012, 4:49 pm 

Replies: 32
Views: 13322


@AmourSpirit: see first page where Firefox is mentioned, it uses a different format. Yes, I Know Firefox seems to use a different fromat The HTML format seems to be "HTML Format" (Firefox put also a Unicode "text/html" format) which seems to have a quite precise format: As I pos...

 Forum: Scripts   Topic: SetClipboardData and GetClipboardData functions

Posted: January 23rd, 2012, 4:42 pm 

Replies: 32
Views: 13322


What I posted above here works Fine for Chrome, Evernote and other Html Editors but not for Firefox anybody had any luck getting this to work with putting formatted HTML on the clipboard? Any help on getting this to work would be really appreciated OutputText := "This Will Work on <a href='http...

 Forum: Scripts   Topic: SetClipboardData and GetClipboardData functions

Posted: January 22nd, 2012, 6:31 am 

Replies: 32
Views: 13322


Can anyone help with this? in Chrome or Dreamweaver the "Html Format" works fine but Firefox will not paste anything. It say in this post that firefox needs "text/html" format on the clipboard. Html := pushHTML(OutputText) SetClipBoardData("HTML Format", Htm...

 Forum: Scripts   Topic: SetClipboardData and GetClipboardData functions

Posted: January 20th, 2012, 6:42 pm 

Replies: 32
Views: 13322


This is my Solution to get copying "Html Format" to the clipboard. This was tested on Windows 7 x64 AutoHotkkey_L v1.1.05.04. I found no issues so far with this script. CF_HTML := "HTML Format" pushHTML(sHtmlFragment, title = "", sourceUrl = "") {...

 Forum: Scripts   Topic: SetClipboardData and GetClipboardData functions

Posted: January 20th, 2012, 6:34 pm 

Replies: 32
Views: 13322


I am not sure this class would work for me as Ultimately I need to set html onto the clipboard. I Posted my solution for Unicode below this post check this http://www.autohotkey.com/forum/viewtopic.php?t=79998 you can do what above example shows with one line: WinClipboard.Clear() ;if you wa...

 Forum: Scripts   Topic: SetClipboardData and GetClipboardData functions

Posted: January 19th, 2012, 3:50 pm 

Replies: 32
Views: 13322


Does anyone know the answer to solve this. It is currently outside my scope of knowledge. It's more a UNICODE issue - works well with AHK_L Ansi ... ... DllCall("RtlMoveMemory" , "Uint", str [color=red] , "Str", @data , "Uint",_dataSize)[/color] DllCal...

 Forum: Scripts   Topic: SetClipboardData and GetClipboardData functions

Posted: January 18th, 2012, 7:44 pm 

Replies: 32
Views: 13322


Ok, I have spent way too many hours tring to get this to work. Can someone please help me with this. For some reason the following code only puts the first character on the clipboard "S". #SingleInstance force #NoEnv CF_TEXT := 1 myData := "Sigh!" SetClipBoardData(CF_TEXT, my...

 Forum: Support   Topic: [Solved] How to read DWORD and make usable keyboard shortcut

Posted: December 11th, 2011, 2:18 am 

Replies: 7
Views: 227


Thanks so much VxE Your advice really help out a lot! Below is the meat of the code and my revised class in the hopes it helps someone else. I have tested this with my script and it is working just fine. I had a little bit of trouble with Send but I worked it out. That is why the HotKey Property is ...

 Forum: Support   Topic: [Solved] How to read DWORD and make usable keyboard shortcut

Posted: December 10th, 2011, 8:17 pm 

Replies: 7
Views: 227


Ok, These are Virutal Key codes and Flags. To get the virtual key I remove any possible flags and then I am left with just the keycode. This works fine but I am still a bit stuck. I need to dynamically have my script hook the keyboard shortcuts. EnHkNewNote := MKeys.HkNewNote() ; gets the sh...
Sort by:  
Page 1 of 5 [ Search found 73 matches ]


All times are UTC [ DST ]


Powered by phpBB® Forum Software © phpBB Group