Search found 5942 matches

by jeeswg
15 Jan 2017, 17:22
Forum: Ask For Help
Topic: Cropping and saving in Irfanview
Replies: 7
Views: 742

Re: Cropping and saving in Irfanview

- Oh my gosh, I see, so it seems like you're cropping the image, and then printscreening the entire screen to save the image! - I'm not sure what the best solution is, possibly retrieve the coordinates of the selected area, and crop the image directly via the command line based on the coordinates, w...
by jeeswg
15 Jan 2017, 15:53
Forum: Ask For Help
Topic: Cropping and saving in Irfanview
Replies: 7
Views: 742

Re: Cropping and saving in Irfanview

I use IrfanView for printscreens. And I use this line: RunWait, "%A_ScriptDir%\Exe\i_view32.exe" /capture=%vMode% /convert="%vPath%" So try changing this: ivParams = /capture=3 /convert=%Destination%\%name_no_ext%.jpg Runwait, "%A_ProgramFiles%\IrfanView\i_view32.exe" "%ivParams%",, to: ivParams = /...
by jeeswg
15 Jan 2017, 15:47
Forum: Ask For Help
Topic: Cropping and saving in Irfanview
Replies: 7
Views: 742

Re: Cropping and saving in Irfanview

Instead of
Send, { }
which appears to do nothing when I tested it, try:
Send, {Space}
by jeeswg
15 Jan 2017, 15:11
Forum: Ask For Help
Topic: Make a secondary input after a first
Replies: 3
Views: 196

Re: Make a secondary input after a first

The link above, Triple key combination with PrintScreen? - Ask for Help - AutoHotkey Community https://autohotkey.com/board/topic/124630-triple-key-combination-with-printscreen/ uses KeyWait for the letter, you could also use the Input command for the letter, Nextron's conditional hotkey technique i...
by jeeswg
15 Jan 2017, 15:00
Forum: Ask For Help
Topic: How does toggle work?
Replies: 4
Views: 304

Re: How does toggle work?

t := !t
if t

is the same as

t := !t
if (t)

is the same as

if (t := !t)
by jeeswg
15 Jan 2017, 14:53
Forum: Ask For Help
Topic: Get Current Micro/Nano seconds
Replies: 3
Views: 782

Re: Get Current Micro/Nano seconds

For people's attention, concatenating A_Now and A_MSec, can give incorrect results as they are calculated at separate times. q:: ;test - date and milliseconds (UTC) DllCall("kernel32\GetSystemTimeAsFileTime", Int64P,vIntervals) vDate := 1601 vDate += % vIntervals//10000000, S vMSec := SubStr("000" M...
by jeeswg
15 Jan 2017, 14:36
Forum: Ask For Help
Topic: Get Current Micro/Nano seconds
Replies: 3
Views: 782

Re: Get Current Micro/Nano seconds

Whew! Nice to know someone else knew. Wowsers, what do you need this for? q:: DllCall("kernel32\GetSystemTimeAsFileTime", Int64P,vIntervals) ;1 interval = 100 nanoseconds ;date and nanoseconds vDate := 1601 vDate += % vIntervals//10000000, S vNano := SubStr("0000000" Mod(vIntervals,10000000), 1-7) "...
by jeeswg
15 Jan 2017, 14:13
Forum: Ask For Help
Topic: Enter new line command not operative
Replies: 1
Views: 330

Re: Enter new line command not operative

Because this: F5:: Send, % StrReplace(clipboard,"-")
is a one-line hotkey, when you have a line of code immediately after the colons,
and so subsequent lines are ignored, do this instead:

Code: Select all

F5::
Send, % StrReplace(clipboard,"-")
Send, {Enter}
Return
by jeeswg
15 Jan 2017, 13:47
Forum: Ask For Help
Topic: Maximize only main window, not its scalable submenus.
Replies: 6
Views: 722

Re: Maximize only main window, not its scalable submenus.

- If you're looping through windows, lines like the first pair, or the second pair below, might help to identify a window to skip. - I don't know the significance of window style 0x80, so I would probably use the first pair which checks for extended window style 0x1. - I noticed that 'Task Manager -...
by jeeswg
15 Jan 2017, 13:27
Forum: Ask For Help
Topic: Maximize only main window, not its scalable submenus.
Replies: 6
Views: 722

Re: Maximize only main window, not its scalable submenus.

That should do it: q:: DetectHiddenWindows, On WinGet, hWnd, ID, A WinGetTitle, vWinTitle, % "ahk_id " hWnd WinGetClass, vWinClass, % "ahk_id " hWnd WinGet, vWinStyle, Style, % "ahk_id " hWnd WinGet, vWinExStyle, ExStyle, % "ahk_id " hWnd hWndParent := DllCall("user32\GetAncestor", Ptr,hWnd, UInt,1,...
by jeeswg
15 Jan 2017, 09:58
Forum: Ask For Help
Topic: ControlClick problem
Replies: 23
Views: 2401

Re: ControlClick problem

This link has some possible ideas regarding ControlClick: Right controlClick on ToolbarWindow321 autohotkey - Stack Overflow http://stackoverflow.com/questions/27152234/right-controlclick-on-toolbarwindow321-autohotkey You might want to specify the control if there is one, rather than the window for...
by jeeswg
15 Jan 2017, 09:24
Forum: Ask For Help
Topic: run command Topic is solved
Replies: 5
Views: 319

Re: run command Topic is solved

Yes, I might point out some classic folders, for MS programs:
C:\Windows
C:\Windows\System32
C:\Windows\SysWOW64

And more generally for other programs:
PATH environment variable.
by jeeswg
15 Jan 2017, 04:24
Forum: Ask For Help
Topic: PIxelSearch (Need help)
Replies: 24
Views: 1159

Re: PIxelSearch (Need help)

Try MouseMove, to see if the mouse goes to correct place.
You might also try ToolTip or MsgBox to check the content of variables.

for CoordMode:

Code: Select all

CoordMode, Pixel, Screen
CoordMode, Mouse, Screen
by jeeswg
15 Jan 2017, 03:56
Forum: Scripts and Functions
Topic: Commands As Functions (Titan's/polyethene's Functions.ahk update)
Replies: 20
Views: 4357

Re: Commands As Functions (Titan's/polyethene's Functions.ahk update)

Interesting! And subtle.

My penchant is to
set all the parameters in DllCall to Int or UInt, in the hope that the numbers won't ever be that big, and that the system will be 32-bit.
by jeeswg
15 Jan 2017, 01:19
Forum: Ask For Help
Topic: PIxelSearch (Need help)
Replies: 24
Views: 1159

Re: PIxelSearch (Need help)

Do check out CoordMode:
CoordMode
https://autohotkey.com/docs/commands/CoordMode.htm
by jeeswg
15 Jan 2017, 01:12
Forum: Ask For Help
Topic: run command Topic is solved
Replies: 5
Views: 319

Re: run command Topic is solved

When the process is the active window: WinGet, vPPath, ProcessPath, A MsgBox % vPPath You can also look at the properties of shortcuts in the Start Menu. Sometimes the path, isn't enough, and you need command line parameters. These are available in Task Manager, in the command line column. (View, Se...
by jeeswg
15 Jan 2017, 00:57
Forum: Ask For Help
Topic: Windows Update: detect if important updates available
Replies: 4
Views: 1050

Re: Windows Update: detect if important updates available

Well the current best solution I have is now: - JEE_ExpGetSystrayItems uses Acc to list the names of the systray items. - JEE_ExpUpdatesAvailable then checks for the text 'New updates are available'. - (JEE_ExpGetTaskbarItems is a similar function to the systray one.) I would still be interested in ...
by jeeswg
15 Jan 2017, 00:38
Forum: Scripts and Functions
Topic: Commands As Functions (Titan's/polyethene's Functions.ahk update)
Replies: 20
Views: 4357

Re: Commands As Functions (Titan's/polyethene's Functions.ahk update)

Thanks for the information. What would be required to make a function, '#Warn friendly'? If you wouldn't mind providing or linking an example function before and after. Can all of them be made '#Warn friendly'? I looked through: #Warn https://autohotkey.com/docs/commands/_Warn.htm Its script-checkin...
by jeeswg
14 Jan 2017, 20:54
Forum: Scripts and Functions
Topic: Commands As Functions (Titan's/polyethene's Functions.ahk update)
Replies: 20
Views: 4357

Commands As Functions (Titan's/polyethene's Functions.ahk update)

[EDIT:][see this link for the successor to this library] commands as functions (AHK v2 functions for AHK v1) - AutoHotkey Community https://autohotkey.com/boards/viewtopic.php?f=37&t=29689 First attempt at updating and completing Titan's/polyethene's Functions.ahk. Warning: many functions are untest...
by jeeswg
14 Jan 2017, 18:02
Forum: Ask For Help
Topic: Help for variables
Replies: 7
Views: 417

Re: Help for variables

To store more items on the clipboard,
you could do:

Code: Select all

2::
Clipboard := ""
Send ^c
ClipWait
vNum++
vText%vNum% := Clipboard

TrayTip, copied: %vNum%, 20, 17
Return

3::
vOutput := ""
Loop, %vNum%
vOutput .= vText%A_Index% "`r`n"
vNum := 0
Clipboard := vOutput
SendInput ^v
Return

Go to advanced search