AutoHotkey Community

It is currently May 27th, 2012, 10:03 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Hotstring troubles
PostPosted: May 9th, 2009, 10:49 am 
Hi,
this is my code:
Code:
:*:test::
Send, (
   test
   asd
)
return


According to the ahk help file it should work.
But if i type "test" i get
Code:
Send, (
   test
   asd
)
return


Maybe someone sees the mistake.

Thanks in Advance!


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 9th, 2009, 11:04 am 
Offline

Joined: June 18th, 2008, 8:36 am
Posts: 4923
Location: AHK Forum
Try:
Code:
:*:test::
Send,
(
   test
   asd
)
return

_________________
AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun :wink:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 9th, 2009, 11:08 am 
Offline

Joined: June 6th, 2006, 3:19 pm
Posts: 1654
Location: Denmark
This works for me
Code:
:*:test::
Send,
(
   test
   asd
)
return

_________________
RegEx Powered Dynamic Hotstrings
COM
AutoHotkey 2


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 9th, 2009, 11:19 am 
Unfortunately it doesntwork for me.

Produces the following output in Notepad:
Code:
Send,
(
   test
   asd
)
return


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 9th, 2009, 11:26 am 
Ok apparently it has to do something with the exe file.

If i use the AutoHotKey.ahk with the main exe and following code
it works. (Using "Send," it still prints too much)

Code:
:*:test::
(
test
asd
)
return


But if i use my own ahk file and convert it to .exe the output is
Code:
(
test
asd
)
return


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 9th, 2009, 11:45 am 
Offline

Joined: June 18th, 2008, 8:36 am
Posts: 4923
Location: AHK Forum
Code:
Send,
(
   test
   asd
)
return

returns for me
Code:
test
   asd


Which AutoHotkey version are you using?

_________________
AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun :wink:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 9th, 2009, 1:49 pm 
HotKeyIt wrote:
Code:
Send,
(
   test
   asd
)
return

returns for me
Code:
test
   asd


Which AutoHotkey version are you using?


1.0.48.03


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 9th, 2009, 3:12 pm 
problem solved... anyhow my files were saved in a wrong way.
i opened the files with notepad (instead of notepad++) and saw the messed up line breaks.

probably it was the wrong encoding (notepad++ uses ANSI as default if i remember correctly). so what encoding type should i choose for my new files now?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: May 10th, 2009, 4:41 am 
Offline

Joined: May 24th, 2007, 3:45 am
Posts: 1121
ANSI should be correct, unless Notepad++ means something different than Notepad does, because Notepad defaults to ANSI also. Perhaps some other setting in Notepad++ is interfering?


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], Google Feedfetcher, Maestr0, specter333, tomoe_uehara, XstatyK and 63 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group