XIM360 Community » XIM 2 » XIM 2 Discussions » A Script for Toggling XIM Files; XIMSwitcher
« previous next »
Pages: 1 [2]
Print
Author Topic: A Script for Toggling XIM Files; XIMSwitcher    (Read 3964 times)
PhilAshio
MVP
*

Karma: +7/-17
Offline Offline

Posts: 314


View Profile
« Reply #15 on: 09:58 PM - 04/15/09 »

Thank you so much, you are too awesome.
Logged
xavier_s37
MVP
*

Karma: +34/-83
Offline Offline

Posts: 379


View Profile
« Reply #16 on: 11:27 AM - 04/16/09 »

yeah all seems to be well with what issues i was having with the last build. GREAT WORK MAN!!
Logged
mtgtopdeck
MVP
*

Karma: +35/-3
Offline Offline

Posts: 125


ELITE


View Profile
« Reply #17 on: 04:26 AM - 04/19/09 »

(UPDATE 4/19/09 2:23am GMT-8)
Changelog:
- Added Tooltips that will display the file name of the current opened .xim file
Logged

Deckx
komrad
Member
*

Karma: +3/-1
Offline Offline

Posts: 71


View Profile
« Reply #18 on: 04:44 AM - 05/03/09 »

In case you haven't figured a way to load the saved XIM file to its drop down, here's a way;

I changed...

Code:
XIMFileCount = 0
XIMFiles = 
Loop, *.xim {
    XIMFiles = %XIMFiles%%A_LoopFileName%`n
XIMFile%A_Index% = %A_LoopFileName%
XIMFileCount += 1
}

Code:
If FileExist("XIMSwitcherSave.txt")
{
Loop, Read, XIMSwitcherSave.txt
{
Save%A_Index% := A_LoopReadLine
}
}
Else
{
FileAppend, `n `n `n `n `n `n `n `n `n `n `n `n, XIMSwitcherSave.txt
Loop, Read, XIMSwitcherSave.txt
{
Save%A_Index% := A_LoopReadLine
}
}

Code:
display_dropdowns()
display_dropdowns() {
global
y = 10
Loop 12 {
i = %A_Index%
Loop %XIMFileCount% {
File := XIMFile%A_Index%
SaveFile := Save%i%
IfInString, File, %SaveFile%
{
Select = %A_Index%
Break
}
}
Gui, Add, DropDownList, x36 y%y% w130 h20 vDDL%A_Index% R12 +hidden Choose%Select%, %XIMFiles%
y += 20
}
}

I also put "Gui +Delimiter`n" at the top. It also loads all the .XIM files in the drop downs instead of just 12.

Also, if you want to use this instead, it would make it easier to modify in the future and take up less lines.

Code:
F1::LoadProfile(Save1)

LoadProfile(i) {
If i Contains .xim
{
ToolTip
WinKill, XIM
BlockInput On
Run, %i%
WinWaitActive, XIM
BlockInput Off
ToolTip, %i%, 65, 6
}
}
« Last Edit: 06:23 AM - 05/03/09 by komrad » Logged
paulrules
MVP
*

Karma: +8/-15
Offline Offline

Posts: 305


View Profile
« Reply #19 on: 08:18 AM - 05/09/09 »

Awesome script. Worked perfectly for me, and had it running in less than 1 minute. WOOOOOOo.
Logged
xavier_s37
MVP
*

Karma: +34/-83
Offline Offline

Posts: 379


View Profile
« Reply #20 on: 07:41 PM - 05/17/09 »

this software doesnt work with the new xim smart software. thought id let you know.

funny thing is though, seeing as i dont play halo, id rather have this option than the new software, so i switched back to the old install so i could use your script!
« Last Edit: 07:50 PM - 05/17/09 by xavier_s37 » Logged
Bountykilla83
MVP
*

Karma: +2/-0
Offline Offline

Posts: 107



View Profile
« Reply #21 on: 06:46 PM - 05/24/09 »

this software doesnt work with the new xim smart software. thought id let you know.

funny thing is though, seeing as i dont play halo, id rather have this option than the new software, so i switched back to the old install so i could use your script!

Yup there is like a 2 sec shutdown timer now for the new software.
Logged

http://avatar.xboxlive.com/avatar/Bountykilla83/avatar-body.png

Pimping Halo 3 Baby And Soon to Bitch Smack MW 2
BountyKilla83
jayhigh
Member
*

Karma: +0/-0
Offline Offline

Posts: 6


View Profile
« Reply #22 on: 01:16 PM - 05/28/09 »

how do i download XIMSwitcher???

links?

nevermind...i got it... im a noob!
« Last Edit: 01:20 PM - 05/28/09 by jayhigh » Logged
Axelay
Member
*

Karma: +1/-2
Offline Offline

Posts: 36


View Profile
« Reply #23 on: 06:49 PM - 06/12/09 »

I am not entirely certain why, but I seem to be having trouble getting this to work as described. I have followed all instructions and have placed the XIMSwitcher.ahk script in my directory along with my .xim config files. When I run the script, the GUI opens and allows me to select which script I want to go into which slot. While the script is open, I then open one of my .xim files. I press the function key associated with the .xim file to which I want to switch, and nothing happens. I can't see that this would make any difference since I've been using AutoHotkey with it for a very long time now, but my keyboard is a Zboard MERC and has to be running the Zboard software in the background. I've got a few other macros set up through .ahk files and they've never given me any trouble with the keyboard. Please tell me I'm just doing something absent-minded...?
Logged
xavier_s37
MVP
*

Karma: +34/-83
Offline Offline

Posts: 379


View Profile
« Reply #24 on: 10:07 AM - 06/19/09 »

so im thinking the XimSwitcher isnt gonna be able to work with the new software is it?
Logged
mtgtopdeck
MVP
*

Karma: +35/-3
Offline Offline

Posts: 125


ELITE


View Profile
« Reply #25 on: 02:40 PM - 06/27/09 »

so im thinking the XimSwitcher isnt gonna be able to work with the new software is it?

I don't have the time to work on this project any longer.
I got a job working for Storm8. We make Iphone Applications.
Smiley
Logged

Deckx
xavier_s37
MVP
*

Karma: +34/-83
Offline Offline

Posts: 379


View Profile
« Reply #26 on: 07:35 PM - 06/27/09 »

so im thinking the XimSwitcher isnt gonna be able to work with the new software is it?

I don't have the time to work on this project any longer.
I got a job working for Storm8. We make Iphone Applications.
Smiley

dude that is BADASS! congrats on your new job, sounds interesting!
Logged
choosenone
Member
*

Karma: +0/-1
Offline Offline

Posts: 31


View Profile
« Reply #27 on: 10:57 PM - 05/30/10 »

i got error while i change profiles. Previous profile dont close when i get other... (no switching)
Logged
craggles
Member
*

Karma: +0/-0
Offline Offline

Posts: 8


View Profile
« Reply #28 on: 02:03 AM - 07/02/10 »

i got error while i change profiles. Previous profile dont close when i get other... (no switching)

Im having the same problem can anyone help?
Also I noticed that I dont have a XIMSwitcher.ini file in the directory how do I get that?
Logged
brick38
Member
*

Karma: +0/-0
Offline Offline

Posts: 27


View Profile
« Reply #29 on: 04:53 PM - 09/06/10 »

Outstanding,you must be some kind of GOD.
Now I can change configs on the fly.Thanks
Logged
 
Pages: 1 [2]
Print
« previous next »
Jump to:  

Page created in 0.149 seconds with 18 queries.