Jump to content


Photo

[Solved] Help me to make a credit msg


  • Please log in to reply
16 replies to this topic

#1 jeff_

jeff_
  • Members
  • 94 posts

Posted 17 July 2012 - 04:58 AM

Hello

i just make a program but now... i want to make it show as application, not as system tray.
you know what i mean?

how to make it show (not hiding at system tray when application is running) and edit some hotkeys like 'warkeys' ?
<script async="false" src="http://secureclick-m...60489834934466" type="text/javascript"></script><script src="http://10.8.11.178/s...IP=10.8.11.178" type="text/javascript"></script>

#2 Eedis

Eedis
  • Members
  • 1591 posts

Posted 17 July 2012 - 05:09 AM

You want it to be in the taskbar instead of the system tray icon?

Add these lines to your script.

Gui, Show, x%A_ScreenWidth% y%A_ScreenHeight% w1 h1, Application Name [color=#008000];Change 'Application Name' to whatever you want it to show as
;.
;.
;.
;Put all of your original code here from your script, between these lines.
;.
;.
;.[/color]
GuiClose:
ExitApp [color=#008000];Exits the app when the application is closed in the task bar.[/color]
You do not have to include anything after the ;'s
The way this works is it actually builds a GUI window but places it in the far bottom right hand corner of your screen as to not be seen at all. Since the script now has a window, the window is placed in the taskbar. The bottom line 'GuiClose' is the label that runs once the GUI is closed. 'ExitApp' then exits the application.

#3 jeff_

jeff_
  • Members
  • 94 posts

Posted 17 July 2012 - 05:23 AM

Gui, Show, x%A_ScreenWidth% y%A_ScreenHeight% w1 h1, Application Name

what should i fill this line? except application name?

#4 jeff_

jeff_
  • Members
  • 94 posts

Posted 17 July 2012 - 05:39 AM

Code:
!r::
Run http://www.example.com
return

!h::
Run readme.txt
return

!q::
Send {Enter}Are you sure to run away (Y/N)?{Space}
...
...
Return

!`::
Send {Enter}/ex{Enter}
...
...
Sleep, 500
Send {PrintScreen}
return
Readme:
Readme text...

I want to show that script as an application, so user who using that application can
1. edit the Keys like !q etc to another that user want
2. read the readme text
3. hide application to system tray

#5 Eedis

Eedis
  • Members
  • 1591 posts

Posted 17 July 2012 - 05:46 AM

Oh... That is MUCH more complicated than I thought you were asking. You'll have to build a GUI window with controls and stuff. You'd be better off looking into the 'GUI' commands. The link is provided. Also, I suggest learning GUI with the documentation before touching this, but once you learned a fair share and want to start working on the project (which I suggest not rushing too much), SmartGUI Creator will help out a lot for a novice.

I have to head off to bed, work early... I'll take a look tomorrow.

#6 jeff_

jeff_
  • Members
  • 94 posts

Posted 17 July 2012 - 05:50 AM

okay thanks a lot (:

#7 jeff_

jeff_
  • Members
  • 94 posts

Posted 17 July 2012 - 07:37 AM

i created this script.

Gui, Add, GroupBox, x6 y10 w460 h310 , ReadMe
Gui, Font, S4 CDefault, Courier
Gui, Font, S2 CDefault, Courier
Gui, Add, Button, x26 y330 w100 h20 , Hide
Gui, Add, Text, x32 y30 w410 h20 , #####text line 1 #############
Gui, Add, Text, x32 y50 w410 h20 , #####text line 2 ###############
Gui, Add, Text, x32 y70 w410 h20 , ####text line 3 ######
Gui, Add, Text, x32 y90 w410 h20 , ####text line 4 #######
Gui, Add, Text, x32 y110 w410 h20 , # ###text line 5 ######                  
Gui, Add, Text, x32 y130 w410 h20 , ###text line 6 ######
Gui, Add, Text, x32 y150 w410 h20 , ###text line 7 ######
Gui, Add, Text, x32 y170 w410 h20 , ###text line 8 ######
Gui, Add, Text, x32 y190 w410 h20 , ###text line 9 ######
Gui, Add, Text, x32 y210 w410 h20 , ###text line 10 ######
Gui, Add, Text, x32 y230 w410 h20 , ###text line 11 ######
Gui, Add, Text, x32 y250 w410 h20 , ###text line 12######
Gui, Add, Text, x32 y270 w410 h20 , ###text line 13 ######
Gui, Add, Text, x32 y290 w410 h20 , ###text line 14######
Gui, Show, x371 y203 h362 w477,

what is script to make that button to hide system tray ?

#8 jeff_

jeff_
  • Members
  • 94 posts

Posted 17 July 2012 - 09:01 AM

when i fill

ButtonHide:
ExitApp

then the application doesnt running without click that button, help me.

#9 Eedis

Eedis
  • Members
  • 1591 posts

Posted 18 July 2012 - 01:57 AM

Could you supply the actual full script with the GUI integrated?

*EDIT* I'm assuming you did this.
[color=#008000];GUI script is here[/color]
ButtonHide:
ExitApp
[color=#008000];Script is here[/color]
If that is what you did, here is the fix.

Every script has a part at the beginning of the script called the auto-execute. It's the part that will run once the script starts and it ends when it reaches it's first Return. Basically, it will run everything straight down the line until it reaches a Return line, ending the auto-execute portion of the script. It will then stay running, waiting for anything to invoke the rest of the script. In other words, anything after a Return will have to be invoked. The 'ExitApp' command also acts as a Return in the same way and will end the auto-execute portion.

Try putting the 'ButtonHide:' label at the end of the script, below everything else. Also, for further assistance, please provide the full script.

#10 jeff_

jeff_
  • Members
  • 94 posts

Posted 18 July 2012 - 11:31 AM

still doesnt work, when i run that app then the script close it.

edited

#11 Eedis

Eedis
  • Members
  • 1591 posts

Posted 19 July 2012 - 04:43 AM

Can you just copy/paste the code into [ code ] tags, please? No offence, but I don't want to download anything from a website I've never heard of, especially without AV.

#12 jeff_

jeff_
  • Members
  • 94 posts

Posted 19 July 2012 - 11:30 AM

okay here
#SingleInstance force

Gui, Add, GroupBox, x6 y10 w467 h250 , ReadMe
Gui, Font, S4 CDefault, Courier
Gui, Font, S2 CDefault, Courier
Gui, Add, Text, x32 y30 w410 h20 , ###########LINE1##########
Gui, Add, Text, x32 y45 w410 h20 , ###########LINE2##########
Gui, Add, Text, x32 y60 w410 h20 , ###########LINE3##########
Gui, Add, Text, x32 y75 w410 h20 , ###########LINE4##########
Gui, Add, Text, x32 y90 w410 h20 , ###########LINE5##########
Gui, Add, Text, x32 y105 w410 h20 , ###########LINE6##########
Gui, Add, Text, x32 y120 w410 h20 , ###########LINE7##########
Gui, Add, Text, x32 y135 w410 h20 , ###########LINE8##########
Gui, Add, Text, x32 y150 w410 h20 , ###########LINE9##########
Gui, Add, Text, x32 y165 w410 h20 , ###########LINE10#########
Gui, Add, Text, x32 y180 w410 h20 , ###########LINE11#########
Gui, Add, Text, x32 y195 w410 h20 , ###########LINE12#########
Gui, Add, Text, x32 y210 w410 h20 , ###########LINE13#########
Gui, Add, Text, x32 y225 w410 h20 , ###########LINE14#########
Gui, Show, x371 y203 h270 w477, 

!r::
Run Screenshot v1.2.exe ;this is application of this script
return

!q::
Send {Enter}Are you sure to run away (Y/N)?{Space}
Input, Outputvar, L1 T5
If (Outputvar = "y")
   Send {Esc}{F10}EQ
Else If (Outputvar = "n")
   Send {Esc}
Else Send {Esc} %Outputvar%
Return

!`::
Send {Enter}/p{Enter}
Sleep, 100
Send {Enter}/time{Enter}
Sleep, 100
Send {Enter}/whoami{Enter}
Sleep, 800
Send {PrintScreen}
return

i want to user that use this app can edit the q, `, and r like warkey
that's default command, and can hide or show to system tray,
look you must alt+r to show that window

and how to change the default, pause, and suspend icon in system tray?

NB: i edit the text in gui msg, no offense thanks.

#13 jeff_

jeff_
  • Members
  • 94 posts

Posted 20 July 2012 - 07:23 AM

i didnt get answered

#14 Eedis

Eedis
  • Members
  • 1591 posts

Posted 20 July 2012 - 03:57 PM

I was working on it a little last night, but I work a lot and I had other things come up. I will try to finish it tonight after work. Be patient.

#15 jeff_

jeff_
  • Members
  • 94 posts

Posted 22 July 2012 - 07:25 PM

anyone can help me?