Sign in to follow this  
Followers 0
botanic

hetkey help

4 posts in this topic

i need to make a hotkey that tells me what line im on however if i set a function it tells me the kine of the function...

Share this post


Link to post
Share on other sites



Try adding a few traytips throughout your code.


[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

HotKeySet ("{F2}", "WhatLine")

Global $iNowLine

Func WhatLine ()
  MsgBox (0, "DEBUG", "Now line is " & $iNowLine)
EndFunc

; Code starts here
$iNowLine = 10
WinWait ("my window", "")
$iNowLine = 12
WinSetTitle ("my window", "", "my new window")
$iNowLine = 14


[quote name='Valik' post='301213' date='Jan 31 2007, 10:36 PM']You seem to have a habit of putting things in the wrong place. I feel sorry for any female you attempt to have sex with.[/quote][font="Lucida Sans Unicode"][/font]

Share this post


Link to post
Share on other sites

...and don't forget about Opt("TrayIconDebug", 1)

Run this code and mouse over the AutoIt icon once the traytips stop:

Opt("TrayIconDebug", 1)
; Code starts here
TrayInfo(3)
WinWait("my window", "", 2)
TrayInfo(5)
WinWait("my window", "text", 2)
TrayInfo(7)
Sleep(3000)
TrayTip("", "", 1)
Sleep(30000)

Func TrayInfo($info)
    TrayTip("", "Line " & $info, 3)
EndFunc   ;==>TrayInfo

[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0