Search found 146 matches

by theimmersion
15 Feb 2018, 00:36
Forum: Ask For Help
Topic: Can gdi+ render on desktop behind icons and can i somehow load custom fonts from .ttf files? Topic is solved
Replies: 6
Views: 94

Re: Can gdi+ render on desktop behind icons and can i somehow load custom fonts from .ttf files? Topic is solved

Sorry for late reply!
Well, it does not seem to work. Nothing is showing up. Can someone confirm if it works or not on 64 bit systems or maybe i goofed somewhere?
by theimmersion
12 Feb 2018, 14:07
Forum: Ask For Help
Topic: ImageWait function ... how it works and how to call?
Replies: 8
Views: 97

Re: ImageWait function ... how it works and how to call?

Now with imagesearch in a loop, despite the inclusion of a sleep, I have a cpu commitment of 3-4%. According to you with the approach of imagewait the consumption of resources improves? Nobody has made such claims so there is no according to anyone. But since you mentioned it, yes. A higher interva...
by theimmersion
12 Feb 2018, 13:32
Forum: Ask For Help
Topic: ImageWait function ... how it works and how to call?
Replies: 8
Views: 97

Re: ImageWait function ... how it works and how to call?

No idea. xD I just tried to recreate it from the posts and among them was this from a guest i believe was JSLover Last post in: https://autohotkey.com/board/topic/50106-wait-for-image-to-be-found/ I believe in 2007, the last time I edited that function ByRef params could not be optional, but I will ...
by theimmersion
12 Feb 2018, 11:06
Forum: Ask For Help
Topic: ImageWait function ... how it works and how to call?
Replies: 8
Views: 97

Re: ImageWait function ... how it works and how to call?

I never worked with image search so please take it with the grain of salt. Based on what i could gather from the links provided by teosc's and as boiler kindly suggested, i guess it would look something like this? This is my first try at recreating it: ; ImageWait( found X, found Y, rectangle x to s...
by theimmersion
12 Feb 2018, 10:06
Forum: Ask For Help
Topic: WinMove a gui moves it briefly but goes back where it was
Replies: 6
Views: 84

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...
by theimmersion
12 Feb 2018, 09:09
Forum: Ask For Help
Topic: WinMove a gui moves it briefly but goes back where it was
Replies: 6
Views: 84

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...
by theimmersion
12 Feb 2018, 07:30
Forum: Ask For Help
Topic: WinMove a gui moves it briefly but goes back where it was
Replies: 6
Views: 84

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%, , %newP...
by theimmersion
11 Feb 2018, 12:02
Forum: Tutorials
Topic: How to Make AHK Work in Most Games - The Basics
Replies: 15
Views: 24235

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 ...
by theimmersion
11 Feb 2018, 09:54
Forum: Ask For Help
Topic: WinMove a gui moves it briefly but goes back where it was
Replies: 6
Views: 84

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...
by theimmersion
11 Feb 2018, 09:36
Forum: Gaming
Topic: Help With this code
Replies: 2
Views: 45

Re: Help With this code

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), (Mou...
by theimmersion
11 Feb 2018, 09:11
Forum: Ask For Help
Topic: Can gdi+ render on desktop behind icons and can i somehow load custom fonts from .ttf files? Topic is solved
Replies: 6
Views: 94

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. :...
by theimmersion
10 Feb 2018, 08:47
Forum: Ask For Help
Topic: RegEx issue. Of course.... Topic is solved
Replies: 12
Views: 187

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...
by theimmersion
09 Feb 2018, 17:52
Forum: Ask For Help
Topic: RegEx issue. Of course.... Topic is solved
Replies: 12
Views: 187

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 ...
by theimmersion
09 Feb 2018, 16:32
Forum: Ask For Help
Topic: RegEx issue. Of course.... Topic is solved
Replies: 12
Views: 187

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 }...
by theimmersion
09 Feb 2018, 15:42
Forum: Ask For Help
Topic: RegEx issue. Of course.... Topic is solved
Replies: 12
Views: 187

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!
by theimmersion
09 Feb 2018, 04:02
Forum: Ask For Help
Topic: RegEx issue. Of course.... Topic is solved
Replies: 12
Views: 187

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...
by theimmersion
08 Feb 2018, 19:09
Forum: Ask For Help
Topic: RegEx issue. Of course.... Topic is solved
Replies: 12
Views: 187

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...
by theimmersion
05 Feb 2018, 22:35
Forum: Ask For Help
Topic: Can gdi+ render on desktop behind icons and can i somehow load custom fonts from .ttf files? Topic is solved
Replies: 6
Views: 94

Can gdi+ render on desktop behind icons and can i somehow load custom fonts from .ttf files? Topic is solved

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 text or image on desktop but behind icons. If possible of course. GDI seems much more powerful than standard GUI so perhaps its possible with it?...
by theimmersion
05 Feb 2018, 22:00
Forum: Ask For Help
Topic: Including a Gui directly into a window?
Replies: 5
Views: 92

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.

Go to advanced search