AutoHotKey tutorial

05/13/2007 17:52 bombica23#61
@hieitk Hm, your calculator give me an idea for program. I will try to create it when I will get some time.
And who is Naruto???????
05/13/2007 18:30 memorized128#62
@ Nakor5: You might wanna see if you can do something about instances where it says you need negative pluses (you say you want a +3 and have a +4).
Just saying.
05/13/2007 21:06 hieitk#63
@bombica23

naruto was character on my previous avatar xD

@Nakor5

Quote:
Originally posted by Nakor5@May 13 2007, 14:22
ok, excellent guide, this is what I made.
Be nice to know how to change the icon, I read the help file and it's all greek to me.
Looking forward to being able to add tabs so i can add a cost calculator without running a new prog.
Very good job Nakor ^^
here you have a sample of custom icon using the one of CO2

Code:
; custom icon
Menu, Tray, Icon, tqzf.ico
Gui, Show , w210 h100, Window title

; basic elements
Gui, Add, Text, x35 y30 *Left,Window with custom icon 

return

GuiClose: 
ExitApp
I won't have time today or tomorrow to create a new post to explain tabs, but on tuesday I'll make it.
05/14/2007 12:54 Nakor5#64
@ memorized128 Ok, updated the composition tool. Thnx for the input guys. Simple if statement fixed that negative plus one result. "Simple" well simple now lol.
@hieitk Icons... looking for a different solution if possible. Maybe putting the icon in the file so the exe can be located anywhere and display. Might be beyond AHK. Dunno.
05/28/2007 00:35 soemaal#65
guess im only one who keeps sticking whit AutoIT :( ;)
05/28/2007 21:16 bombica23#66
No, you are not the only one but I dont have time (school :S).
And its not autoIT but AutoHotKeys.
06/06/2007 10:52 killzone#67
Its basically almost the same as AutoIt.
Well, time to learn this one too.
06/16/2007 15:53 ccbrat17#68
I have been able to make an auto clicker so far but havent been able to get it to run on conquer wondering if its as if theres a firewall blocking out my program while im trying to use conquer or something along those lines not really sure
06/17/2007 06:28 hieitk#69
Quote:
Originally posted by ccbrat17@Jun 16 2007, 15:53
I have been able to make an auto clicker so far but havent been able to get it to run on conquer wondering if its as if theres a firewall blocking out my program while im trying to use conquer or something along those lines not really sure
upload the file or write the code to check
06/17/2007 06:49 ccbrat17#70
; Test

Gui, Show , w250 h50, Info

; only a text
Gui, Add, Text, x10 y12 Left, Press <SPACE> to pick up position

return
Space::
{
MouseGetPos,coordx, coordy
MsgBox,,Result,nPosition: (%coordx%.%coordy%)
return
}
A::
Loop
{
mouseclickx:=(IPosX+21)
mouseclicky:=(IPosY+21)
click right,%mouseclickx%,%mouseclicky%
Sleep,5000
}
Z::
Guiclose:
ExitApp
06/17/2007 08:35 hieitk#71
Quote:
Originally posted by ccbrat17@Jun 17 2007, 06:49
; Test

Gui, Show , w250 h50, Info

; only a text
Gui, Add, Text, x10 y12 Left, Press <SPACE> to pick up position

return
Space::
{
MouseGetPos,coordx, coordy
MsgBox,,Result,nPosition: (%coordx%.%coordy%)
return
}
A::
Loop
{
mouseclickx:=(IPosX+21)
mouseclicky:=(IPosY+21)
click right,%mouseclickx%,%mouseclicky%
Sleep,5000
}
Z::
Guiclose:
ExitApp
the error is pretty simple:

when u get to the loop the program do this:

do what?
right click

where?
at mouseclickx,mouseclicky

who is mouseclickx and mouseclicky?
mouseclickx is IPosX+21 and
mouseclicky is IPosY+21

who is IPosX and IPosY?
Not assigned


This is the way I think when I analizing a code, this one is pretty simple tho, and the problem is just some names, you should say:
mouseclickx:=(coordx+21)
mouseclicky:=(coordy+21)


hope that helps
06/17/2007 08:49 ccbrat17#72
I have tried running it and it will run on the desktop but will not run on conquer was wondering why it would do that i can get it to right click on my desktop but cannot get it to right click on co to do intensify was wondering if you would happen to have a coding for it to do that or could it be because im running windows vista and thats conflicting with it if so i will run it on a different computer with xp to level. any suggustions would be quite helpful as I am just begining at this.
06/17/2007 09:10 hieitk#73
Quote:
Originally posted by ccbrat17@Jun 17 2007, 08:49
I have tried running it and it will run on the desktop but will not run on conquer was wondering why it would do that i can get it to right click on my desktop but cannot get it to right click on co to do intensify was wondering if you would happen to have a coding for it to do that or could it be because im running windows vista and thats conflicting with it if so i will run it on a different computer with xp to level. any suggustions would be quite helpful as I am just begining at this.
if is running on ur desk it should run on CO too, but having vista could be the problem, try on winXP first and then tell me what happened.
06/17/2007 09:36 ccbrat17#74
is there anyone who looks at this who has windows xp, that is willing to test this out? scan if ud like, let me know how it works pls
06/17/2007 09:51 Nakor5#75
hmm.. you forgot to make the changes, once i changed the code to what hieitk said it worked on co window on xp using CO 4351 patch.
Loop
{
mouseclickx:=(coordX+21)
mouseclicky:=(coordY+21)
click left,%mouseclickx%,%mouseclicky%
Sleep,5000
}