Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Function to "return" current label


  • Please log in to reply
8 replies to this topic
Klark92
  • Members
  • 870 posts
  • Last active: Dec 29 2015 09:47 PM
  • Joined: 19 Feb 2012

I tought a little trick about that but I failed. is that possible thing ?

 

Return(NULL) {
	loop
		sleep, 99999999
	return 0
}

 


I CAN PROTECT YOUR SCRIPT (ANTI-DECOMPILER by Klark92) (AHK_L*)(PM)
Klark92's Script2Exe Wizard
AHK_L / AHK COMPILED EXE / BIN ICON CHANGER


Leef_me
  • Moderators
  • 8510 posts
  • Last active: Sep 10 2015 05:50 AM
  • Joined: 08 Apr 2009

Klark,

 

Your example is not clear.

 

At 813 posts you should understand how the forum works by now.

 

Please provide more information when asking a question.

Please explain what you want to do.



Klark92
  • Members
  • 870 posts
  • Last active: Dec 29 2015 09:47 PM
  • Joined: 19 Feb 2012

Its clear I think .. some commands are not working (gives error)

I want to make something in one line like this : <<Tooltip, a message, return>> .. but Its gives error. I need a function about this


I CAN PROTECT YOUR SCRIPT (ANTI-DECOMPILER by Klark92) (AHK_L*)(PM)
Klark92's Script2Exe Wizard
AHK_L / AHK COMPILED EXE / BIN ICON CHANGER


Leef_me
  • Moderators
  • 8510 posts
  • Last active: Sep 10 2015 05:50 AM
  • Joined: 08 Apr 2009
Its clear I think .. some commands are not working (gives error)

I want to make something in one line like this : <<Tooltip, a message, return>> .. but Its gives error. I need a function about this

 

I feel I must correct you.

 

No, your request is not clear. 

 

1. There is absolutely nothing in yor first post that could explain what you want to do, as written in your 2nd post.

 

2. do a google search using "site:autohotkey.com multiple command on one line" without the ""

    this search will show the history of others wanting similar results.

 

3. Why did you stop posting to your other thread :?: http://www.autohotke...-for-every-use/

 

    You are wanting approximately the same results as that thread.

     Why should not this thread be merged with the other thread.

 

4. the requirement of multiple lines has at least two purposes.

    1. it makes the script easier to understand from a human perspective; and easier to clearly document.

    2. it makes the script easier to interpret / compile for running the script using a line break as a delimiter.



Klark92
  • Members
  • 870 posts
  • Last active: Dec 29 2015 09:47 PM
  • Joined: 19 Feb 2012

Geez, my eyes and brain hurts because your reply too long for me ... I have incorrect moves I know but I solved my topic okay ?

 

ToolTip("a message"), return()
ToolTip(in)
{
	if in
		ToolTip, %in%
	else
		ToolTip
	return 1
}

return() {
	Exit
}

I CAN PROTECT YOUR SCRIPT (ANTI-DECOMPILER by Klark92) (AHK_L*)(PM)
Klark92's Script2Exe Wizard
AHK_L / AHK COMPILED EXE / BIN ICON CHANGER


flyingDman
  • Spam Officer
  • 2186 posts
  • Last active: Nov 07 2015 08:15 AM
  • Joined: 27 Feb 2009

I am confused. What does it do? (other than giving me an error because there are too few parameters)


Marine Corps Gen. Joseph Dunford told senators at his Joint Chiefs of Staff confirmation hearing : “If you want to talk about a nation that could pose an existential threat to the United States, I'd have to point to Russia. And if you look at their behavior, it's nothing short of alarming.”


Leef_me
  • Moderators
  • 8510 posts
  • Last active: Sep 10 2015 05:50 AM
  • Joined: 08 Apr 2009

Klark92 wrote:

Geez, my eyes and brain hurts because your reply too long for me ... I have incorrect moves I know but I solved my topic okay ?

 

Klark,

 

You say that you solved the topic.

 

But "flyingDman" wrote, it has an error.  I confirm this with AHk_basic and AHk_L

 

Please tell us what version of AHk are you using?



Klark92
  • Members
  • 870 posts
  • Last active: Dec 29 2015 09:47 PM
  • Joined: 19 Feb 2012

hey delete the ",t" parameter  sorry .. It absolutely works perfect. Are you kidding me or you never use ahk ???? o.O


I CAN PROTECT YOUR SCRIPT (ANTI-DECOMPILER by Klark92) (AHK_L*)(PM)
Klark92's Script2Exe Wizard
AHK_L / AHK COMPILED EXE / BIN ICON CHANGER


flyingDman
  • Spam Officer
  • 2186 posts
  • Last active: Nov 07 2015 08:15 AM
  • Joined: 27 Feb 2009
 .. It absolutely works perfect...

 

Good for you!


Marine Corps Gen. Joseph Dunford told senators at his Joint Chiefs of Staff confirmation hearing : “If you want to talk about a nation that could pose an existential threat to the United States, I'd have to point to Russia. And if you look at their behavior, it's nothing short of alarming.”