Search found 181 matches
- 12 Feb 2018, 10:06
- Forum: Ask for Help (v1)
- Topic: WinMove a gui moves it briefly but goes back where it was
- Replies: 6
- Views: 1333
Re: WinMove a gui moves it briefly but goes back where it was
Sorry for so many incomplete code snippets that might have explained it much better. For the sake of this topic to not be incomplete. I think this should be essentially the complete event how the gui gets moved. There is no other code in my script that would/should interfere with this. I use WM_LBUT...
- 12 Feb 2018, 09:09
- Forum: Ask for Help (v1)
- Topic: WinMove a gui moves it briefly but goes back where it was
- Replies: 6
- Views: 1333
Re: WinMove a gui moves it briefly but goes back where it was
Found the problem. Thank god because commenting out code would take a lot of time. xD The issue is: PostMessage, 0xA1, 2 If i use a timer for MouseGetPos / WinMove it works. Of course you can see the timers lag while moving the gui. Now, why is PostMessage, 0xA1, 2 resetting the gui?. I tried even a...
- 12 Feb 2018, 07:30
- Forum: Ask for Help (v1)
- Topic: WinMove a gui moves it briefly but goes back where it was
- Replies: 6
- Views: 1333
Re: WinMove a gui moves it briefly but goes back where it was
Yes, i use hwnd1 as a global as this "when i release it, it moves as it should within the screen but only for a brief moment" would not work at all. But the issue is not if its working, it does, the odd thing is that it reverts back. If i was to copy/paste: WinMove, ahk_id %hwnd1%, , %newPosX%, %new...
- 11 Feb 2018, 12:02
- Forum: Tutorials (v1)
- Topic: How to Make AHK Work in Most Games - The Basics
- Replies: 26
- Views: 142450
Re: How to Make AHK Work in Most Games - The Basics
It should work. Or try ~+:: Shift key. As a hotkey (Shift::) it fires upon release unless it has the tilde prefix. Corresponds to the + hotkey prefix. from: https://autohotkey.com/docs/KeyList.htm :) Edit: a little more info would also be nice. Where did you try it (what program); Did you try it in ...
- 11 Feb 2018, 09:54
- Forum: Ask for Help (v1)
- Topic: WinMove a gui moves it briefly but goes back where it was
- Replies: 6
- Views: 1333
WinMove a gui moves it briefly but goes back where it was
Im trying to keep a gui on screen by using WinMove once it is outside screen but it does not work. I click on the gui, move it outside screen, when i release it, it moves as it should within the screen but only for a brief moment, then it goes back to its original location. This is the code: ~LButto...
- 11 Feb 2018, 09:36
- Forum: Gaming Help (v1)
- Topic: Help With this code Topic is solved
- Replies: 2
- Views: 726
Re: Help With this code Topic is solved
May i just point out that your sleep is one millisecond? If you want one second sleep, try Sleep, 1000 Threshold = 20 ;https://www.youtube.com/watch?v=rJZZi0dPphE&list=PLcmyfEZP-r3hU3UDPf__DZFvPkbxlAerY&index=3 *~$Xbutton1:: MouseGetPos, MouseX, MouseY PixelGetColor, Color1, (MouseX+2), (MouseY+2) S...
- 11 Feb 2018, 09:11
- Forum: Ask for Help (v1)
- Topic: Can gdi+ load custom fonts from .ttf files? Topic is solved
- Replies: 6
- Views: 1770
Re: Can gdi+ render on desktop behind icons and can i somehow load custom fonts from .ttf files? Topic is solved
I swear this "subscribe to topic" button is messing with me. we need auto sub to our own posts by default and unsub by need.
So, small question, do i replace the function within the gdip_all.ahk or to i append in my script?
Will try it later today and tell if it works. Im on 64 bits.
Thanks!
So, small question, do i replace the function within the gdip_all.ahk or to i append in my script?
Will try it later today and tell if it works. Im on 64 bits.
Thanks!
- 10 Feb 2018, 08:47
- Forum: Ask for Help (v1)
- Topic: RegEx issue. Of course.... Topic is solved
- Replies: 13
- Views: 2310
Re: RegEx issue. Of course.... Topic is solved
It would be nice to get some feedback how to rename the topic to help find this easier and more pecise for what it solves. xD Not a programmer so i have no clue how to call it. :oops: I have made a test script demo to try out with comments and tried to change some stuff that would make it easier for...
- 09 Feb 2018, 17:52
- Forum: Ask for Help (v1)
- Topic: RegEx issue. Of course.... Topic is solved
- Replies: 13
- Views: 2310
Re: RegEx issue. Of course.... Topic is solved
Was the objective to get all the matches? Uhm, if you mean in per [xxx] as independent entries, yes? Finding all matches is a broad question for this one. xDDDDD Sorry for confustion. This is hard explaining sometimes. :oops: I was just thinking in theory of how if at all possible how RegExReplace ...
- 09 Feb 2018, 16:32
- Forum: Ask for Help (v1)
- Topic: RegEx issue. Of course.... Topic is solved
- Replies: 13
- Views: 2310
Re: RegEx issue. Of course.... Topic is solved
Well, could RegExReplace use AnimSeq in a loop and set a loop index variable with first match and remove that match from AnimSeq? Like Loop { FoundString := command%a_index% := regexre(AnimSeq, exp) StringReplace, AnimSeq, FoundString,, 0 ; here would be FoundString reformated to use the end value }...
- 09 Feb 2018, 15:42
- Forum: Ask for Help (v1)
- Topic: RegEx issue. Of course.... Topic is solved
- Replies: 13
- Views: 2310
Re: RegEx issue. Of course.... Topic is solved
Nice! 3 examples. Ill play around later and post which one works best for me. Maybe use all for different things. In any case, all 3 are awesome examples. Thanks!
- 09 Feb 2018, 04:02
- Forum: Ask for Help (v1)
- Topic: RegEx issue. Of course.... Topic is solved
- Replies: 13
- Views: 2310
Re: RegEx issue. Of course.... Topic is solved
Thanks for trying to explain but that didnt help me much. xD I guessed i need a loop but perhaps i didnt give a proper example since i never got it to work so i did not have any loops. My idea was (to summarize in theory): Sequence1=Action PlayOnce Sequence2=Move X 500 Sequence3=Move Y 300 Sequence3...
- 08 Feb 2018, 19:09
- Forum: Ask for Help (v1)
- Topic: RegEx issue. Of course.... Topic is solved
- Replies: 13
- Views: 2310
RegEx issue. Of course.... Topic is solved
I tried a bunch of googling and jeesweg's examples and just could not solve the GA RegEx. -.- Im trying to extract any and all matches with RegExMatch for some anims. I want to modify the anims easy and create sequences so the easiest way i thought was to use variables with multiple entries. I did n...
- 05 Feb 2018, 22:35
- Forum: Ask for Help (v1)
- Topic: Can gdi+ load custom fonts from .ttf files? Topic is solved
- Replies: 6
- Views: 1770
Can gdi+ load custom fonts from .ttf files? Topic is solved
Edited subject name from Can gdi+ render on desktop behind icons and can i somehow load custom fonts from .ttf files? for separation purposes. Pretty much the topics subject. I could not find a function for tics GDI lib to use custom fonts from files, which is a shame. I would like to render some t...
- 05 Feb 2018, 22:00
- Forum: Ask for Help (v1)
- Topic: Including a Gui directly into a window?
- Replies: 5
- Views: 1061
Re: Including a Gui directly into a window?
So much about me thinking it would be more or less simple code. Holly pancakes...
Nice piece of code.
Nice piece of code.
- 05 Feb 2018, 21:13
- Forum: Ask for Help (v1)
- Topic: Including a Gui directly into a window?
- Replies: 5
- Views: 1061
Re: Including a Gui directly into a window?
I had partial success with this: #NoEnv ; #Warn SendMode Input SetWorkingDir %A_ScriptDir% #SingleInstance, Force ; Check if any notepad window exists, otherwise close this script. IfWinNotExist, ahk_exe Notepad.exe exitapp NotepadHWND:=WinExist() ; get handle to notepad. ; Add simple dummy context ...
- 30 Jan 2018, 13:18
- Forum: Ask for Help (v1)
- Topic: Do a CBT check before doing something after target A_TimeIdle has been reached
- Replies: 1
- Views: 700
Do a CBT check before doing something after target A_TimeIdle has been reached
I made a script with some GDI anims for some tests (custom interactive screensaver) and A_TimeIdle works nice, but i found a problem that if some programs like VLC player is open, it will execute animations even thought a movie is playing or similar. I want to avoid that and read how windows knows w...
- 22 Jan 2018, 23:01
- Forum: Ask for Help (v1)
- Topic: Get installed programs
- Replies: 2
- Views: 725
Re: Get installed programs
Thank You! Now only left to figure out how retrieve any data in any order.
- 22 Jan 2018, 19:52
- Forum: Ask for Help (v1)
- Topic: Get installed programs
- Replies: 2
- Views: 725
Get installed programs
Ive found this amazing script to list all installed programs: headers := [ "DISPLAYNAME", "VERSION", "PUBLISHER", "PRODUCTID" , "REGISTEREDOWNER", "REGISTEREDCOMPANY", "LANGUAGE", "SUPPORTURL" , "SUPPORTTELEPHONE", "HELPLINK", "INSTALLLOCATION", "INSTALLSOURCE" , "INSTALLDATE", "CONTACT", "COMMENTS"...
- 22 Jan 2018, 17:19
- Forum: Ask for Help (v1)
- Topic: Drop file on Script issue - brakes path down by spaces
- Replies: 3
- Views: 810
Re: Drop file on Script issue - brakes path down by spaces
Ok, i reinstalled AHK and yes, the option was checked (enabled) and the behavior is still the same.
I know compiled scripts work but i need it uncompiled since its on my own system for my own use and i modify the script a lot and compiling after each iteration is annoying.
I know compiled scripts work but i need it uncompiled since its on my own system for my own use and i modify the script a lot and compiling after each iteration is annoying.