Search found 2675 matches

by guest3456
Yesterday, 20:16
Forum: Ask For Help
Topic: Three ifs expressions Topic is solved
Replies: 3
Views: 106

Re: Three ifs expressions Topic is solved

you could try and !(three)

but its better if you post a full working script of the failure
by guest3456
Yesterday, 12:02
Forum: Ask For Help
Topic: Ceil() with precision Topic is solved
Replies: 5
Views: 210

Re: Ceil() with precision Topic is solved

This is what I came up with after checking that stackoverflow floor(param_number,param_precision:=0) { offset := -0.5 if (param_precision != 0) { offset := offset / (10 ** param_precision) } ; trim trailing 0s sum := Trim(param_number + offset . "", "0") ; if last char is 5 then remove it value := ...
by guest3456
Yesterday, 11:25
Forum: Ask For Help
Topic: activate a certain window when mouse is over it...help! Topic is solved
Replies: 4
Views: 76

Re: activate a certain window when mouse is over it...help! Topic is solved

i would like to move my mouse around and when it scrolls over my doc called "notes" then it will activate the notes without clicking it but it will ignore other windows. #Persistent SetTimer, WatchCursor, 100 return WatchCursor: MouseGetPos,,, WinUMID WinGetTitle, title, ahk_id %WinUMID% if InStr(t...
by guest3456
Yesterday, 11:11
Forum: General Discussion
Topic: Downsides of running as admin
Replies: 4
Views: 170

Re: Downsides of running as admin

don't run your scripts as admin by default.
don't even run your windows account as admin
by guest3456
Yesterday, 10:51
Forum: AutoHotkey v2 Development
Topic: v2 breaking changes policy
Replies: 9
Views: 349

Re: v2 breaking changes policy

this thread just reminded me that AHK v2 is 8 years old and still not even out of alpha stage. v2 was meant for breaking changes to fix the quirks of the language syntax to make it more consistent and easier to understand. it was NOT meant for new features. all of these new features should have bee...
by guest3456
Yesterday, 00:35
Forum: Offtopic
Topic: 10 Year Anniversary
Replies: 6
Views: 196

Re: 10 Year Anniversary

congrats and thanks to all
by guest3456
17 Nov 2019, 23:38
Forum: Ask For Help
Topic: One input for multiple outputs Topic is solved
Replies: 4
Views: 113

Re: One input for multiple outputs Topic is solved

you didn't do what i said.. use your original script and replace your goto ternary line with one of the ones i gave you
by guest3456
17 Nov 2019, 18:11
Forum: Ask For Help
Topic: One input for multiple outputs Topic is solved
Replies: 4
Views: 113

Re: One input for multiple outputs Topic is solved

The active message works, but the paused message populates an error. "Error: Target label does not exist." as well as "' 020:Goto,toggle=1 ? "a" : (toggle=2) ? "b" "' i have no idea what im doing wrong here. all ternary expressions MUST have an else clause yours translates to: if (toggle=1) goto a ...
by guest3456
17 Nov 2019, 13:03
Forum: Ask For Help
Topic: Ceil() with precision Topic is solved
Replies: 5
Views: 210

Re: Ceil() with precision Topic is solved

finally with the help of google, and after many edits, i've got it working for all of these test cases: #Include Yunit.ahk ; https://github.com/Uberi/Yunit #Include Window.ahk Yunit.Use(YunitWindow).Test(CeilTests) ceiling(param_number, param_precision:=0) { ;// based off: https://stackoverflow.com/...
by guest3456
17 Nov 2019, 11:46
Forum: Ask For Help
Topic: ahk icon run under the taskbar
Replies: 3
Views: 79

Re: ahk icon run under the taskbar

if you want the script to close when its done, add ExitApp at the end of the macro

using #NoTrayIcon will keep the script running
by guest3456
16 Nov 2019, 21:21
Forum: Ask For Help
Topic: Problems with finding space character
Replies: 6
Views: 146

Re: Problems with finding space character

SuperFoobar wrote:
16 Nov 2019, 21:13
Most likely what happened is you copied a zero width ascii character.
or it could be a non-breaking space char, ASCII 160 instead of ASCII 32

send this to notepad, and then paste the result back into your reveal script:

F9::Send, % "Test" Chr(160) "123"
by guest3456
16 Nov 2019, 21:13
Forum: Ask For Help
Topic: Problems with finding space character
Replies: 6
Views: 146

Re: Problems with finding space character

I'm not sure about your particular issue of why it shows up or not

But note that on Windows, most newlines are actually two chars long CR and LF or in AHK `r`n whereas on mac and unix its typically only LF `n. Maybe that's affecting your results. Notepad might be converting the newline to `r`n
by guest3456
16 Nov 2019, 20:42
Forum: Ask For Help
Topic: Remapping Hotkeys on Lenovo Thinkpad P53
Replies: 3
Views: 84

Re: Remapping Hotkeys on Lenovo Thinkpad P53

That makes sense, however I want to keep the other hotkeys funcitonal. I like having hte volume keys as hot keys, and the brightness keys as hot keys. I also like being able to use the f keys in excel and other programs. Well with FnLock turned on, then those functions are still hotkeys, but you ju...
by guest3456
16 Nov 2019, 20:09
Forum: Ask For Help
Topic: Bug? Abnormal order of evalutation in associative array
Replies: 3
Views: 143

Re: Bug? Abnormal order of evalutation in associative array

yeah this looks like the exact same issue as your other thread about pre-increment
by guest3456
16 Nov 2019, 20:00
Forum: Ask For Help
Topic: Remapping Hotkeys on Lenovo Thinkpad P53
Replies: 3
Views: 84

Re: Remapping Hotkeys on Lenovo Thinkpad P53

my T480s Thinkpad has FnLock which is enabled with Fn+ESC, and then all of the F-keys turn into their normal functions, and then you could just remap F8 directly for example
by guest3456
15 Nov 2019, 15:36
Forum: Ask For Help
Topic: How to identify a bitmap with a top-down orientation
Replies: 6
Views: 626

Re: How to identify a bitmap with a top-down orientation

Hi :wave: I checked and the value of biHeight member is always positive, no matter the real orientation. How do you deduce what is the real orientation? The orientation is just the order of storing the pixels in memory, it shouldn't affect how the image looks when you display it. As far as I can re...
by guest3456
15 Nov 2019, 10:21
Forum: Scripts and Functions
Topic: Image2Include - #include images in your scripts
Replies: 9
Views: 496

Re: Image2Include - #include images in your scripts

First of all, nice work so far. Been trying to use your script, but I have no clue how to add more images in a GUI using this. Can you tell me how? Um, just run the Image2Include.ahk script, pick an image, and the code will be generated. Then just put the appropriate code in the Sample.ahk script
by guest3456
15 Nov 2019, 06:10
Forum: Ask For Help
Topic: script coordinates desktop icons Topic is solved
Replies: 2
Views: 137

Re: store coordinate script Topic is solved

you could simply set a variable and check it and reset it: SetMouseDelay, 1 first_press := true ; start your flag variable with a default value END:: if (first_press) { mousegetpos, firstposition_x, firstposition_y first_press := false } else { mousegetpos, secondposition_x, secondposition_y mouseCl...
by guest3456
15 Nov 2019, 05:21
Forum: Scripts and Functions
Topic: Gdip_CreateBitmapFromHBITMAP() with transparency.
Replies: 11
Views: 1303

Re: Gdip_CreateBitmapFromHBITMAP() with transparency.

does anyone have some samples with transparency where the normal CreateBitmapFromHBITMAP would fail, but where this would succeed? that would be helpful to see The GDI+ API is full of idiosyncrasies and limitations. The GdipCreateBitmapFromHBITMAP function is just one of many. The GdipCreateBitmapF...

Go to advanced search